Chris Wopat via Postfix-users: > I'm in the process of rebuilding a mail relay server from Centos 7 (postfix > 2.10.x) -> Ubuntu 22 (Postfix 3.6.x). > > This is a mail relay server that will relay mail for our customers if their > IP is whitelisted in /etc/postfix/access. We have no local users and are > not doing any per-user authentication, just source IP. ISP style > environment. > > We've ported our config over, which works on port 587 but not on port 25 - > we are getting "Recipient address rejected" on 25 only. I've stared at the > config quite a bit and am not spotting the issue - curious if anyone else > can? > > Note that when i turned peer debugging on, it logs this section for SMTP/25 > but not for 587: > > >>> CHECKING Recipient address VALIDATION MAPS <<< > > and it fails here. Unsure what the proper workaround is, or if some default > behaviour has changed between 2.x and 3.x causing this?
That behavior was introduced over 20 years ago in Postfix 2.0, and that has not changed. The proper workaround is to list relay destinatins in main.cf:relay_domains, and to list valid relay recipients in main.cf:relay_recipient_maps. Other documentation of interest: * "Configuring Postfix as primary or backup MX host for a remote site" https://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup * "Recipient address verification" (if you can't populate relay_recipient_maps) https://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org