There was a question about open relays asked previously.

I have a new CentOS 6 server handling multiple domains for several customers.

On the previous server (which was running CentOS 4), I had sendmail configured to handle incoming mail for several domains.

The goal is to replicate the old functionality on the new server - but my experience with administering mail is limited.

Ideally, I want a given mailbox to be addressable via any of the allowed domains. Eg warren@domain.net & warren@domain.com should be the same inbox (since the user exists on the same server).

Ultimately, I anticipate we will be splitting mail and web traffic, but the traffic demands just aren't that high yet.

How can postfix be configured to handle multiple incoming domains for the same mailboxes?

  • So what is your question? – mailq Oct 4 '11 at 22:16
  • @mailq - see summation added – warren Oct 4 '11 at 22:26
  • 1
    Way too broad. Aliases is the key. But you don't say how you configured the mailboxes. First doc to read: postfix.org/VIRTUAL_README.html – mailq Oct 4 '11 at 22:44
  • @mailq - they are standard Unix users – warren Oct 5 '11 at 1:19
  • Then I don't know where your problem is. Postfix delivers out-of-the box to Unix accounts. As long as the are of type username@hostname. – mailq Oct 5 '11 at 17:36

In your main.cf you need to set your mydestination parameter.

it should have something like:

mydestination = $myhostname, localhost.$mydomain, $mydomain

You need to change it to:

mydestination = $myhostname, localhost.$mydomain, domain.net, domain.com

More info on the parameter:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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