OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: Server with dynamic IP address

Re: Server with dynamic IP address


Subject: Re: Server with dynamic IP address
From: Diego Dainese (ddainesedsi.unive.it)
Date: Sun Jan 02 2000 - 09:28:44 CST


On Thu, 30 Dec 1999 11:26:58 -0500 (EST) wietseporcupine.org (Wietse
Venema) wrote:
> Diego Dainese:
>> On Wed, 29 Dec 1999 09:45:21 -0500 (EST) wietseporcupine.org (Wietse
>> Venema) wrote:
>> [...]
>>>> In example, if I post a message to salesfoo.com, the message is
>>>> redirected (using a virtual map) to a mailbox, say foo_com;
>>>> Delivered-To now will contain foo_com; this obviously doesn't help
>>>> procmail to dispatch the message correctly (that is, to sales).
>>>
>>> So set up different virtual addresses for sales, support and so
>>> on (and specify in main.cf: recipient_delimiter = +).
>>>
>>> salesfoo.com foo_com+sales
>>> supportfoo.com foo_com+support
>>
>> This doesn't help either: what I were really looking for was a way to
>> let the administrator of foo.com decide upon his own internet
>> addresses, without the need to contact his ISP every time she add or
>> remove an user.
>
> Use a regular expression virtual map instead:
>
> /^(.*)foo\.com$/ foo_com+$1
>
> Postfix is flexible enough. But be sure to use the ^ and \ and $
> or else one has false hits.
>

Amazing! This work perfectly and it's roughly what I had in mind when
I posted my help request!

> With the unified transport/virtual map (called routing map) you
> would specify a DB or DBM map entry with:
>
> foo.com foo_com+$local
>
> But that is a development in the design stage.
>
> Wietse
>

I'm holding my breath! ;-)

Best regards and Happy New Year!

-- 
Diego Dainese



This archive was generated by hypermail 2b27 : Sun Jan 02 2000 - 10:02:29 CST