PHP, postfix, sendmail, thunderbird for local developers only

Hey, I'm trying to get the php mail function to work on my local dev block so that all mail sent using mail (), regardless of the recipient, remains local and appears in the thunderbird account (pop / IMAP / etc. )

I have php configured to use sendmail, and I have a postfix installed. But I do not understand where to go next.

Any pointers?

+3
source share
1 answer
  • register user in postfix, something like testuser @localhost
  • make sure postfix always forwards all emails to testuser @localhost
  • , postfix
  • , smtp- .
  • , " SMTP "
  • pop-inbox thunderbird testuser @localhost

[] . 4 , , , , ( ), . [/edit]

sidenote: . .

+2

Source: https://habr.com/ru/post/1713289/


All Articles