Здравствуйте.
Имеет FreeBSD 8.2, Postfix 2.8.0.
Установил бинарный пакет postfix-policyd-spf-perl-2.007. Как и положено прикрутил его добавив соответствующие строки в main.cf и master.cf.
Завелось почти без вопросов, работает.
Что хочется: а хочется, что бы письма пришедшие с softfail (с нелюбимого мною ~all) или вообще от домена с не настроенной TXT записью об SPF, помечались как спам и приземлялись в соответствующую спаму папку. Доставка настроена через dovecot!
На всякий случай: [more=postconf -n]alias_database = hash:/usr/spool/vmail/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 1
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
mail_owner = postfix
mailbox_command = /usr/local/libexec/dovecot/deliver -d ${recipient}
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 30024000
myhostname = company.ru
mynetworks = 127.0.0.0/8,192.168.139.2/32,192.168.139.5/32
mynetworks_style = host
myorigin = mail.company.ru
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_sasl_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
check_policy_service unix:private/spf-policy
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /root/StartSSL-12.2012-12.2013/postfix.pem
smtpd_tls_key_file = /root/StartSSL-12.2012-12.2013/mail.company.ru.key
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/usr/spool/vmail/virtual_alias_maps
virtual_gid_maps = hash:/usr/spool/vmail/virtual_gid_maps
virtual_mailbox_base = /usr/spool/vmail
virtual_mailbox_domains = company.ru
virtual_mailbox_maps = hash:/usr/spool/vmail/virtual_mailbox_maps
virtual_transport = dovecot
virtual_uid_maps = hash:/usr/spool/vmail/virtual_uid_maps[/more] и [more=master.cf]smtp inet n - n - - smtpd
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
spf-policy unix - n n - 0 spawn
user=nobody argv=/usr/local/sbin/postfix-policyd-spf-perl[/more]
Имеет FreeBSD 8.2, Postfix 2.8.0.
Установил бинарный пакет postfix-policyd-spf-perl-2.007. Как и положено прикрутил его добавив соответствующие строки в main.cf и master.cf.
Завелось почти без вопросов, работает.
Что хочется: а хочется, что бы письма пришедшие с softfail (с нелюбимого мною ~all) или вообще от домена с не настроенной TXT записью об SPF, помечались как спам и приземлялись в соответствующую спаму папку. Доставка настроена через dovecot!
На всякий случай: [more=postconf -n]alias_database = hash:/usr/spool/vmail/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 1
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
mail_owner = postfix
mailbox_command = /usr/local/libexec/dovecot/deliver -d ${recipient}
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 30024000
myhostname = company.ru
mynetworks = 127.0.0.0/8,192.168.139.2/32,192.168.139.5/32
mynetworks_style = host
myorigin = mail.company.ru
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_sasl_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
check_policy_service unix:private/spf-policy
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /root/StartSSL-12.2012-12.2013/postfix.pem
smtpd_tls_key_file = /root/StartSSL-12.2012-12.2013/mail.company.ru.key
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/usr/spool/vmail/virtual_alias_maps
virtual_gid_maps = hash:/usr/spool/vmail/virtual_gid_maps
virtual_mailbox_base = /usr/spool/vmail
virtual_mailbox_domains = company.ru
virtual_mailbox_maps = hash:/usr/spool/vmail/virtual_mailbox_maps
virtual_transport = dovecot
virtual_uid_maps = hash:/usr/spool/vmail/virtual_uid_maps[/more] и [more=master.cf]smtp inet n - n - - smtpd
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
spf-policy unix - n n - 0 spawn
user=nobody argv=/usr/local/sbin/postfix-policyd-spf-perl[/more]