I use AuthSMTP for mail delivery when sending automated emails via my web server. Recently, I noticed that they were failing:
Real domain name required for sender address (in reply to MAIL FROM command)The web server was using
www-data@localhostas the envelope "from" address and AuthSMTP didn't like such a bogus domain.
But postfix died after I customized the example and tried to restart postfix. The example forgot to mention that the mapping needs to be encoded in a database format in order for postfix to read it. After you create a file named
/etc/postfix, you need to run:
sudo postmap hash:generic
/etc/postfixdirectory. This will create a Berkeley DB file with the same information as your plain-text file.