I have an smtp server that I use as smtp relay for some internal mail server and as smtp authenticate for some users.
I have the enabled sender IPs in network_table
I have the enabled users as system users in passwd/shadow

Inserting my local domains (hosted in another internal server), in the transport files with the syntax:
domain1.it     smtp:1.2.3.4:2525
domain2.it     smtp:1.2.3.4:2525
 ....

I have mail sent using this server routed directly to the final destination server.

All working without problems.

I want configure the MX record for some domains to point directly to this server instead of the standard mail filtering server and then mail forwarded directly to the final destination server.

Tried some settings from the docs without success.
I always have the "Relay Denied" result:

Jan 23 00:11:34 auth postfix/smtpd[188544]: NOQUEUE: reject: RCPT from wp-host1.xyz.com[4.3.2.1]: 554 5.7.1 <f...@dom-redir.it>: Relay access denied; from=<r...@wp-host1.xyz.com> to=<f...@dom-redir.it> proto=ESMTP helo=<wp-host1.xyz.com>


Tried to insert it in relay_domains without result
Played with some settings without result.

I suppose I am missing something trivial, but I can't see what.

Any hints appreciated.

Thanks, B.


# rpm -qi postfix
Name        : postfix
Version     : 3.5.8
Release     : 7.el8
Source RPM  : postfix-3.5.8-7.el8.src.rpm
Build Date  : lun 14 ago 2023 20:17:42 CEST
Packager    : infrastruct...@rockylinux.org
Vendor      : Rocky

# postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
bounce_queue_lifetime = 3d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
compatibility_level = 2
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
default_destination_concurrency_limit = 7
default_destination_rate_delay = 3s
default_destination_recipient_limit = 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
initial_destination_concurrency = 3
mail_owner = postfix
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 512000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 3d
message_size_limit = 204800000
meta_directory = /etc/postfix
milter_default_action = accept
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = hash:/etc/postfix/network_table
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = inet:localhost:8891
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
relay_recipient_maps = hash:/etc/postfix/network_table
sample_directory = /usr/share/doc/postfix/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
smtp_dns_support_level = dnssec
smtp_host_lookup = dns
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_security_level = dane
smtpd_banner = $myhostname ESMTP QMail 7.2
smtpd_milters = inet:localhost:8891
smtpd_recipient_limit = 100
smtpd_recipient_overshoot_limit = 100
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/postfix.ca.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
smtpd_tls_key_file = /etc/pki/tls/private/postfix.key
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_security_level = may
tls_server_sni_maps = hash:/etc/postfix/sni_map
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to