Доброго времени суток.Debian Lenny + Postix 2.5.5-1.1 + cyrus IMAP. Поднят DNS с доменом gzo.ru (домен локальный) Внутри почта ходит замечательно, при отправке на внешнее мыло:
cat /var/log/mail.log
=====================
Apr 27 19:44:38 proxy postfix/smtpd[1981]: connect from silver.gzo.ru[192.168.25.3]
Apr 27 19:44:39 proxy postfix/smtpd[1981]: 08E1255B: client=silver.gzo.ru[192.168.25.3], sasl_method=LOGIN, sasl_username=silver
Apr 27 19:44:39 proxy postfix/cleanup[1985]: 08E1255B: message-id=<E76946F1E0B14E45A440FC5441CF5AF2@nabsterb0f7e76>
Apr 27 19:44:39 proxy postfix/qmgr[1976]: 08E1255B: from=<silver@gzo.ru>, size=1466, nrcpt=1 (queue active)
Apr 27 19:44:39 proxy postfix/smtpd[1981]: disconnect from silver.gzo.ru[192.168.25.3]
Apr 27 19:45:11 proxy postfix/smtp[1986]: 08E1255B: to=<lonely_xxx@bk.ru>, relay=smtp.bk.ru[94.100.177.2]:25, delay=33, delays=0.13/0.02/1.5/31, dsn=4.0.0, status=deferred (host smtp.bk.ru[94.100.177.2] said: 451 Could not complete sender verify callout (in reply to RCPT TO command))
=====================
cat /etc/postfix/main.cf
========================
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
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
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = proxy.gzo.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = gzo.ru, proxy.gzo.ru, localhost.gzo.ru, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_authenticated_header = yes
smtpd_sasl_application_name = smtpd
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
local_recipient_maps =
relayhost = smtp.bk.ru
smtp_sasl_password_maps=hash:/etc/postfix/sasl-passwords
smtp_sasl_mechanism_filter = login
smtp_sasl_security_options =
============================
cat sasl-passwords
==================
smtp.bk.ru gzo_xxx:hiddenpasswd
==================
Как я понял грабли не столько в настройке Postfix, сколько в используемом алгоритме борьбы со спамом на smtp.bk.ru: Прежде чем сервер smtp.bk.ru примет почту от gzo_xxx@bk.ru, он попробует проверить, а существует ли у меня на сервере ящик отпправителя gzo_xxx@bk.ru, т.е. может ли он принимать почту. В ответ молчание и соединение рвется по тайм-ауту. Или я не правильно понимаю?
Собственно вопрос в чем: как отправлять письма на внешние сервера, если адресс назначения не локальный?