[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cyrus-info
Subject:    archiving emails
From:       cyrus-info () japantest ! homelinux ! com (Sandy Drobic)
Date:       2007-06-21 18:46:56
Message-ID: 467AC7A0.3040404 () japantest ! homelinux ! com
[Download RAW message or body]

Diego M. Vadell wrote:
> Hi,
>    I did that with postfix, making a virtual alias with pcre. From the top of 
> my head, it was something like this:
> 
> @domain.com          ($1)@domain.com,($1)@archive.domain.com
> 
> This syntax is surely wrong, but the idea is to use pcre to match the username 
> part and put it in the virtual aliases. 

Yes, the Syntax is wrong. (^-^)

/etc/postfix/main.cf:
virtual_alias_maps = pcre:/etc/postfix/virtual.pcre

/etc/postfix/virtual.pcre:
/(.+)@example.com/	$1 at example.com, $1 at archive.example.com


A much bigger problem is, that this wildcard alias is destroying recipient
validation. This is only viable, if this alias is applied after recipient
validation took place. Don't use this on your mx!

Sandy

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic