>>> smtpd_sender_restrictions =
>>> check_sender_access hash:/etc/postfix/whitelist,
>> Сделал так, без изменений, сообщение "Client host rejected: cannot find your hostname"
>> и письмо не проходит
> естественно, причем тут sender_access к client host rejected?!
> Вам сюдой - http://www.postfix.org/postconf.5.html#check_client_access Я запутался совсем
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unknown_recipient_domain,
reject_non_fqdn_recipient,
reject_unverified_recipient,
reject_unauth_destination,
check_policy_service unix:private/policy,
permit
smtpd_sender_restrictions =
permit_mynetworks,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
permit
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname,
permit
smtpd_client_restrictions =
permit_mynetworks,
check_sender_access hash:/etc/postfix/access,
reject_unknown_client_hostname,
permit
less access
.co.ua REJECT
pictest.ru REJECT
Feb 10 08:53:43 gas postfix/smtpd[3138]: connect from mail.forbestio.co.ua[85.25.151.219]
Feb 10 08:53:45 gas postfix/policy-spf[3141]: : SPF pass (Mechanism 'a' matched): Envelope-from: yjdujcr@forbestio.co.ua
Feb 10 08:53:45 gas postfix/policy-spf[3141]: handler sender_policy_framework: is decisive.
Feb 10 08:53:45 gas postfix/policy-spf[3141]: : Policy action=PREPEND Received-SPF: pass (forbestio.co.ua: 85.25.151.219 is authorized to use 'yjdujcr@forbestio.co.ua' in 'mfrom' identity (mechanism 'a' matched)) receiver=gas.test.ru; identity=mailfrom; envelope-from="yjdujcr@forbestio.co.ua"; helo=forbestio.co.ua; client-ip=85.25.151.219
Feb 10 08:53:45 gas postfix/smtpd[3138]: 3B43D802D0: client=mail.forbestio.co.ua[85.25.151.219]
Feb 10 08:53:45 gas postfix/cleanup[3154]: 3B43D802D0: message-id=<364f01d16389$d042e790$0e6e86e6@yjdujcr>
Feb 10 08:53:45 gas postfix/qmgr[664]: 3B43D802D0: from=<yjdujcr@forbestio.co.ua>, size=165666, nrcpt=1 (queue active)
Feb 10 08:53:45 gas postfix/smtpd[3138]: disconnect from mail.forbestio.co.ua[85.25.151.219]
Feb 10 08:53:45 gas postfix/smtp[3155]: 3B43D802D0: to=<naumen@test.ru>, relay=81.93.19.15[81.93.19.15]:25, delay=1.7, delays=1.6/0/0/0.15, dsn=2.0.0, status=sent (250 Message accepted for delivery)
Feb 10 08:53:45 gas postfix/qmgr[664]: 3B43D802D0: removed
Feb 10 09:05:11 gas postfix/smtpd[3240]: connect from forward20p.cmail.yandex.net[77.88.31.15]
Feb 10 09:05:11 gas postfix/smtpd[3240]: setting up TLS connection from forward20p.cmail.yandex.net[77.88.31.15]
Feb 10 09:05:11 gas postfix/smtpd[3240]: Anonymous TLS connection established from forward20p.cmail.yandex.net[77.88.31.15]: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Feb 10 09:05:11 gas postfix/smtpd[3240]: NOQUEUE: reject: RCPT from forward20p.cmail.yandex.net[77.88.31.15]: 554 5.7.1 <tech@pictest.ru>: Sender address rejected: Access denied; from=<tech@pictest.ru> to=<ali@test.ru> proto=ESMTP helo=<forward20p.cmail.yandex.net>
Feb 10 09:05:11 gas postfix/smtpd[3240]: disconnect from forward20p.cmail.yandex.net[77.88.31.15]
почему реджектит pictest.ru и пропускает forbestio.co.ua