PHP, postfix, sendmail, thunderbird for local dev only -
Hey, I'm trying to work on the php's mail function in my local Dev box in a way where all the mails have been sent using. Mail (regardless of recipient) will remain local and will appear in a Thunderbird account (pop / ipad / etc).
I have to send the phm set to use the mail and install the postfix me. But I'm on any damage where to go next.
Any hint?
- Register a user in the postfix, such as testers @ localhost < Li> Make sure that the postfix always sends all the emails to testuser @ localhost
- Make sure that the postfix always deletes all messages that were forwarded
- Make sure that your SMTP server accepts mail for invalid local address
- Uncheck 'Do not allow SMTP Relaying of non-local mail'
- Set up a pop-inbox in Thunderbird for Testuser @ localhost
[edit] ] Just for the record, point 4 will ensure that whatever address you can use, when you are testing the system where email is unique (which is very common), then you will not be out of a valid email address. [/ Edit]
sidenote: I work on windows with mercury but the basic approach is the same.