не могу принять почту от одного сервера, в логе пишет
NOQUEUE: reject: RCPT from pulkovo-4.ip.PeterStar.net[217.195.88.116]: 450 <srvr004.pulkovo.ru>: Helo command rejected: Host not found; from=<smena@pulkovo.ru> to=<smena@domen.ru> proto=ESMTP helo=<srvr004.pulkovo.ru>
Настройки
main.cf
--------
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
disable_dns_lookups= no
readme_directory = no
smtpd_delay_reject = yes
maps_rbl_reject_code = 554
maps_rbl_domains = dul.ru, relays.ordb.org, blackholes.mail-abuse.org, work.drbl.caravan.ru, reject_unknown_clientsmtpd_client_restrictions = permit_mynetworks, hash:/usr/local/etc/postfix/access
smtpd_client_restrictions = reject_rbl_client list.dsbl.org
smtpd_client_restrictions = reject_rbl_client virbl.bit.nl
smtpd_client_restrictions = reject_rbl_client relays.ordb.org
smtpd_client_restrictions = reject_rbl_client opm.blitzed.org
smtpd_client_restrictions = reject_rbl_client t1.bl.reynolds.net.au
smtpd_client_restrictions = reject_rbl_client bl.spamcop.net
smtpd_client_restrictions = reject_rbl_client dnsbl.njabl.org
smtpd_client_restrictions = reject_rbl_client relays.ordb.org
smtpd_client_restrictions = reject_rbl_client ex.dnsbl.org
smtpd_client_restrictions = reject_rbl_client dul.ru
smtpd_client_restrictions = reject_rbl_client dun.dnsrbl.net
smtpd_client_restrictions = reject_rbl_client spam.dnsrbl.net
smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.netsmtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostnamesmtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_invalid_hostname, reject_unknown_address,
smtpd_recipient_restrictions = check_sender_access hash:/usr/local/etc/postfix/smtpd.sender,
permit_mynetworks, permit_mx_backup, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain,
check_relay_domains, rejectв access
---------
pulkovo-4.ip.PeterStar.net OK
--------------------------если убираю
smtpd_helo_restrictions = reject_unknown_hostname
то почта принимается
Вопрос:
как сделать чтобы не убирать опцию smtpd_helo_restrictions = reject_unknown_hostname и принимать ее от тех кто указан в ассеss
---------------------
postmap access делал
Я бы попробовал sender_access
pulkovo.ru OK
делаем хэш
ну и main.cf подправить:
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access
>Я бы попробовал sender_access
>pulkovo.ru OK
>делаем хэш
>ну и main.cf подправить:
>smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_accessпопробовал, не вышло
что еще можно сделать?
>>Я бы попробовал sender_access
>>pulkovo.ru OK
>>делаем хэш
>>ну и main.cf подправить:
>>smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access
>
>попробовал, не вышло
>что еще можно сделать?
Вот эту строчку "check_sender_access hash:/etc/postfix/sender_access" вставить ПЕРЕД reject_unknown_hostname в smtpd_helo_restrictions, далее как и говорилось создать файл, туда
srvr004.pulkovo.ru OK
сделать хэш
не забыть перезапустить postfix :)
в смысле "сheck_helo_access hash:/etc/postfix/xxxxxx" добавить
>в смысле "сheck_helo_access hash:/etc/postfix/xxxxxx" добавить
Не въехал так что надо?smtpd_helo_restrictions = check_helo_access hach:/usr/local/etc/postfix/sender_access и потом ...,reject_unknown_hostname
postmap sender_access
postfix reloadТак?
смотрел по ссылкам http://vk.pp.ru/docs/postfix/uce.html#smtpd_helo_required
>>в смысле "сheck_helo_access hash:/etc/postfix/xxxxxx" добавить
>Не въехал так что надо?
>
>smtpd_helo_restrictions = check_helo_access hach:/usr/local/etc/postfix/sender_access и потом ...,reject_unknown_hostname
>
>postmap sender_access
>postfix reload
>
>Так?
>смотрел по ссылкам http://vk.pp.ru/docs/postfix/uce.html#smtpd_helo_required
Да. только файле sender_access пишешь не "pulkovo-4.ip.PeterStar.net OK", а "srvr004.pulkovo.ru OK" или для общего случая, как уже писалось выше "pulkovo.ru OK" ну и hash вместо hach
Все заработало (pulkovo.ru)
спасибо Kirill