Всем привет.
Такая проблемка.
Вроди как настроил Postfix, но оказалось, что не совсем.
Если письмо идет на НЕСУЩЕСТВУЮЩЕГО юзера (с реальным все ОК) постфикс его возвращает.
postfix/smtpd[96460]: BE78272E22: reject: RCPT from ns.***[*.*.*.*]: 450 <qqq@gw.*>: User unknown in local recipient table; from=<gmn@*.*> to=<qqq@gw.*> proto=ESMTP helo=<*>.
Но на отправляющем сервере это письмо садится в очередь и висит там 5 дней.
Пробовал с нескольких серверов отправить. Эффект тот же.
Уведомления о том, что нельзя доставить - не приходит.
main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_spool_directory = /var/mail
mail_owner = postfix
default_privs = nobody
myhostname = gw.*
mydomain = gw.*
mynetworks = 10.0.0.0/8, 127.0.0.0/8
home_mailbox = Maildir/
#SMTP auth (SASL) ---------------------------
smtp_sasl_password_maps = hash:/usr/local/etc/sasldb2
smtpd_sasl_auth_enable = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
# end ----------------------
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain
default_transport = smtp
alias_database = hash:/usr/local/etc/postfix/aliases
alias_maps = hash:/usr/local/etc/postfix/aliases
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client
smtpd_sender_restrictions = hash:/usr/local/etc/postfix/access, permit_sasl_authenticated,permit_mynetworks, reject_unknown_address, reject_non_fqdn_sender, reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, permit_mx_backup, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, check_relay_domains
strict_rfc821_envelopes = yes
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
mime_header_checks = $header_checks
header_checks = regexp:/usr/local/etc/postfix/header_checks
body_checks = regexp:/usr/local/etc/postfix/body_checks
body_checks_size_limit = 10000
mailbox_size_limit = 51200000
maximal_queue_lifetime = 5d
message_size_limit = 1024000
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
manpage_directory = /usr/local/man
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
transport_maps = hash:/usr/local/etc/postfix/transport
transport_retry_time = 60s
trigger_timeout = 10s
unknown_address_reject_code = 450
unknown_client_reject_code = 450
unknown_hostname_reject_code = 450
unknown_local_recipient_reject_code = 450
#virtual_maps = unix:passwd.byname $alias_maps hash:/usr/local/etc/postfix/virtual
local_recipient_maps = unix:passwd.byname $alias_maps
Никаких виртуальных юзеров. Реально там только мой аккаунт.