Re: [exim] Exim rule for only accepting messages with pictur…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Odhiambo Washington
Dátum:  
Címzett: exim-users
CC: Tomas Merlin
Tárgy: Re: [exim] Exim rule for only accepting messages with picture attachment on an address
On Fri, Aug 1, 2008 at 7:03 PM, Tony Finch <dot@???> wrote:
> On Fri, 1 Aug 2008, Tomas Merlin wrote:
>>
>> I'm trying to have a rule for exim to do the following for all
>> messages send to a particular address (say photo@???):
>> - check if the email has a picture attachment
>
> in acl_smtp_mime write
>
>  warn
>    condition = ${if match{$mime_filename}{[.](jpg|gif|png)\$} }
>    set acl_m_IMG = true

>
>> - reject if it doesn't and send an email to the sender explaining
>> the rejection
>
> in acl_smtp_data write
>
>  deny
>    message = Your message did not have an image attached
>  ! condition = $acl_m_IMG


You will need to rethink this further, probably include a further
condition which checks the mail was actually sent to
photo@???.

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
--from a /. post