David said:

> > as far as I can see, filter_recipient() does
> > not get called or see the recipient if sendmail rejects an unknown
> > local user.
> 
> It should be unless you use the "-N" flag with mimedefang.  (I assume
> here Sendmail 8.14.x)

It's 8.14.4.

I added some debugging output at the end of filter_sender()

   md_graphdefang_log_once("filter_sender_done", "Sender:[$sender],
ip:[$ip], hostname:[$hostname] helo:[$helo]") ; # if $UCCdebug ;
   return ('CONTINUE', "ok");
}  ################### End of filter_sender
################################


..and at the start of filter_recipient() :

sub filter_recipient {
    my ($recipient, $sender, $ip, $hostname, $first, $helo) = @_;
    md_graphdefang_log_once("filter_recipient", "Recipient:[$recipient]
Sender:[$sender], ip:[$ip], hostname:[$hostname] first:[$first]
helo:[$helo]") ; 


Now when I send to an unknown user I get this:

Feb  2 10:31:34 mailX mimedefang.pl[4201]:
MDLOG1,p12AVRbp017875,filter_sender_done,Sender:..................
Feb  2 10:31:34 mailX sendmail[17875]: p12AVRbp017875:
<[email protected]>... No such user here
Feb  2 10:31:34 mailX sendmail[17875]: p12AVRbp017875:
from=..............., nrcpts=0, proto=ESMTP, daemon=MTA,
relay=............


I suspect the problem may be that I have another milter, milter-greylist
(sorry, should have mentioned that in my original post). I don't know
why it would make sendmail do this. I'll post the symptoms on the
milter-greylist list.


Regards

Mark

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to