I do realize that it is open but I restrict that on the server. Here is my filter_recipient.
#*************************************************************************
# %PROCEDURE: filter_recipient
#
sub filter_recipient
{
   connect_to_database();
my($recip, $sender, $ip, $host, $first, $helo, $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
       my $from_name;
       my $from_domain;
my $relayflag = 0; # set the relay flag to 0 then check the hostname and use it later for delay

       if (($host !~ /\.(?:com|net|edu|org|gov|mil|ca|ne.us)$/) ||
              ($host =~/\d{1,3}-\d{1,3}-\d{1,3}/) ||
              ($host =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\..*/) ||
              ($host =~ /dial|client|dhcp|dynamic|\.dyn\./) ||
       {
        $relayflag = 1;
       }

       if ($recip =~ /bwtelcom/i){
($result, $rmesg)= md_check_against_smtp_server($sender, $recip,"smtp1.hamilton.net","mail.bwtelcom.net");
        }
        else{
($result, $rmesg)= md_check_against_smtp_server($sender, $recip,"smtp1.hamilton.net","mail.hamilton.net");
        }

       if($result =~ /CONTINUE/){
       return ('CONTINUE' ,"ok");
       }
       elsif($result =~ /TEMPFAIL/){
       return ('TEMPFAIL' ,"$rmesg");
       }
       else
       {
       if ( $relayflag ){
return ('REJECT', "unknown user account", "550", "5.1.1", "10");
                         }
       else{
            return('REJECT',"unknown user account", "550", "5.1.1", "3");
            }

}

Wayne
----- Original Message ----- From: "David F. Skoll" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, November 30, 2006 3:18 PM
Subject: Re: [Mimedefang] bounce check with sendmail and md_check_against


Wayne wrote:

Communigate Pro. It does reject about 99% of them. It's the clever
spammers that are getting buy me causing me to bounce the messages.

You do realize that mail.hamilton.net is reachable on port 25 from the
Internet?  That's probably a bad idea.

Still, I don't know why you'd be getting those bounces.  How are
you using md_check_against_smtp_server in your filter?

--
David.
_______________________________________________
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



_______________________________________________
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