Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-18-2003, 09:49 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Question qmail or postfix relay

I wish to set up a linux smtp relay. The relay will not have pop or imap on it. I want it to be able to relay mail to the internet from local people and relay mail addressed to local people from the internet, disallowing all other relaying.

my setup will be like this mx <---- note others do not have mx records pop3 server, webmail server with only 25 clients

I also want to relay mail based on username, with the majority going to one email server.

All my clients have as their smtp sending in their mail user agents. All internet traffic only sees my mx record for sends email to it gets picked up by and then sent to either or based on user rules.

My question is what would be the easiest way to set this up? What mail server should i use? qmail? postfix? I am using rh9 on the host.

Any hints or links to howtos would be greatly appreciated.
thank you
Old 08-18-2003, 10:03 AM   #2
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Does your DNS information properly list as the 'MX' record for the domain? This is probably the first step.

Also, where will the mail be delivered to before it is picked up? Why can't one machine handle both pop and imap? Forwarding mail delivery based on the method of pickup (POP/IMAP) is kind of a strange way of doing it...

If you absolutely need these three services (SMTP/POP/IMAP) on separate hosts, I suggest that you simply make the /var/spool/mail folder available to the other two pop and imap hosts via a secured NFS implimentation. That way, you won't need to relay anything any where: Messages addressed to will be delivered directly to, where they will live until they are deleted.

When your users want to get their mail, they connect to either or which will access the mail sitting on via NFS.
Old 08-18-2003, 10:52 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
hi thanks for your reply
yes my dns is listing smtp as an mx record. it is a running environment for over 500 accounts. 5 domains.

The reason it has to be this way (two seperate mail retrievers) is that my company wants to put up exchange but not convert the entire company. They want to test it for a few users,
but they dont want to test it in a real test invironment but using their own emails/domains etc.

it is almost purely a windows shop, i just started here and i am trying to put in linux solutions where they fit. so no nfs either.
so everything has to kinda work... since it is live.

Last edited by sabah; 08-18-2003 at 10:53 AM.


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
Qmail as a relay server Jukas Linux - Software 1 10-07-2005 04:07 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
qmail + relay ... help.. rincewind Linux - Software 2 01-24-2005 09:49 AM
How do I set up a Qmail/Spamassassin Relay bwilliam79 Linux - Software 0 03-01-2004 04:36 PM
qmail open relay iwa Linux - Security 2 11-12-2003 07:40 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:28 AM.

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