[Mimedefang] OFF TOPIC
David F. Skoll
dfs at roaringpenguin.com
Wed Jan 29 15:11:01 EST 2003
On Wed, 29 Jan 2003, Chad Stalvey wrote:
> Now, I only want the sendmail
> connections to come from the server at domain.com. IE: If someone tries to
> send a message directly to someone at filter.domain.com, it will not go
> through. Is there a way to let sendmail handle this?
Yes, with the access map. Or hey, why not do it in MIMEDefang?
sub filter_relay ($$$) {
my($hostip, $hostname, $helo) = @_;
if ($hostip ne 'ip.of.host-to.allow' and
$hostip ne '127.0.0.1') {
return('REJECT', '$hostip: Not allowed to use this server.');
}
return ('CONTINUE', 'OK');
}
:-)
--
David.
More information about the MIMEDefang
mailing list