From: Richard Foley (no email)
Date: Tue Apr 03 2007 - 05:42:35 EDT
On Monday 02 April 2007 23:22, mouss wrote:
> >
> > put the main domain in the aliases table, I appear to lose the regex
> > facility... I hope this is clear? What I very simply want to do is this:
> >
> > /name\.\w+@main.net/
>
> just add these to virtual_alias_maps. virtual aliases apply to _all_
> mail, whatever is the domain (yes, even for mail sent to @gmail.example).
>
I'm a bit confused... Let's say I take aliases back to the hash version, (no
regexes), as I think you're suggesting.
# main.cf (back to hash)
myhostname = blix.rfi.net
mydomain = rfi.net
alias_maps = hash:/etc/postfix/aliases
alias_database = alias_maps
virtual_alias_domains = hash:/etc/postfix/virtual_alias_domains
virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps
# /etc/aliases (hardwired entries - ok)
hostmaster: root
...
# (majordomo stuff)
test: "|/usr/local/majordomo/wrapper resend -l test test-list"
# /etc/postvix/virtual_alias_domains
# rfi.net 20070401
# blix.rfi.net 20070401
virtual.org 20070401
blix.virtual.org 20070401
I can't use the main domain (rfi.net) in BOTH aliases and virtual table,
postfix logs an error), so I comment the main domain out as above.
# /etc/postvix/virtual_alias_maps
/user.*@rfi.net$/
/name.*@rfi.net$/
...
/@rfi.net$/
/@blix.rfi.net$/
# lists
/$/ listhandler
/$/ testlist
...
Now the problem is that /user.*@main.domain/ no longer catches and redirects
the mail, as defined below. The virtual domain works fine (more or less ;)
Or have I still done something wierd...?
-- Richard Foley Ciao - shorter than aufwiedersehen http://www.rfi.net/ ps. Please resend any bounced or unanswered emails.
|
|
|