<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Postfix on nagg.eu</title><link>https://nagg.eu/tags/postfix/</link><description>Recent content in Postfix on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Feb 2015 14:23:20 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/postfix/index.xml" rel="self" type="application/rss+xml"/><item><title>Email server: Dovecot and Postfix</title><link>https://nagg.eu/email-server-dovecot-and-postfix/</link><pubDate>Fri, 20 Feb 2015 14:23:20 +0000</pubDate><guid>https://nagg.eu/email-server-dovecot-and-postfix/</guid><description>&lt;h2 id="postfix-configuration"&gt;Postfix configuration&lt;/h2&gt;
&lt;p&gt;Install the required software:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ yum install postfix postgrey dovecot fail2ban spamassassin 
spamass-milter-postfix opendkim
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create TLS certificate, key and CA authority (replace &lt;code&gt;mail.domain.tld&lt;/code&gt; with a valid domain name):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ mkdir /etc/postfix/ssl
$ cd /etc/postfix/ssl
$ openssl genrsa -aes256 -out mail.domain.tld.key 4096
$ chmod 600 mail.domain.tld.key
$ openssl req -sha256 -new -key mail.domain.tld.key -out mail.domain.tld.csr
$ openssl x509 -sha256 -req -days 1825 -in mail.domain.tld.csr -signkey mail.domain.tld.key -out mail.domain.tld.crt
$ openssl rsa -in mail.domain.tld.key -out mail.domain.tld.key.nopass
$ mv mail.domain.tld.key.nopass mail.domain.tld.key
$ openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 -sha256
$ chmod 600 mail.domain.tld.key
$ chmod 600 cakey.pem
$ openssl dhparam -out dhparams.pem 4096
$ chmod 600 dhparams.pem
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Edit &lt;code&gt;main.cf&lt;/code&gt; file accordingly (the other lines should be ok by default).&lt;br&gt;
No SQL database is used, for user authentication postfix relies on Linux users,
email data are stored in &lt;code&gt;~/Maildir&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>