Hello.!

I update the version of my postfix server:

[root@vps-1713830-x /etc/postfix] # postconf mail_version
mail_version = 3.4.7

I set a round-robin map in the main.cf and enable ipv6 support:

[root@vps-1713830-x /etc/postfix] # postconf -d|grep inet_protocols
inet_protocols = all
lmtp_balance_inet_protocols = yes
smtp_balance_inet_protocols = yes

In the master.cf i set this:

smht38-165<---->unix  -       -       n       - -       smtp
    -o smtp_bind_address=IPv4
    -o smtp_helo_name=smht-relay01.hostname.tld
    -o syslog_name=smht-relay01
relayipv6<----->unix  -       -       n       - -       smtp
    -o smtp_bind_address=IPv6
    -o smtp_helo_name=relayipv6.hostname.tld
    -o syslog_name=relayipv6

When I send an email, the ipv4 address where the ipv6 interface is configured appears in the received header, and I see this message

2020-02-11 12:05:06 1j1X5y-0000BS-SQ <= r...@vps-1713830-x.hostname.tld H=hostnameipv4.hostname.tld (relayipv6.hostname.tld) [ipv4] P=esmtps X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no S=1513 id=20200211150522.c74a941...@vps-1713830-x.hostname.tld

"warning: smtp_connect_addr: bind 2800:6c0:3::xxxx Address family not supported by protocol"

Another question, is it possible to configure several round-robin maps for different IP addresses?

Example:

smtpd_sender_restrictions  = check_client_access hash:/etc/postfix/client_ip hash:/etc/postfix/client_ip2

client_ip ==> round-robin map massive

cliente_ip2 ==> round-robin map transactional

This is to divide those users who send bulk with transactional emails.

Regards!!

--

Reply via email to