Redirecting mails doesn't work

February 21, 2012 at 10:21:40
Specs: debian 6.0, AMD Phenom II 6X
Hi folks,

Debian 6.0

I need all mails to fmaster to be redirected to sysadmin and did following steps;

$ sudo nano /etc/aliases
adding following line:-
fmaster: sysadmin

$ sudo newaliases

However all mails to fmaster are still delivered to fmaster mail box NOT sysadmin. Please help. TIA


See More: Redirecting mails doesnt work

February 21, 2012 at 11:52:25
Try to put it in the file /etc/postfix/virtual in the form:
fmaster     sysadmin

Then do the following:
$ sudo postmap /etc/postfix/virtual
$ sudo postfix reload

Please report back the result.

Report •

February 21, 2012 at 18:53:00

Thanks for your advice.

I don't have /etc/postfix/virtual file created yet.

I was following;
Post fix Basic Setup Howto

configuring Postfix. Upto "Edit the alias table" before I didn't encounter problem. But I was stuck here. The steps didn't work. Testing mail was still delivered to fmaster mail box NOT sysadmin. I'm wondering why it doesn't work.

There is a section "Postfix virtual Aliases for separate domains and Linux system accounts" on the later part of this tutorial


Report •

February 22, 2012 at 01:09:33
You´re right, it should work by only using the entry in the /etc/postfix/aliases file, as you´ve done:
fmaster: sysadmin

$ sudo newaliases

Is the aliases.db rebuild? Check the date and time of that file.

But, what does the mail log file show, when fmaster gets an e-mail?
Try this at another console prompt:
$ sudo tail -f /var/log/mail

and watch on what happens, when fmaster gets an e-mail.

Report •
Related Solutions

Ask Question