multiple domains

Hi!

how could I have multiple domains using postfix and some pop3 system?.

Thanks.

2 Replies

@alfons:

Hi!

how could I have multiple domains using postfix and some pop3 system?.

Thanks.

Here is my /etc/postfix/main.cf:

myhostname = mydomain.ro

mydestination = $myhostname, $mydomain, localhost,/etc/postfix/myotherdomains.com

and here is my myotherdomains.com file:

other1.com

other2.com

other3.com

I think that is all you do for postfix.

For pop3, you don't need special configuration.

I use dovecot, and all the users in my system have a username/password pair, and they use that to get their email.

[The email for all the virtual users for all the domains I have are mapped to system users]

Good luck.

It depends on how you want to authenticate your users. You can have regular Unix users but you won't be able to have the same name in 2 different domains or you can use ldap or SQL stored mailbox.

Check on www.postfix.org and take the time to read and understand the document on virtual domains for example.

I've done just this with postfix/dspam/tpop3d and PostgreSQL and soon clamav. I only host my personal maimlboxes but I wanted something that could support as many domain and mailbox I want, all stored in a database.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct