php - Automatically Create Email -
first of, let me know similar questions have been asked
but, there problems both questions. question 1 has 1 answer (which isn't helpful) , question 2 needs work google enterprise.
i have lamp stack hosted on linode hosts multiple sites each separate file in sites-available folder. have specific domain call myawesomedomain.com. now, myawesomedomain.com has nothing in right , not have proper, full-fledged site. simple form. fields consist of:
- username
- email address
- password
here's want. whenever user signs up, email automatically created username username@myawesomedomain.com. point on, whenever email sent username@myawesomedomain.com, email automatically forwarded email user signed email never stored on server (and therefore not take space).
so, essential questions are:
- how automatically create email addresses php
- how can have emails automatically forwarded email address in mysql database , not stored on server.
- what mail server should using , how should set doesn't interfere rest of sites.
- is there anyway lack of spam , virus filtering effect me. in, if hacker sends php file username@myawesomedomain.com, there way server affected.
- whatever else feel needed.
i've heard of postfix don't know mail servers...
sorry long(?) question , thank in advance.
edit
should put on serverfault instead?
the "creating email alias php"-part not problem. if you're running postfix mail server it's simple inserting row mysql table.
insert myaliastable (pattern, alias) values ("john@myawesomedomain.com","john@example.net") see:
but: creating forwarder service comes lot of problems should aware of:
- you must verify target email adress before enable forwarder(send message, have recipient click on link) or spammers signup accounts , use system open relay
- you must run spamfilter... forwarding spam no different sending spam , server blacklisted
- if target server starts rejecting forwarder reason sending backscatter again can server blacklisted
- if sender domain uses spf records , target of forwarder checks spf, forwarded mail rejected. add srs rewrites, unfortunately not simple in postfix
since state don't know mailservers advise read on them first, check out best practices on spam prevention , tackle project again.
Comments
Post a Comment