Portál AbcLinuxu, 10. května 2025 07:35
Ahoj
Snažim se rozběhat postfix, už mi vše běhá až na jednu drobnost. Odmítá přijmout poštu od kohokoli kdo neni přihlášnej přes SASL. Pokud mi například přijde mail od Seznamu tak :
Mar 5 00:32:07 suba postfix/smtpd[26230]: connect from mxh.seznam.cz[77.75.72.26]
Mar 5 00:32:07 suba postfix/smtpd[26230]: NOQUEUE: reject: RCPT from mxh.seznam.cz[77.75.72.26]: 554 5.7.1 <mxh.seznam.cz[77.75.72.26]>: Client host rejected: Access denied; from=<king12345@seznam.cz> to=<root@blabla.cz> proto=ESMTP helo=<mxh.seznam.cz>
Mar 5 00:32:07 suba postfix/smtpd[26230]: disconnect from mxh.seznam.cz[77.75.72.26]
Už nevim co s tím, vyzkoušel jsem snad vše...
zde je konfigurace
postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
home_mailbox = ../.maildir/
html_directory = /usr/share/doc/postfix-2.4.6-r2/html
in_flow_delay = 2s
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname,$mydomain, localhost,7h.cz,lukart.cz
mydomain = blabla.cz
myhostname = mail.blabla.cz
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.6-r2/readme
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_client_connection_count_limit = 30
smtpd_client_connection_rate_limit = 30
smtpd_client_restrictions = permit_sasl_authenticated,hash:/etc/postfix/client_check, reject
smtpd_error_sleep_time = 1s
smtpd_hard_error_limit = 20
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_soft_error_limit = 10
unknown_local_recipient_reject_code = 550
Díky za jakýkoli návrhy
Je tenhle radek spravne? Resp. projde odesilajici "hash:/etc/postfix/client_check" kontrolou?
smtpd_client_restrictions = permit_sasl_authenticated,hash:/etc/postfix/client_check, reject
Díky moc za nakopnutí.
Po smazání smtpd_client_restrictions už vše jede.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.