Fares Gianluca <[EMAIL PROTECTED]> wrote:
>
> I'm testing a mail server, running qmail 1.03, as an open relay.
Are you sure, and if so, why? What is the output of qmail-showctl?
> My test fails on:
> mail from:<foo@[xxx.xxx.xxx.xxx]>
> rcpt to:<[EMAIL PROTECTED]>
>
> where xxx.xxx.xxx.xxx is the server IP address.
If you're an open relay, this is the specified behaviour. It's a very,
very bad idea to be an open relay, however.
> I need to block the mail from address.
badmailfrom could do this for you, but the right solution is to close
your relay -- only accept mail for your domains. If you must provide
relaying for some clients, do it as a selective relay.
See the list archives -- this is discussed thousands of times.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------