Randy Ramsdell:
> > /etc/postfix/main.cf:
> > virtual_alias_maps = hash:/etc/postfix/virtual
> >
> > /etc/postfix/virtual:
> > # All example.com users become [email protected].
> > @example.com [email protected]
> >
> > # Except for [email protected], which stays itself.
> > [email protected] [email protected]
> >
> > # And except for [email protected], which goes elsewhere.
> > [email protected] other@elsewhere
> >
> > See http://www.postfix.org/DATABASE_README.html for tips to translate
> > this into other database formats.
> >
> > Wietse
> ahh however we need :
>
> @ singleuser@domain.
>
> I tried this but does not work.
No surprise. The form "@" is not documented anywhere.
If you really must rewrite any domain, use regular expressions instead.
/etc/postfix/main.cf:
virtual_alias_maps =
hash:/etc/postfix/virtual pcre:/etc/postfix/virtual.pcre
/etc/postfix/virtual:
# [email protected] stays itself.
[email protected] [email protected]
# [email protected] goes elsewhere.
[email protected] other@elsewhere
/etc/postfix/virtual.pcre:
# Everything else goes to the mailsink.
/./ [email protected]
Wietse