Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have apache2 running a few virtual hosts. Each of my websites is working properly. I installed Postfix / Dovecot / MySQL and I can create the domains and users in it's database and everything works. What I'd like to change though is that all my domains must use the same POP3 and SMTP servernames ( I'd like to allow each domain to use it's own servername (

How do I do that?

share|improve this question
I am far past the point of whining over a little rep loss. I know that it comes back a lot faster than it gets taken away, so don't take this as that type of comment. Why the downvote? If you'll comment on it, maybe I can improve the question. – TecBrat Sep 26 '12 at 10:47

I'll assume that you talk about just SMTP submission from your users:

Just create a DNS entry in that points to the IP of your server with an A record or to with a CNAME.

You might need to configure postfix to properly accept these names.

share|improve this answer
The DNS part, I understood, but how to configure postfix to accept them is the root of my question. – TecBrat Sep 26 '12 at 11:19
Also consider that to ensure deliverability, you should have a reverse DNS PTR record setup for you mail server. Can you have more than one of these per IP? Apparently so, but exercise caution:… I decided that having multiple mail server domains was a can of worms (hence not being able to help with the Postfix setup) and settled for one. – jetboy Sep 26 '12 at 11:30
@jetboy I might also settle for one in my current install, but I am thinking about the future as I continue to grow as an administrator. Right now i have and a few related domains that are all actually me, so I don't mind putting "" in my email client for my other domains. I'll keep looking though, so I can do this in the future. (my frame of reference is that where I work, we use a CPanel/WHM setup and everyone's email servernames are mail.domain.tld) – TecBrat Sep 26 '12 at 12:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.