> -----Original Message-----
> From: Kelsey Cummings [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 1:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Mimedefang] filter based on From/To headers?
>
>
> The only thing I can figure now is
> that the HEADERS
> file isn't getting flushed to (ram)disk when it's created.
> Yet:
>
> for dir in `ls`; do find $dir -type f | grep new | xargs grep \
> '^\(To\|From\)' | grep mx.sonic.net > /tmp/mx_in_header.$dir & done
>
> results in:
>
> ...
> a/n/XXX/new/1084194436.30315_0.a.lds,S=3595:From:
> [EMAIL PROTECTED]
> a/s/XXX/new/1084194432.30081_0.a.lds,S=4152:From:
> [EMAIL PROTECTED]
> b/a/XXX/new/1084204421.9158_0.a.lds,S=13680:From: "arthur"
> <"arthur"@b.mx.sonic.net>
> b/a/XXX/new/1084198291.29385_0.a.lds,S=12729:To:
> [EMAIL PROTECTED]
> b/a/XXX/new/1084198480.3495_0.a.lds,S=11911:To:
> [EMAIL PROTECTED]
> ...
Are you sure they all have the hostname at the point MD sees them?
Could your sendmail be re-writing e.g.
to: undisclosed-recipients
as
to: [EMAIL PROTECTED]
after MD returns?
Look for
FEATURE(always_add_domain)dnl
in sendmail.mc. If you don't have clients that require this, perhaps
you could remove it.
And/or try
if ( open(HEADER, "<HEADERS") )
{
while(<HEADER>)
{
next unless /^(To|From|Cc):/i;
unless ( /\@/ )
{
md_syslog('err',"found unqualified username in
header:: $_");
next;
}
if ( /mx\.sonic\.net/i )
{
md_syslog('err',"found hostname in header:: $_");
}
}
close(HEADER);
}
else
{
mdsyslog('err',"couldn't open HEADERS for hostname information ::
$!\n");
}
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang