[Sysadmins] Postfix и mail loops back to myself

Шигапов Ринат =?iso-8859-1?q?srk_=CE=C1_nevod=2Eru?=
Чт Мар 19 07:28:28 MSK 2009


> man transport. В main.cf необходимо добавить параметр transport_map, ну
> и в самом map прописать маршрут для доставки почты. Что-то типа:
>
> newmail.example.com	smtp:[192.168.0.249]
>
> Виртуальный транспорт тут бесполезен, т.к. задача сервера бслуживающего
> домен example.com - доставить почту до сервера (192.168.0.249), который
> знает, как эту почту разложить по ящикам. Вот на нем уже есть смысл в
> использовании virtual delivery agen'a.

Через transport выходит аналогично:
Mar 19 09:19:44 example postfix/smtp[14720]: 4407425C46C: to=<srk на newmail.example>, relay=192.168.0.249[192.168.0.249], delay=3, status=bounced (mail for [192.168.0.249] loops back to myself)

postconf -n:

biff = yes
bounce_size_limit = 1
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/antispam/header_checks
mail_owner = postfix
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = localhost, $myhostname, localhost.$mydomain, $config_directory/mydestination
mydomain = example.com
myhostname = example.com
mynetworks = 127.0.0.1/32, 192.168.0.0/24, 192.168.2.0/24, 192.168.240.192/27, 192.168.34.100/32, 192.168.33.100/32, 192.168.3.0/24, 192.168.15.0/28
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/README_FILES
relay_domains = $mydestination
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_restrictions = permit_mynetworks,                       regexp:/etc/postfix/antispam/dul_checks,
smtpd_delay_reject = yes
smtpd_etrn_restrictions = permit_mynetworks, reject
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,            check_helo_access hash:/etc/postfix/antispam/helo_access,  permit
smtpd_recipient_restrictions = permit_mynetworks,           reject_unauth_pipelining,       check_client_access hash:/etc/postfix/antispam/recipient_access,            reject_invalid_hostname,        reject_non_fqdn_hostname,       reject_non_fqdn_sender,     reject_non_fqdn_recipient,      reject_unknown_sender_domain,           reject_unknown_recipient_domain,            reject_unauth_destination,      reject_rbl_client bl.spamcop.net,       reject_rbl_client blacklist.spambag.org,            reject_rbl_client sbl.spamhaus.org,     reject_rbl_client cbl.abuseat.org,      reject_rbl_client dul.dnsbl.sorbs.net,      reject_rbl_client list.dsbl.org,        reject_rbl_client dul.ru,       permit
smtpd_sender_restrictions = permit_sasl_authenticated,          permit_mynetworks,              regexp:/etc/postfix/antispam/sender_access,         reject_unknown_sender_domain,           permit
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

/etc/postfix/transport:
newmail.example.com           smtp:[192.168.0.249]

[root на example postfix]# ls -l transport*
-rw-r--r--  1 root root  7822 Mar 19 09:24 transport
-rw-r--r--  1 root root  2296 Mar 19 09:25 transport.cdb
-rw-r--r--  1 root root 12288 Mar 19 09:01 transport.db

-- 
С уважением,
        Шигапов Ринат
        инженер-программист ООО "Невод"
        тел. (342)2196960
        JabberID: dxist на ya.ru 
				



Подробная информация о списке рассылки Sysadmins