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

Pàgina inicial
Delete this message
Reply to this message
Autor: Ted Cooper
Data:  
A: exim-users
Assumpte: Re: [exim] Exim rule for only accepting messages with pictureattachment on an address
Tomas Merlin wrote:
> Hi,
>
> 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
> - reject if it doesn't and send an email to the sender explaining
> the rejection
> - send the message to a command using the pipe transport
>
> I read the documentation a bit, and don't really know where to begin
> to do that so if anybody has any pointers I would be very grateful.


Re: #2 there. You are much better off simply rejecting the email at SMTP
time with a simple, short message. Short because some email clients and
servers out there are stupid and don't return error messages.
If you generate an email for every single message that comes in lacking
an image you are going to become a source of spam for every single
spammer that decided to add your email address to the their mailing
list. It might not be their spam that is sent out, but you will be
sending your spam to randomly generated from addresses until something
melts.