[Mimedefang] slaves stuck in recipok

-ray ray at ops.selu.edu
Wed Oct 5 08:07:52 EDT 2005


On Wed, 5 Oct 2005, David F. Skoll wrote:

> What does your filter_recipient function look like?

It is below, just one call to md_check_against_smtp_server.  I didn't 
check the other smtp server, i was looking for a DNS problem.  Even 
telnetting to port 25 it'd take 10 seconds or so get get a 220 welcome, 
and more than 10 seconds for the mail from and rcpt to to succeed.  Really 
thought it was DNS, but DNS seemed ok...

The problem cleared up all by itself in the midst of my 
troubleshooting...which is scary cause it may happen again at any time, 
haha.

ray


sub filter_recipient {

my($recip, $sender, $ip, $host, $first, $helo,
            $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;

$recip =~ /.+\@(.+)>?/;  # extract domain part (minus angle bracket)
my $domain = $1;
$domain =~ s#[<>]##g;
if (($domain =~ /^selu.edu$/i) && ($domain !~ /^lists.selu.edu$/i)) {
            #md_syslog('info', "SLU check recip $recip for domain 
$domain");
            return md_check_against_smtp_server($sender, $recip,
                                 "smtp.selu.edu",
                                 "mailstore.selu.edu");
        }

return('CONTINUE', "OK");  # accept recipient if dont find relay
}


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean  				       	 http://www.r-a-y.org
Systems Engineer                    Southeastern Louisiana University
IBM Certified Specialist  	      AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the MIMEDefang mailing list