summaryrefslogtreecommitdiff
path: root/content/mail/security.md
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2025-03-05 15:48:13 +0000
committerGitHub <noreply@github.com>2025-03-05 15:48:13 +0000
commite66f8eac284df3ccf1e3eea5b40a765a06592ec2 (patch)
treec52b1cc701e39bba7b75dbda623264df3c119d83 /content/mail/security.md
parentf424e303e258fde1d1e23f5197102777bb6bd4e3 (diff)
parent002e68cab0e4f87bd7299e837d32e8985d4380d1 (diff)
Merge pull request #312 from daviduhden/mainHEADmaster
Corrections to the tor and email guides
Diffstat (limited to 'content/mail/security.md')
-rw-r--r--content/mail/security.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/content/mail/security.md b/content/mail/security.md
index 76dac80..67ad079 100644
--- a/content/mail/security.md
+++ b/content/mail/security.md
@@ -42,18 +42,20 @@ Go down to the `# Mail servers` line and paste this:
enabled = true
port = smtp,ssmtp,submission
filter = postfix
- logpath = /var/log/mail.log
+ logpath = %(postfix_log)s
+ backend = systemd
[sasl]
enabled = true
port = smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s
- filter = postfix-sasl
+ filter = postfix[mode=auth]
# You might consider monitoring /var/log/mail.warn instead if you are
# running postfix since it would provide the same log lines at the
# "warn" level but overall at the smaller filesize.
- logpath = /var/log/mail.warn
+ logpath = %(postfix_log)s
+ backend = systemd
maxretry = 1
bantime = 21600
@@ -62,7 +64,8 @@ Go down to the `# Mail servers` line and paste this:
enabled = true
port = smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s
filter = dovecot
- logpath = /var/log/mail.log
+ logpath = %(dovecot_log)s
+ backend = systemd
This will only grant 2 login attempts and then block the requester for 6 hours. Now restart `fail2ban`: