|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Darren Pilgrim (postfix
bitfreak.org)
Date: Mon Sep 03 2007 - 19:45:35 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Wietse Venema wrote:
> Mark Krenz:
>> On Sun, Sep 02, 2007 at 01:55:26PM GMT, Wietse Venema
>> [wietse
porcupine.org] said the following:
>>>> If not, then this basically means that I can't setup an email
>>>> router so that it would allow users on the delivery machine to
>>>> see who the message was originally sent to in a situation like
>>>> a user being on a mailing list. I would think that this would
>>>> be a common problem for people.
>>>
>>> Of course you can. Simply do the virtual aliasing on the final
>>> destination host! Don't do it on an intermediate machine.
>>
>> Ok, but if I'm understanding what you are saying, that would defeat
>> the purpose of why I'm doing this. I want the intermediate
>> machine so that I can point different addresses on the same domain
>> to different machines. For instance, I'd like email only accounts
>> to go to one machine, unix accounts to go to another and mailing
>> lists to go to another.
>
> And what is the problem with not knowing the original RCPT TO? If
> mailing list traffic is delivered to Joe's mailbox, then obviously
> the mail was for Joe.
What if Joe has some mail aliases and he wants to filter mail into
folders based on the alias?
The trick is to fool the alias->mailbox resolution on the router into
thinking every alias is a mailbox. Since Mark is using SQL, it's a
simple matter of altering the query to return the queried address
instead of the alias destination (i.e., SELECT address FROM aliases
WHERE address='%s'). This will make the email router forward to the
delivery servers using the original envelope.
The drawback with putting all of this in one domain (instead of multiple
subdomains) is that you can't use 1-to-N aliases without extra hackery
to limit the scope of the delivery servers' alias/mailbox lookups. Much
better to do this with subdomains.
--
Darren Pilgrim
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]