ЗДравствуйтеИспользуется Postfix + Cyrus. Недавно настроил Spamassassin и в логи начались сыпаться ошибки:
-----------
Aug 31 07:58:03 mail postfix/smtpd[28249]: warning: non-SMTP command from localhost[127.0.0.1]: Return-Path: <user@example.com>
Aug 31 08:14:36 mail postfix/smtpd[28325]: warning: non-SMTP command from localhost[127.0.0.1]: Return-Path: <user@example.com>
--------------
Настроена пересылка всей исходящей почты на ящик bcc@example.com. После появления этих ошибок письма в этот ящик перестали попадать.
----main.cf----------------------------------------------------------------------------
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = example.com
alias_maps = hash:/etc/aliases
mydestination = localhost.localdomain, example.com, localhost
mynetworks = 192.168.0.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 500000000
message_size_limit = 20000000
recipient_delimiter = +
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000, hash:/etc/postfix/recipient, reject_unverified_recipient, permit
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname, permit
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/whitelist, reject_non_fqdn_sender, permit
smtpd_data_restrictions = reject_unauth_pipelining, reject_non_fqdn_recipient, reject_multi_recipient_bounce
smtpd_etrn_restrictions = permit_mynetworks, reject
smtpd_sasl_authenticated_header = yes
smtpd_sasl_application_name = smtpd
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
local_recipient_maps =
invalid_hostname_reject_code = 550
non_fqdn_reject_code = 550
unknown_address_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
unverified_recipient_reject_code = 550
unverified_sender_reject_code = 550
sender_bcc_maps = hash:/usr/local/etc/sender_bcc_map
recipient_bcc_maps = hash:/usr/local/etc/recipient_bcc_map
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtpd_helo_required = yes
default_destination_recipient_limit = 1
queue_run_delay = 10000s
initial_destination_concurrency = 2
maximal_backoff_time = 40000s
default_destination_concurrency_limit = 5
minimal_backoff_time = 1000s
bounce_template_file = /etc/postfix/bounce.cf
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_reject_unlisted_sender = yes
smtpd_reject_unlisted_recipient = yes
smtp_always_send_ehlo = yes
smtpd_delay_reject = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
------------------------------------------------------------------
-----master.cf-------------------------------------------------
redirect unix - n n - - pipe flags=R user=autoresp argv=/etc/postfix/script ${sender} ${recipient}
smtp inet n - - - - smtpd -o content_filter=spamfilter:dummy
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
spamfilter unix - n n - 10 pipe
flags=R
user=spamfilter argv=/etc/postfix/scripts/spam.pl "localhost:10027" "spamfilter"\
"${sender}" "${recipient}" "/usr/bin/spamc"
localhost:10027 inet n - n - 10 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o myhostname=localhost
--------------------------------------------------------------------------------------------------------
Догадываюсь, что это где-то в правилах smtpd, но почитав гугл, попробовав несколько вариантов, так и не нашёл верного.