Hello,
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
smtp.mydomain.com mx <---- note others do not have mx records
pop.mydomain.com pop3 server,
imap.mydomain.com 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 smtp.mydomain.com as their smtp sending in their mail user agents. All internet traffic only sees my mx record for smtp.mydomain.com.
joe@foreigndomain.com sends email to
bob@mydomain.com it gets picked up by smtp.mydomain.com and then sent to either pop.mydomain.com or imap.mydomain.com 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 smtp.mydomain.com host.
Any hints or links to howtos would be greatly appreciated.
thank you