Re: [Exim] Filter quotation marks in local_part

Top Page
Delete this message
Reply to this message
Author: Kirill Miazine
Date:  
To: exim-users
Subject: Re: [Exim] Filter quotation marks in local_part
Felix Havemann wrote:

> Some spammers use an error in LotusNotes to relay email to an adress
> given as a local part in quotation marks to a local domain. e.g.: If
> you send an email to "bob@??? and mycompany.cno is
> your local domain, lotus sends the mail to bob@???.
> Luckily our customers Lotusnotes server is protected by an exim-server
> (Version 3.35 with Debian Linux) that proxies SMTP-connections. I do
> now try to craate a filter, that prevents local parts witch quotation
> marks to be delivered. My filter file looks like this:
>
> # Exim filter
> if $local_part contains \" then
> save /tmp/spam
> endif
>
> The filter is correctly installed but the emails are still delivered if
> an quotation mark is in the local part. Exim makes no difference
> between "user"@domain and user@domain
>
> Any ideas?


"user"@domain == user@domain

The first variant have local part quoted. The local part itself does not
contain any quotation mark. It does in the following example:

"user\""@domain

The latter form will be catched by your filter.

--
    -- K.M.