November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

qmail multiple domains support

 

Some time ago I wrote an article about qmail e-mail accounts setting.
Since that time I needed to specify multiple domains with same e-mail names, like:
– info@examle.com to deliver mails to info_example user
– info@example1.com to deliver mails to info_example1 user
– test@example.com to deliver mails to test_example user

This article describes how to set up such environment greatly.

Here is short explanation how to do it.
Add following lines to /var/qmail/control/virtualdomains

1 examle.com:alias-example
2 examle1.com:alias-example1

Add the following files to /var/qmail/alias/
.qmail-example-info with entry line info_example
.qmail-example1-info with entry line info_example1
.qmail-example-test with entry line test_example

restart qmail and it should work.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>