cyrus-info at japantest.homelinux.com
Thu Jun 21 14:46:56 EDT 2007
Diego M. Vadell wrote:
> 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. (^-^)
virtual_alias_maps = 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!
More information about the Info-cyrus