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 [EMAIL PROTECTED] > @virtualdomain2.tld @virtualdomain1.tld > [EMAIL PROTECTED] [EMAIL PROTECTED] > [EMAIL PROTECTED] [EMAIL PROTECTED] > [EMAIL PROTECTED] [EMAIL PROTECTED] > > 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". if /@example\.com$/ /[EMAIL PROTECTED]/ OK /[EMAIL PROTECTED]/ OK /[EMAIL PROTECTED]/ OK /^/ PREPEND X-CatchAll: yes endif -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> 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.