LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2008, 02:37 PM   #1
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Postfix mailgateway question


Hi all,

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
 
Old 11-22-2008, 03:21 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why wouldn't you use relay_domains and relay_transport?

Entries would be something like:

x.com smtp:mail.x.com
y.com smtp:mail.y.com
z.com smtp:mail.z.com


One thing you will want to consider is how you deal with nonexistent users though.
 
Old 11-22-2008, 04:46 PM   #3
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post


One thing you will want to consider is how you deal with nonexistent users though.
Hi billymayday, thanks for y'r answer.
I will take your suggestions into testing.
Nonexistent users are indeed an issue in this setup.
 
Old 11-22-2008, 07:13 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
There's the relay_recipient_maps that should help.

See man 5 postconf
 
Old 11-23-2008, 04:49 AM   #5
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
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?

C.
 
Old 11-23-2008, 04:55 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sure is, but you'll be accepting the mail as relay, so either the relay checks or accepts all mail.
 
Old 11-23-2008, 06:01 AM   #7
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Sure is, but you'll be accepting the mail as relay, so either the relay checks or accepts all mail.
Hm..... yes, I realize that now.
Thanks for y'r feedback!

C
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
postfix question lodder Debian 1 08-07-2006 09:11 AM
Postfix question ncp Debian 1 11-29-2005 01:45 AM
secure-mailgateway ahmed4linux Linux - General 1 03-30-2005 11:55 AM
Postfix Question timnew Linux - Newbie 14 05-11-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration