Hi, thank you Viktor, i deleted the .db file. i reread the docs and removed all my previous changes and started over.
Wietse, thanks for the tip "relay_recipient_maps" My old config was : smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = hash:/etc/postfix/maps/transport /etc/postfix/maps/transport ..... darwin.eeb.uconn.edu smtp:[darwin.eeb.uconn.edu] My new config is : smtpd_recipient_restrictions = reject_unknown_recipient_domain, reject_unverified_recipient, permit_mynetworks, permit_sasl_auth enticated, reject_unauth_destination relay_recipient_maps = mysql:/etc/postfix/files/mysql_pn.cf the transport stuff was left untouched. RAN systemctl reload postfix tested [root@mta4 postfix]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mta4.uits.uconn.edu ESMTP Postfix (2.10.1) ehlo uconn.edu 250-mta4.uits.uconn.edu 250-PIPELINING 250-SIZE 31457280 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:ang...@uconn.edu 250 2.1.0 Ok rcpt to:ang...@darwin.eeb.uconn.edu 450 4.1.1 <ang...@darwin.eeb.uconn.edu>: Recipient address rejected: unverified address: host darwin.eeb.uconn.edu[137.99.139.139] said: 550 5.1.1 <ang...@darwin.eeb.uconn.edu>: Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command) rcpt to:k...@darwin.eeb.uconn.edu 250 2.1.5 Ok quit 221 2.0.0 Bye I think it's working as desired, only one thing I can't understand. My server mta4 gave the 450 4.1.1 and server Darwin.eeb.uconn.edu gave 550 5.1.1, so why is it taking so long to get an NDR ? [ I did another test with my outlook client and got same response as seen here from O365 message trace details] Reason: [{LED=450 4.1.1 <ang...@darwin.eeb.uconn.edu>: Recipient address rejected: unverified address: host darwin.eeb.uconn.edu[137.99.139.139] said: 550 5.1.1 <ang...@darwin.eeb.uconn.edu>: Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command)};{MSG=};{FQDN=smtp.uconn.edu};{IP=137.99. OutboundProxyTargetIP: 137.99.25.243. OutboundProxyTargetHostName: smtp.uconn.edu Is it as simple as changing this parameter in main.cf ? unverified_recipient_defer_code (default: 450) -ANGELO FAZZINA ITS Service Manager: Spam and Virus Prevention Mass Mailing G Suite/Gmail ang...@uconn.edu University of Connecticut, ITS, SSG, Server Systems 860-486-9075 -----Original Message----- From: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> On Behalf Of Viktor Dukhovni Sent: Wednesday, November 7, 2018 4:55 PM To: postfix users <postfix-users@postfix.org> Subject: Re: looking for any options to better deal with mail looping > On Nov 7, 2018, at 3:26 PM, Fazzina, Angelo <angelo.fazz...@uconn.edu> wrote: > > relay_recipient_maps = mysql:/etc/postfix/files/mysql_pn.cf > > I did a test > postmap /etc/postfix/files/mysql_pn.cf There's no point in trying to "postmap" MySQL, LDAP, PosgreSQL, "pcre", "regexp", ... tables. Only tables that have an on-disk *indexed* format need "postmap": - cdb - btree - hash - lmdb - dbm (obsolete) - sdbm (obsolete) -- Viktor.