Linode Forum
https://forum.linode.com/

Postfix - Redirecting email to address
https://forum.linode.com/viewtopic.php?f=11&t=9334
Page 1 of 1

Author:  got_milk [ Sat Sep 01, 2012 1:47 am ]
Post subject:  Postfix - Redirecting email to address

After starting fresh with a clean installation of Debian 6 on my Linode, following this great guide on the Linode library, I went to the sometimes daunting task of setting up mail. With some time and effort I managed to get Postfix/amavisd-new/clamav/SpamAssassin and dovecot working wonderfully.

What I'd like to do now, however, is work out a way that mail coming to certain addresses can be redirected to me. For example, I want mail addressed to postmaster@example.com to be redirected to me@example.com, if that makes sense. I tried Googling and all the suggestions pointed towards /etc/aliases, but according to the man pages that file is just for local accounts and not for virtual domains.

If someone could let me know how I would be able to accomplish this, I would really appreciate it.

EDIT: Okay, so I found that /etc/aliases is actually the solution, but I figured out that it only correctly redirects mail sent to postmaster@host.example.com and not postmaster@example.com. How can I make Postfix redirect that mail?

EDIT 2: I poked around some more and found that adding an entry in the forwardings table in the MySQL database pointing from postmaster@example.com to me@example.com, it does work! Is this the correct method of doing this? It just feels a little redundant since I already have /etc/aliases pointing to correct addresses.

Author:  Vance [ Sun Sep 02, 2012 6:41 pm ]
Post subject:  Re: Postfix - Redirecting email to address

If you are using virtual domains, you should stick with that and do your configuration of mailboxes there and leave /etc/aliases alone.

Author:  got_milk [ Mon Sep 03, 2012 1:38 am ]
Post subject:  Re: Postfix - Redirecting email to address

Great, thanks!

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/