getting to stop spam with sendmail

David Banning david at
Tue Jun 17 09:19:13 PDT 2003

On Tue, Jun 17, 2003 at 09:13:46AM -0500, Dan Nelson wrote:
> In the last episode (Jun 17), David Banning said:
> > I am interested in getting my server to bounce mail from open relays.
w do I test if my mailserver is actually using

> > 
> > I have been to the site. I have added the suggested line
> > to my mc files;
> > 
> > FEATURE(`dnsbl', `', ` "550 Email rejected due to sending server misconfiguration - see\#why_rejected"')dnl
> > 
> > I have tried to test that it is working by adding;
> > 
> >    
> >  
> > to my /etc/hosts file, as my ip address is
> /etc/hosts is not examined for DNS lookups.  You'll have to set up a
> fake zone in named if you want to test it on your own
> IP.

Dan, your advice seems to contradict the website which reads;

How do I test if my mailserver is actually using

On Unix based systems:

Become the root user:

$ su - Edit /etc/hosts in your favourite editor: # vim /etc/hosts
Add the following line, substituting for your your local systems
inverted IP address: <my reversed IP address>

Local system, in this case, refers to the host from which you will
be sending the test email.  You build an inverted IP address by
taking your real IP address (e.g. and inverting the
octets. (e.g.  Once you have accomplished this,
sending email to your protected mail server from your local system
should result in a rejection notice, or whatever you have configured
your system for.

More information about the freebsd-questions mailing list