Приветствую всех!
Помогите решить проблему, postfix делает релей root почты на яндекс а тот ругается что такого юзера не существует
Sep 2 06:25:01 new postfix/qmgr[7232]: 3EEEAD80E08: from=<root@domain.ru>, size=600, nrcpt=1 (queue active)
Sep 2 06:25:01 new postfix/smtp[7292]: 3EEEAD80E08: to=<root@domain.ru>, orig_to=<root>, relay=mx.yandex.net[213.180.193.89]:25, delay=0.43, delays=0.07/0.01/0.17/0.18, dsn=5.7.1, status=bounced (host mx.yandex.net[213.180.193.89] said: 550 5.7.1 No such user! (in reply to RCPT TO command))
Sep 2 06:25:03 new postfix/smtp[7292]: B622FD80E0E: to=<root@domain.ru>, relay=mx.yandex.net[213.180.204.89]:25, delay=1.3, delays=0/1/0.17/0.15, dsn=5.7.1, status=bounced (host mx.yandex.net[213.180.204.89] said: 550 5.7.1 No such user! (in reply to RCPT TO command))
Sep 2 06:25:03 new postfix/qmgr[7232]: B622FD80E0E: removed
конфиг main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# 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.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = domain.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domain.ru
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
/etc/aliases
postmaster: /dev/null
собственно как отучить отправлять root почту на релей яндекса?
есть старый сервер с точно такой же конфигурацией постфикса и почтой яндекса, там root почту обрабатывает локально
Sep 2 06:50:01 old postfix/qmgr[14213]: CAEB0D40189: from=<root@domain.org>, size=527, nrcpt=1 (queue active)
Sep 2 06:50:01 old postfix/local[21531]: CAEB0D40189: to=<root@domain.org>, orig_to=<root>, relay=local, delay=0.16, delays=0.12/0.01/0/0.03, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
на новом серваке не настроен только tls/sasl и procmail может быть в этом причина?
postfix мне нужен только для локальной отправки писем.
Пользователь добавил сообщение 02 Сентября 2016, 09:29:56:
проблему решил, может еще кому поможет
в файле /etc/postfix/transport прописываем
root@domain.ru local:
выполняем команду
postmap /etc/postfix/transport
перезапускаем postfix
/etc/init.d/postfix restart
теперь системная почта root@domain.ru будет работать только локально
postfix/local[10452]: BA7A5D80DE7: to=<root@domain.ru>, orig_to=<root>, relay=local, delay=0.06, delays=0.05/0/0/0, dsn=2.0.0, status=sent