Re: archiving emails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx, $1@xxxxxxxxxxxxxxxxxxx


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
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux