[Mimedefang] custom function - stripping attachments based on headers

David F. Skoll dfs at roaringpenguin.com
Tue Apr 30 18:14:46 EDT 2002


On Tue, 30 Apr 2002 15:20:51 -0500 (CDT) Terry Davis
<tdavis at approbation.org> wrote:

> Ok, sorry for being a pest.  I tried simplifiying this more:

> open(HDRS, "<HEADERS");
> while( $line = <HDRS> ) {
>   chomp $line;
>   syslog('warning', "It worked\n");
> }

> This should have put 'It worked\n' in my /var/log/maillog file for every
> line in my HEADERS file.

Yes.  Didn't it?  It did for me.

Are you sure your test message is using SMTP?  For Sendmail before 8.12,
locally-submitted-and-delivered messages do not use SMTP and hence don't
pass through milter.  Even with 8.12, you can set it up so local
messages don't use SMTP, so be careful...

Regards,

David.




More information about the MIMEDefang mailing list