# This is the real SMTP server, filter through amavis
10.0.0.1:smtp inet n - - - - smtpd
-o content_filter=amavis:[127.0.0.1]:10024
# SMTP on tcp/2501, used by Fetchmail, let's filter through amavis too
127.0.0.1:2501 inet n - - - - smtpd
-o content_filter=amavis:[127.0.0.1]:10024
-o smtpd_client_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
# Someone may connect the SMTP from localhost, lets sign theses mails with DKIM, no amavis filter
127.0.0.1:smtp inet n - - - - smtpd
-o content_filter=dksign:[127.0.0.1]:10027
-o smtpd_client_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
# SMTP running on a virtual interface alias for mynetworks, sign with DKIM, no amavis filter
10.0.0.11:smtp inet n - - - - smtpd
-o content_filter=dksign:[127.0.0.1]:10027
-o smtpd_client_restrictions=permit_mynetworks,reject
# SSL SMTP with SASL authentication, sign with DKIM, no amavis filter
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
-o content_filter=dksign:[127.0.0.1]:10027
-o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
|