Postfix aliases

I'd like to have several email addresses redirected to a single one (same domain). For example:

first@domain.com
        |________________________third@domain.com
        |
second@domain.com

First, second and third are NOT system users. I have done these kind of aliases before but I… I… I'm not that smart.

Help will be greatly appreciated.

2 Replies

How it's done will depend on the mail software you're using. For example, if you're using Postfix, and third@domain.com is a system user account (username: third), then you'd put something like this in /etc/postfix/virtual:

domain.com    domain.com
first@domain.com    third@domain.com
second@domain.com    third@domain.com
third@domain.com    third

And then run the command:

[root@server] postmap virtual

To rebuild the lookup table db (virtual.db).

In deed, I am using Postfix/Dovecot/MYSQL. I do not have "third" as a system user, so I skipped the last line of your instructions with no results.

Do I need to have "first" and "second" on the database? "third" too?

Thank you in advance!

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