Mail Server with SSL/TLS built on Dovecot and Postfix using MySQL backend

Install needed packages: apt-get install postfix postfix-mysql dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved mysql-server-5.6 postfix postfix-mysql During the Postfix install, choose "Internet Smarthost" and leave the values at their defaults, we will replace the configuration later. Create database: Connect to the mysql console using root and execute these: CREATE DATABASE mailserver; Read more…

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     info@example.net www-data         www@example.net test@example.net test2@example.net Next create Read more…