Project

General

Profile

Task #2257

Refactor mail.documentfoundation.org

Added by Guilhem Moulin 6 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
Mail system
Target version:
Team - Q4/2017
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
URL:

Description

This issue is about refactoring the main mail server. Possible improvements include:

Dovecot (IMAP):
  • Use the "passwd-file" driver for passdb and userdb to avoid using PAM or the passwd(5)/shadow(5) database
  • Replace the LDA with an LMTP server to receive mails from Postfix
  • Change mail storage format from maildir to mdbox, possibly compressed
Postfix (SMTP):
  • Use virtual users
  • Move amavis to a milter or an after-queue content filter
  • replace postgrey by a tighter postscreen(8)
amavis
  • consider setting Postfix' notify_classes to empty
  • switch to Milter
  • set -o smtpd_proxy_options=speed_adjust as default
  • Guilhem proposed to use systemd
    Assuming you're using systemd as PID 1, a
    quick and dirty fix would be to tell it to auto restart the service.
    Rather than editing the unit file shipped by the package (which would be
    overridden by the next amavis update), I'd go for an override
    systemd.unit(5) file instead:
    
        $ mkdir /etc/systemd/system/amavis.service.d
        $ tee /etc/systemd/system/amavis.service.d/override.conf <<- EOF
            [Service]
            RestartSec=1min
            Restart=always
            #Restart=on-abnormal might be more appropriate, see
            #systemd.service(5) for details
        EOF
        $ systemctl daemon-reload
        $ systemctl restart amavis
    
    You can see if the override systemd.unit(5) file is taken into account
    with `sudo systemctl show amavis.service | grep ^Restart`.
    
hostmaster alias
  • consider switching to local mailbox only in case of too many notifications
domains
  • switch to DNSSEC and TLSA records if feasible

History

#1 Updated by Guilhem Moulin 6 months ago

oops, forgot something

Postfix (SMTP):
- replace postgrey by a tighter postscreen(8)

#2 Updated by Florian Effenberger 5 months ago

  • Description updated (diff)
  • Target version changed from Qlater to Q4/2017

Aiming for Q4, but of course we can improve the setup gradually already earlier

Also available in: Atom PDF