Skip to main content

Postfix configuration

Register the milter for messages received via SMTP (from external clients and other mail servers).

sudo postconf -e smtpd_milters=inet:localhost:7080

Register the milter for messages submitted locally, bypassing the SMTP daemon (e.g. messages generated by cron jobs or local applications).

sudo postconf -e non_smtpd_milters=inet:localhost:7080

Set the default action Postfix takes when the milter is unavailable or returns a temporary error. Using accept ensures mail delivery continues uninterrupted if the milter service is down.

sudo postconf -e milter_default_action=accept

Reload Postfix to apply the configuration changes without dropping active connections.

sudo systemctl reload postfix

Additional resources