On Thursday, August 21, 2003, at 06:22 PM, LuKreme (List User Kreme) wrote:
<heavily snipped>SIMS routing is better, imo. Something as simple as:
<[EMAIL PROTECTED]> = d2-*
is annoyingly hard to do in postfix
The inability to figure this out is the primary factor stopping me from moving. you say it's annoyingly hard, so I'm taking that to mean it is possible.
Well, I think it's possible...
How do you duplicate this in Postfix?
The easiest way, and the wrong way, is simply to say in the virtual file:
/^domain2.tld$/ DOMAIN <-- this can be anything, it's just a place-holder
/(.*)[EMAIL PROTECTED] [EMAIL PROTECTED]
and use regexp:/etc/postfix/virtual to read that file.
While this LOOKS a lot like the SIMS method, the trouble is it has the effect of enabling the "unknown account" for domain2. This is VERY BAD.
[EMAIL PROTECTED] pointed this out in a post to postfix-users on 10 Jun 2003:
Sadly this will not give him any recipient address validation for
"kreme.com", because *all* addresses will find a match in the virtual map.
With Postfix, the correct solution, is to explicitly enumerate all the users in virtual_alias_maps:
virtual_alias_maps = hash:/etc/postfix/valiases virtual_alias_domains = kreme.com mydestination = $myhostname, localhost.$mydomain
/etc/postfix/valiases: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
If the "kreme" users don't need shell accounts, a virtual mailbox domain
setup may be more appropriate.
So, you can do it, but YOU have to do it.
This does make sense, since without a virtual mailbox domain any "user" has to be a _REAL_ user.
-- I listen to the wind, to the wind of my soul
--
"It's like those French have a different word for *everything*" - Steve Martin
############################################################# This message is sent to you because you are subscribed to the mailing list <[EMAIL PROTECTED]>. To unsubscribe, E-mail to: <[EMAIL PROTECTED]> To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]> To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]> Send administrative queries to <[EMAIL PROTECTED]>
