0

I'm trying to forward email going to [email protected] to [email protected], I read a bunch of articles and can't seem to get it to work.

I have a local user on the server "userA"

If I have "userA: [email protected]" in the aliases table It forwards the emails but only when I send them from the server. But if I try emailing from another email address like [email protected] it won't forward to [email protected]

If I have " userA: userA " in the aliases table it has no problem storing the emails on the server.

Any Advise? should I do this differently?

1 Answer 1

1

Simplest way to do this is to use the virtual map. Just add a line to /etc/postfix/virtual like this:

[email protected] [email protected]

You may need to add

virtual_alias_maps = hash:/etc/postfix/virtual

to your main.cf.

Then just rebuild the virtual map:

sudo postmap /etc/postfix/virtual

and reload:

sudo /etc/init.d/postfix reload
1
  • Sorry been battling SMTP I'm going to get back to this asap. I didn't forget your response. Feb 15, 2013 at 22:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .