Postfix: Rewrite sender on outgoing mails

With Postfix you can rewrite the sender, respectively the from-headers for outgoing mails. Prerequesite is an existing Postfix installation. Create the /etc/postfix/sender_canonical, with the following example content (you may use spaces or tabs to separate the columns): root www-data Next create the sender_canonical.db file: postmap hash:/etc/postfix/sender_canonical […]

Configure SMTP Auth in a Postfix/MySQL Configuration

To make E-mail delivery work with SMTP auth using SASL, you have to create the folder /etc/postfix/sasl (if it does not exist yet) and add the two files smtpd.conf and smtp.conf, having the same content each: pwcheck_method: auxprop auxprop_plugin: sql mech_list: plain login sql_engine: mysql sql_hostnames: localhost sql_user: postfix sql_passwd: post sql_database: postfix sql_verbose: yes […]