0

I want to direct all mails received via smtp from the local server to a given local address [email protected].

In main.cf

virtual_alias_maps = regexp:/etc/postfix/virtual

I tried first to use virtualmap

/.*/   [email protected]

followed with postmap virtual and /etc/init.d/postfix restart

But it doesn't work - the mail is still routed as normally, and no special message in /var/log/maillog.

The Postfix configuration is scattered over many files, not always updated, sometimes ambiguous (try to find out the command to simply get the version of postfix), and I don't see what can be the problem. Any idea of what could be wrong?

2
  • Seems like that would create a loop if [email protected] is a local address as well.
    – topdog
    Sep 2, 2010 at 6:31
  • Ah, virtual is recursive? Is there a way to prevent that?
    – Déjà vu
    Sep 2, 2010 at 15:25

1 Answer 1

0

So it seems the correct working syntax is

/.+@.+/   [email protected]

that fixed it, and virtual is not recursive...

You must log in to answer this question.

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