|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Richard Foley (Richard.Foley
rfi.net)
Date: Mon Apr 02 2007 - 06:11:12 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm using postfix with 2 domains: a main "rfi.net" domain, and another virtual
domain.
The main domain is handled via /etc/postfix/aliases linked to /etc/aliases,
and has hard-wired "name"s on the left-hand side, with existing system user
accounts on the right-hand side, as the default setup, plus several entries
for explictly diverted majordomo aliases. And works fine, eg:
hostmaster: root
# main.cf has:
alias_maps = hash:/etc/postfix/aliases
The virtual domain is handled via /etc/postfix/virtual_alias_maps, and this
uses regexes to map particular name.patterns to various user accounts. And
works fine, eg:
/name\.\w+
virtual.net/ user
host.virtual.net
My problem is that I would like to have the 'main' domain also able to use a
regex to divert email to particular user accounts, which description in the
docs is eluding me. If I place the main domain in the virtual table, postfix
rightfully complains about not mixing incompatible configurations, but if I
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/ user
host.main.net
I'm sure it's something obvious in the docs, but being a postfix newbie, I am
simply lost amongst all the virtual domains, virtual aliases, alias_maps,
aliases, transport_maps, etc. etc. If anyone has a simple hint which could
help clarify the situation, I'd greatly appreciate it.
TIA.
--
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.rfi.net/
ps. Please resend any bounced or unanswered emails.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]