OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Q: How to ... Generic names for mail users

From: Tim B (mostlyharmlessoptonline.net)
Date: Mon Jan 03 2005 - 17:01:57 CST


Andreas P. wrote:
> Hi,
>
>>> Now I'd like to introduce a "generic name" for some of my mailusers:
>>> Real user: some.onemy.dom
>>> Generic name: some.one-[xxx]my.dom
>>> The generic name consists of
>>> - the local part of real name
>>> - plus a dash (at least this would be my favourite)
>>> - plus a variable part [xxx] of any length.
>>>
>>> So far I haven't found a way to get this done. The name extensions I
>>> have found with using "some.one+xxxmy.dom" are not accepted by the
>>> mailsystem behind.
>>
>>
>> recipient_delimiter = -
>>
>
> thanks to Magnus for the hint ... but the mailsystem behind does not
> cope with that ... so is there any idea to take the original recipient
> "myaccount" <some.one-xxxmy.dom>
> and make a
> "myaccount -- some.one-xxxmy.dom" <some.onemy.dom>
> out of it? So the mailsystem behind just evaluates the "some.onemy.dom"
> and the recipient still can see to whom the mail was adresses to ...
>
> Thanks in advance
>
> Andreas
>

I don't know if I'm understanding what your exactly asking for...but I
think what you might want to look at is canonical mapping.

that will take any mail received to an smtp envelope recipient of
publicaddressmy.dom and translate it to realaddressmydom.com However,
I do not think xxx can be "variable" as I do not know if you can use
pcre lookups on a canonical maps file.

so for your example you canonical maps file would have:

some.one-xxxmy.dom some.onemy.dom