diff --git a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md index aef769a..5c4e719 100644 --- a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md +++ b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md @@ -493,41 +493,7 @@ Now let's enable IMAP by editing `/etc/dovecot/dovecot.conf`. Find a `protocols protocols = imap ``` -## Logging - -By default, Dovecot logs to the syslog (`/var/log/messages`). It would be easier to monitor Dovecot if it logged to its -own log file, so we'll configure that at `/etc/dovecot/conf.d/10-logging.conf`: - -```conf -log_path = /var/log/dovecot.log -``` - -The file also has various settings on logging verbosity you can configure. I set: - -```conf -auth_verbose = yes -auth_debug = yes -mail_debug = yes -``` - -You should already have an `/etc/logrotate.d/dovecot` file. If not, create it with the following contents: - -```logrotate -/var/log/dovecot*.log { - daily - missingok - copytruncate - rotate 7 - compress - notifempty - sharedscripts - postrotate - /etc/init.d/dovecot --quiet --ifstarted reopen - endscript -} -``` - -## Configure IMAP and email storage +## Configure how to store emails You probably want to use the Maildir format for storing emails, where each user's mail is stored at `~/Maildir` (this can be set to another location if desired). @@ -1368,7 +1334,7 @@ The `fo` tag indicates when you would like to receive reports. The options are: -### OpenDMARC[^spf_processing_redundancy] +### OpenDMARC We can use software called OpenDMARC to enforce DMARC policies for incoming mail. OpenDMARC is another milter. Let's install it and enable its service: @@ -1478,16 +1444,14 @@ Restart Postfix for the changes to take effect: And when you receive emails from a legitimate source that implements DMARC, you should see the following headers in your emails: -
-
+```
 Received-SPF: pass (protonmail.com: Sender is authorized to use 'revsuine@protonmail.com' in 'mfrom' identity (mechanism 'include:_spf.protonmail.ch' matched)) receiver=master.revsuine.xyz; identity=mailfrom; envelope-from="revsuine@protonmail.com"; helo=mail-40130.protonmail.ch; client-ip=185.70.40.130
 DMARC-Filter: OpenDMARC Filter v1.4.2 master.revsuine.xyz 88CFF1288D1
 Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com
 Authentication-Results: OpenDMARC; spf=pass smtp.mailfrom=protonmail.com
 Authentication-Results: master.revsuine.xyz;
         dkim=pass (2048-bit key; secure) header.d=protonmail.com header.i=@protonmail.com header.a=rsa-sha256 header.s=protonmail3 header.b=nc4YWVM/
-
-
+```