[Mimedefang] Sendmail Skipping Filter

Nathan F nathan at zenlok.com
Mon Oct 20 22:38:57 EDT 2014

Hi all,

I have a mimedefang filter that discards all messages with "relayaddr
ne".  It is a sort of journaling server for mail.  Sometimes
I am finding that some (a very small number) of mails are somehow
being sent out.  These mails are coming from an external system
originally, but they don't seem to hit mimedefang's filter.  Any


filter_end {
  if($RelayAddr ne '') {
    do processing;

server log entry:

Oct 20 10:16:09 inbound sendmail[12981]: s9K1G8oB012981: from=<a at b>,
size=32820, class=0, nrcpts=1, msgid=<z at z>, proto=ESMTP, daemon=MTA,
relay=ip-10-0-4-5 []
Oct 20 10:31:21 inbound sendmail[6491]: s9K1G8oB012981: to=<d at e>,
delay=00:15:12, xdelay=00:00:00, mailer=esmtp, pri=242820,
relay=abc.com., dsn=5.3.5, stat=Local configuration error
Oct 20 10:31:21 inbound sendmail[6491]: s9K1G8oB012981:
s9K1VGlK006491: DSN: Local configuration error
Oct 20 10:31:22 inbound sendmail[6491]: s9K1G8oB012981:
s9K1VGlL006491: postmaster notify: Local configuration error

Ignoring the fact that this is failing with an error, the important
thing is that somehow sendmail is trying to send out some of my mails
on a server with a discard all milter.  In the first log entry, it
shows a relay address that isn't  However the code should
digest all non-local mails.  Is this mail somehow being turned into a
local relay message (say if the server is overloaded and it has to
queue some messages) ?

My apologies if my terminology isn't spot on.


More information about the MIMEDefang mailing list