Стоял postfix, все работало. Прикрутил greylist (postgrey)при первой отправке получаю сообщения о невозможности доставки такого рода:
для примера
на почтовый ящик на live.ru:
This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed.
на майл.ру:
---------------
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
получатель@мойдомен
SMTP error from remote mailer after RCPT TO:<получатель@мойдомен>:
host relay1.udmvt.ru [78.85.0.17]: 550 relay not permitted
-----------
С других почтовых серверов подобные же.
Но если руками второй раз послать то все ок (поидее это автоматом должно делаться), письмо приходит, как и пологается для greylist.
У меня в логах все нормально:
------
Jul 30 14:25:07 mail-ext postfix/smtpd[4814]: connect from col0-omc2-s3.col0.hotmail.com[65.55.34.77]
Jul 30 14:25:12 mail-ext postgrey: action=greylist, reason=new, client_name=col0-omc2-s3.col0.hotmail.com, client_address=65.55.34.77, sender=почта@live.ru, recipient=получатель@мойдомен
Jul 30 14:25:12 mail-ext postfix/smtpd[4814]: NOQUEUE: reject: RCPT from col0-omc2-s3.col0.hotmail.com[65.55.34.77]: 450 4.7.1 <получатель@мойдомен>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help; from=<почта@live.ru> to=<получатель@мойдомен> proto=ESMTP helo=<col0-omc2-s3.col0.hotmail.com>
Jul 30 14:25:13 mail-ext postfix/smtpd[4814]: lost connection after RSET from col0-omc2-s3.col0.hotmail.com[65.55.34.77]
Jul 30 14:25:13 mail-ext postfix/smtpd[4814]: disconnect from col0-omc2-s3.col0.hotmail.com[65.55.34.77]
-------
nslookup -q=MX мойдомен
мойдомен mail exchanger = 5 mail-ext.мойдомен.
мойдомен mail exchanger = 10 relay1.udmvt.ru.
мойдомен mail exchanger = 20 relay2.udmvt.ru.
-------
конфиг postfix
queue_directory = /var/spool/postfix
mail_spool_directory = /var/mail
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
program_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
myhostname = mail-ext.домен
mydomain = домен
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain
mynetworks_style = subnet
mynetworks = 192.168.150.0/24, 127.0.0.0/8, 192.168.151.0/24, 192.168.152.0/24, 192.168.153.0/24, 192.168.154.0/24, 192.168.6.0/24,
relayhost =
unknown_local_recipient_reject_code = 550
smtpd_banner = $myhostname ESMTP
debug_peer_level = 1
debug_peer_list = hotmail.com
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
biff = no
canonical_maps = hash:/etc/postfix/canonical
alias_maps = hash:/etc/aliases
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_domains = mysql:/etc/postfix/sql/virtual_mailbox_domains.cf
virtual_mailbox_base = /var/spool/virtual_mailboxes
virtual_mailbox_maps = mysql:/etc/postfix/sql/virtual_mailbox_recipients.cf
virtual_alias_maps = mysql:/etc/postfix/sql/virtual_mailbox_aliases.cf
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_classes = envelope_sender, header_sender, header_recipient
defer_transports =
disable_dns_lookups = no
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_helo_required = yes
smtp_always_send_ehlo = yes
strict_rfc821_envelopes = yes
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
smtp_sasl_security_options = noanonymous
broken_sasl_auth_clients = no
mailbox_size_limit = 50000000
message_size_limit = 5000000
bounce_size_limit = 2000
bounce_queue_lifetime = 2d
delay_warning_time = 1h
# SMTPD
smtp_connect_timeout=30s
smtpd_timeout=100s
smtp_helo_timeout=60s
smtp_mail_timeout=60s
smtp_rcpt_timeout=90s
# SMTP HELO required
# Receiving Limits
smtpd_error_sleep_time=1s
smtpd_soft_error_limit=10
smtpd_hard_error_limit=20
header_checks = regexp:/etc/postfix/check/header_checks
body_checks = regexp:/etc/postfix/check/body_checks
mime_header_checks = regexp:$config_directory/check/mime_checks
smtp_pix_workarounds =
smtpd_client_restrictions =
permit_mynetworks,
check_client_access regexp:/etc/postfix/check/regexp_client,
check_client_access regexp:/etc/postfix/check/dsl_stoplist,
reject_non_fqdn_sender,
reject_invalid_hostname,
reject_unknown_client,
permit
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_helo_hostname,
check_helo_access hash:/etc/postfix/check/helo_access,
reject_non_fqdn_hostname,
reject_unknown_helo_hostname
smtpd_sender_restrictions =
permit_mynetworks,
check_sender_access hash:/etc/postfix/check/vip_ip,
reject_non_fqdn_sender,
reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_unknown_sender_domain,
reject_unknown_client_hostname,
reject_unknown_hostname
smtpd_recipient_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unlisted_recipient,
reject_unverified_recipient,
reject_unauth_pipelining,
reject_unauth_destination,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client intercept.datapacket.net,
reject_rhsbl_sender dsn.rfc-ignorant.org,
check_recipient_access hash:$config_directory/check/vip_ip,
check_policy_service inet:127.0.0.1:11000
smtpd_data_restrictions = reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unknown_sender_domain,
reject_multi_recipient_bounce,
reject_unauth_pipelining,
permit
disable_vrfy_command = yes
smtpd_etrn_restrictions = permit_mynetworks, reject
smtp_always_send_helo = yes
-----------------
В какую сторону смотреть?