Hi, I have a domain that has MX point to O365 and then O365 relays mail to 
Postfix server.
Currently, Postfix does a lookup in a MySql table to know where to relay the 
email to, AFA next hop. If not found in table Postfix looks up MX and relays 
the email.

I want to know if there is a more graceful way of dealing with mail loops 
caused by sending to invalid addresses ?

Example:

A.      TO: realu...@test.domain.com<mailto:realu...@test.domain.com>  -> O365 
-> postfix -> relay to destination server [cuz found in table]

B.      TO: fakeu...@test.domain.com<mailto:fakeu...@test.domain.com> -> O365 
-> postfix ->  lookup MX and relay        [cuz not found in table ] ->O365 -> 
Postfix -> you get the idea

For "B" I tested and it finally sends me the bounce back after 9 loops

[216.32.180.170] said: 554
    5.4.14 Hop count exceeded - possible mail loop ATTR1

Is there a savvy setting in Postfix to deal with this scenario [ like telling 
postfix, for this domain, if you don't find entry in table bounce and don't 
look up MX ?]  Or is Postfix already doing the best it can.

Thank you.



-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

Reply via email to