Hello Postfix community, I have a puzzling setup that I am trying to work out, maybe someone has some advice or idea?
We have two Postfix servers. - Server 1 functions as the authenticated client's outbound mail server (SMTPS and submission), as well as the destination for our hosted domains and the client’s IMAP/POP service (Dovecot). Server 1 does not allow client SMTP on port 25. Server 1 should relay all email (even email destined for hosted domains), in order to process virus scanning and encryption/decryption. Let’s say these hosted domains are domain1.com <http://domain1.com/>, domain2.com <http://domain2.com/> and domain3.com <http://domain3.com/>. - Server 2 functions as the inbound/outbound gateway for all email — local/internal and external. I am currently (very foolishly) proxying outbound authenticated client email as a proxy filter from Server 1 to Server 2 — and that is the last Server 1 sees of the email (unless the email comes back to be delivered locally). I know this is not what I should be doing, and I would love to change this behavior. If Server 2 is down (for whatever reason), client emails through Server 1 are not held in a queue and the email is lost unless the client resends later on when Server 2 is up. If I try to have a relay_host set from Server 1 to Server 2, all mail that is not destined for our domains is relayed as expected, but all email destined for local domains is immediately delivered to Dovecot. We use a SQL database for user DB, and LDAP as password DB. What type of virtual/transport maps, relay/recipient/client restrictions, or forwarding should be used? My configuration files are a little bit of a hot mess, otherwise I would post them. At this point, I am interested in learning the most appropriate method of accomplishing this function and starting the configurations over. Much thanks for any help! ~ Laz Peterson Paravis, LLC