[Mimedefang] md_check_against_smtp_server and md_graphdefang_log

James Curtis jameswcurtis at hotmail.com
Tue Mar 26 06:23:30 EDT 2013


Date: Tue, 26 Mar 2013 10:21:42 From: t.schmidt
>In my case (CentOS) the configuration file is
>/etc/sysconfig/mimedefang, containing, among others, these lines:
>
># If "yes", turn on the multiplexor recipient checking function
>MX_RECIPIENT_CHECK=yes
I do use CentOS and I have modified the line as suggested.  Now my MIMEDefang server is blocking unknown recipients.
Thanks everyone for getting me to this point.
Now just one more thing.  I want to md_graphdefang_log if it is an unknown user.  Here is what I have put together
based on the other entries in this post.  I'm sure I'm missing something because it doesn't work.  Please advise for this 
last piece of the puzzle.  Obviously I wouldn't log all valid, its for testing purposes, what am I missing?
------------------code ------------------------
sub filter_recipient
{
my ($retval, $code, $dsn, $text) = md_check_against_smtp_server($sender, $recip, "localhost", "192.168.1.10");
#     my($recip, $sender, $ip, $host, $first, $helo, $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
#     return md_check_against_smtp_server($sender, $recip, "mail.hml.com", "192.168.1.10");
      if ($retval eq "Reject") {
        md_graphdefang_log('notauser', $recip, $sender);
}else{
        md_graphdefang_log('valid', $retval, $code);
        }
}
------------------code---------------------------

Thanks everyone for the help so far
-Bill 		 	   		  


More information about the MIMEDefang mailing list