Добрый день!У меня возник вопрос.
Есть и настроена связка Postfix(2.8.3)+SpamAssassin(3.3.1)+ClamAV(0.97)+Exchange(2007SP2).
Очень хотелось бы услышать как настроить правильно отчеты о доставке.Сейчас на данный момент приходят отчеты вместо доставленно (ретраснслировано) а вот отчет о прочтении приходит нормально как и положено.
Конфиги Postfix:
main.cf
#allow_percent_hack = yes
#address_verify_sender = postmaster@domen.ru
#address_verify_map = btree:/etc/postfix/verified_senders
soft_bounce = no
bounce_queue_lifetime = 2d
bounce_size_limit = 10000
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
default_privs = nobody
default_process_limit = 5
disable_vrfy_command = yes
disable_dns_lookups = no
default_destination_concurrency_limit = 20
#debug_peer_level = 2
#debug_peer_list = mail.ru list.ru
debugger_command =
<------> PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
<------> ddd $daemon_directory/$process_name $process_id & sleep 5
mail_owner = postfix
myhostname = mail.domen.ru
mydomain = domen.ru
myorigin = $myhostname
#myorigin = $mydomain
inet_interfaces = all
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, $mydomain
#local_recipient_maps = unix:passwd.byname $alias_maps
local_transport = error:local mail delivery is disabled
local_recipient_maps =
relay_recipient_maps = hash:/etc/postfix/relay_recipients
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192.168.1.0/25, 127.0.0.0/8
in_flow_delay = 1s
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
recipient_delimiter = +
default_verp_delimiters = +=
verp_delimiter_filter = -=+
home_mailbox = Mailbox
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
#mailbox_size_limit = 102400000 #100 Mb
mailbox_size_limit = 0
#message_size_limit = 20480000
message_size_limit = 15360000
#message_size_limit = 0
body_checks_size_limit = 51200
fast_flush_domains = $relay_domains
local_destination_concurrency_limit = 2
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
kolabpolicy_time_limit = 3600
kolabpolicy_max_idle = 20
virtual_alias_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
############################################New
receive_override_options = no_address_mappings
max_use = 10
maximal_queue_lifetime = 2d
maildrop_destination_recipient_limit = 3
smtp_helo_name = mail.domen.ru
smtp_connect_timeout = 600s
smtp_data_done_timeout = 900s
smtp_data_init_timeout = 900s
smtp_data_xfer_timeout = 900s
smtp_helo_timeout = 600s
smtp_mail_timeout = 600s
smtp_rcpt_timeout = 600s
smtp_always_send_ehlo = yes
smtpd_timeout = 600s
smtpd_banner = $myhostname ESMTP
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_soft_error_limit = 5
smtpd_hard_error_limit = 20
smtpd_error_sleep_time = 1s
smtpd_recipient_limit = 30
smtpd_client_message_rate_limit = 0
smtpd_client_connection_count_limit = 0
smtp_accept_max = 500
smtp_accept_reserve = 50
##########TLS-server################
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/certs/postfix_private_key.pem
smtpd_tls_cert_file = /etc/postfix/certs/postfix_public_cert.pem
smtpd_tls_CAfile = /etc/postfix/certs/cacert.pem
tls_random_source = dev:/dev/urandom
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = hash:/var/lib/postfix/smtpd_scache
smtpd_tls_auth_only = yes
smtpd_tls_session_cache_timeout = 86400s
####################################
##########TLS-client################
smtp_use_tls = yes
smtp_tls_key_file = /etc/postfix/certs/postfix_private_key.pem
smtp_tls_cert_file = /etc/postfix/certs/postfix_public_cert.pem
smtp_tls_CAfile = /etc/postfix/certs/cacert.pem
tls_random_source = dev:/dev/urandom
smtp_tls_loglevel = 2
smtp_tls_session_cache_database = hash:/var/lib/postfix/smtp_scache
smtp_tls_session_cache_timeout = 3600s
####################################
###############SASL#################
smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous
smtp_sasl_security_options = noanonymous, noplaintext
#smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtpd_sasl_local_domain =.
smtpd_sasl_exceptions_networks = $mynetworks
#smtpd_client_restrictions = permit_sasl_authenticated
#smtpd_sender_restrictions = permit_sasl_authenticated
broken_sasl_auth_clients = yes
####################################
content_filter = scan:127.0.0.1:10025
smtpd_discard_ehlo_keyword_address_maps =.
cidr:/etc/postfix/access_esmtp
check_client_access =
reject_rbl_client,
reject_rhsbl_client,
reject_unknown_client
check_helo_access =
permit_naked_ip_address,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_unknown_hostname
check_sender_access =
reject_non_fqdn_sender,
reject_rhsbl_sender,
reject_unknown_sender_domain,
check_recipient_access =
permit_auth_destination,
permit_mx_backup,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_unauth_pipelining
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access,
permit_mynetworks,
smtpd_helo_restrictions =
permit_mynetworks,
reject_non_fqdn_hostname,
reject_invalid_hostname
smtpd_sender_restrictions =
hash:/etc/postfix/access_sender,
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
smtpd_recipient_restrictions =.
hash:/etc/postfix/access_sender,
permit_sasl_authenticated,
permit_mynetworks,
reject_multi_recipient_bounce,
# reject_non_fqdn_recipient,
# reject_non_fqdn_sender,
# reject_non_fqdn_hostname,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_destination,
reject_invalid_hostname,
permit
check_recipient_access = hash:/etc/postfix/access,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
permit_mynetworks,
reject_unlisted_recipient,
reject_unauth_destination
smtpd_etrn_restrictions =
check_etrn_access = hash:/etc/postfix/access,
reject,
reject_unauth_pipelining
----------------------------------------------------------
master.cf
smtp inet n - n - - smtpd
-o content_filter=spamassassin
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 300 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 300 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
<------>-o smtp_bind_address=<Внешний IP>
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
<------>-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
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
maildrop unix - n n - - pipe
flags=Ru user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
# AV scan filter (used by content_filter)
scan unix - - n - 16 smtp
-o smtp_data_done_timeout=2400
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes.
-o max_use=5
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
spamassassin unix - n n - - pipe
user=spamduser argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}