Portál AbcLinuxu, 28. listopadu 2025 19:39
postfix/smtpd[31545]: NOQUEUE: reject: RCPT from blabla.cz[IP]: 554 5.7.1 <......@gmail.com>: Relay access denied; from=<...@domena.cz> to=<.......@gmail.com> proto=ESMTP helo=<[192.168.77.111]>Při restartu postfixu to mnohokrát vypíše:
postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_relay_restrictions=permit_mynetworks permit_sasl_authenticated reject_unauth_destination /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_relay_restrictions=permit_mynetworks permit_sasl_authenticated reject_unauth_destinationTady přidávám můj postfix konfigurák (/etc/postfix/main.cf )
...
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_auth_only = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = domena.cz
mydomain = domena.cz
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = domena.cz, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
milter_default_action = accept
#milter_protocol = 2
milter_protocol = 6
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
#smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
relay_domains=domena.cz
Doplním, že nepoužívám virtuální aliasy. Používám linux uživatele.
Na netu jsem o tomto problému toho našel hodně, ale žádné řešení mi to nepomohlo vyřešit.
Díky moc za případné rady.
Řešení dotazu:
warning: /etc/postfix/main.cf: unused parameter: smtpd_relay_restrictions=permit_mynetworks permit_sasl_authenticated reject_unauth_destinationje vcelku jasná nápověda. Viz
man 5 postconf, smtpd_relay_restrictions tam není, takže pryč s tím.
Na netu jsem o tomto problému toho našel hodně, ale žádné řešení mi to nepomohlo vyřešit.http://www.postfix.org/SASL_README.html , je tam všechno.
smtpd_recipient_restrictions=
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
Toho jsem zakomentoval:
smtpd_relay_restrictions=permit_mynetworks permit_sasl_authenticated reject_unauth_destination
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.