On Fri, Jul 25, 2008 at 12:23:10PM +0200, ML wrote:
> I wonder how to know if a mail is catched by the default alias.
> What i'm trying to achieve is to add a rule in my antispam when the
> mail is sent to a unknown address
> I have such lines in virtual_alias_maps :
> @vitualdomain1.tld [hidden email] > @virtualdomain2.tld @virtualdomain1.tld
> [hidden email][hidden email] > [hidden email][hidden email] > [hidden email][hidden email] >
> I want to log (or prepend i.e. X-CatchAll: yes) recipients (smtp
> level) of mails passing through lines 1 and 2 and no other. In other
> words this mean any rewrite made using an entry starting with @
> Thanks for any advice...
A pcre access table that uses "PREPEND".
/^/ PREPEND X-CatchAll: yes
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.