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 [EMAIL PROTECTED]): > - 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. -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
