I setup an architecture with a PostFix mail server and an Encryption gateway.
I am relaying all my outgoing SMTP traffic (even mails going from
mydomain.com) to an encryption Gateway via the
relay_host parameter in
Mails are reaching external users: I can for example answer mails sent by
The problem is that answers are not delivered to my users (due to an infinite relay loop).
This problem affects also mails sent FROM internal users TO internal users (i.e. from
@mydomain.com). This kind of traffic goes through the following itinerary: (1) Client -> (2) PostFix -> (3) Encryption Gateway -> (4) PostFix -> Encryption Gateway -> PostFix -> etc (loop). After a certain number of hops the mail is automatically deleted by the encryption gateway, i.e. NOT DELIVERED.
How can I tell PostFix not to relay mails coming from 10.0.0.66 and instead direct them to Cyrus-IMAP (also hosted on 10.0.0.13) ?