Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 01, 2012 1:47 am 
Offline
Newbie

Joined: Sun Jul 03, 2011 11:19 pm
Posts: 2
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.


Top
   
PostPosted: Sun Sep 02, 2012 6:41 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
If you are using virtual domains, you should stick with that and do your configuration of mailboxes there and leave /etc/aliases alone.


Top
   
PostPosted: Mon Sep 03, 2012 1:38 am 
Offline
Newbie

Joined: Sun Jul 03, 2011 11:19 pm
Posts: 2
Great, thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group