3

So I have set up my postfix server with dovecot according to this tutorial. Receiving emails works fine, sending them too. But these days I had the problem that my postfix started sending emails from www-data@domain.com because it was just sending them via PHP Sendmail (a bot network on my machine).

Is it possible to tell postfix that it should only allow me to send emails from virtual users from my database? If an email is being scheduled to send postfix checks first if it has a mailbox for the given user, if not then discard the message?

Dave M
  • 13,250

1 Answers1

0

You can use pam_imap as an authenticator for postfix - this way you can authenticate SMTP users via IMAP. Any changes to dovecot users and passwords will automatically reflect into postfix.

Eugen Rieck
  • 20,637