[Mimedefang] Starting all over to kill invalid users

Steve Campbell campbell at cnpapers.com
Fri Jul 7 09:41:07 EDT 2006


Thanks David,

----- Original Message ----- 
From: "David F. Skoll" <dfs at roaringpenguin.com>
To: <mimedefang at lists.roaringpenguin.com>
Sent: Thursday, July 06, 2006 10:30 PM
Subject: Re: [Mimedefang] Starting all over to kill invalid users


>> 2).   It would be nice to be able to do the md_check_against_smtp_server
>> using an IP address
>
> Eh?  So go ahead and do it; you don't have to use $rcpt_host if you
> don't want to.

I have used the HOWTO example from the website for this. It defines a 
variable "relay" that I pass to md_check_against_smtp_server for the 
"server" variable. If I assign the real hostname to $relay, it uses the DNS 
public address. If I assign the IP address without brackets to $relay, it 
still appears to use the DNS public address. If I assign the address with 
brackets to $relay, I get an error. So it must be seeing this variable, it's 
just not using it (or is it?)

So my statement looks like this:

return md_check_against_smtp_server($sender, $recip, "myfqdn server name", 
$relay);

>
>> Is there anyway to force the function to use an alternately-defined IP
>> for a hostname?
>
> Of course.  Just pass it in as the appropriate argument to
> md_check_against_smtp_server.

Easy for you to say! I'm apparently doing something wrong. Does any of this 
depend on how I have sendmail set up as far as relaying, etc. goes? This is 
a very generic sendmail config, and is being used as a test bed for MD. It 
only accepts mail from localhost, and knows nothing of any relays for 
domains.

Or is it my lack of Perl skills, which would make this obvious if I had any?

Thanks,

Steve
>
> --
> David.





More information about the MIMEDefang mailing list