Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am planning to build a mailgateway which has to do multiple routing.
This is the setup:
Path A.
Postfix Mailgateway is in DMZ.
MailGateway receives mail from the Internet, does some checks on AV and SPAM, then routes email to internal (Postfix) smtp-server.
The internal smtp-server distributes email to Exchange servers in several internal domains, say example.com
On the internal-smtp-server are mailboxes for "other" domains and users, to be reached by POP and IMAP (say this is for a.com, b.com and c.com). This is handled by Virtual_Domains etc.
On the Postfix MailGateway I 'm using "transport maps" to get all the mail for example.com, a.com, b.com and c.com routed to the internal smtp-server.
So far I'm cool. (I think. :-)
Path B.
The DMZ MailGateway is also planned for "mailwashing" the email for other maildomains that reside elsewhere on the Internet, say x.com y.com and z.com
For these domains the MX records in DNS point to our MailGateway, so the mail arrives, is then being washed and after that gets send over to the smtp-servers of x.com, y.com and z.com.
I have no experience how to configure this, since "transport maps" only apply for domains you host yourself.
So what type of route setting do I have to use here: will relay_domains do the job?
If so, will "relay_domains" combine with "transport maps"?
I hope to hear some real world advise.
Thanks!
Last edited by coolster; 11-22-2008 at 02:42 PM.
Reason: typo
There's the relay_recipient_maps that should help.
See man 5 postconf
Hi billymayday,
I have been looking into this: by using relay_recipient_maps you have to know who exactly you users are.
So at he MailGateway-server, in the DMZ, I have to maintain some database(s) filled with valid users.
Isn't that typically a configuration item that is best handled by the smtp-servers at x.com, y.com and z.com?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.