NetworkClue.com
NetworkClue Home PageHome Contact UsContact ConsultingConsult
Bulletin Board
Internet Services covers Secrets to hosting websites, Hosting your own web server, and using DNS Servers.Operating Systems leads you through the decision of Linux vs. Windows, ideal installations and setups to create an efficient and redundant environment for your business, and great features to make management easier.Routing & Firewalls contains articles that will allow you to take control of your router. Learn how to protect your company with access lists and advanced firewall techniques.Hardware answers the common questions about Switches vs. Hubs, recommends SysAdmin Tools, and recommendations for adequate power protection.Utilities will cover fighting spam, using Anti-Virus programs effectively and the must haves for every administrator's software toolbox.

Bulletin Board

Sendmail

Blacklisting

It is not uncommon to look in your mail logs (these are kept in /var/log/maillog) or your firewall logs and notice some rogue IPs attempting to relay through your server or spam you directly.  If these IPs are consistent you can always add them to your access table (and recompile of course).

The Access file is also used to list the IPs that you want to permit relaying through.  Typically this would be the IPs of your office and/or home.

#/etc/mail/access
#run makemap hash /etc/mail/access < /etc/mail/access
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost                     RELAY
127.0.0.1                    RELAY
66.55.44.245              RELAY

#Allow a friend's ISP to relay
22.22.33                     RELAY
customer.com             RELAY

#Blocking
wanadoo.fr     550 We don't accept mail from spammers
gov.ru             550 We don't accept mail from spammers
mail.ru            550 We don't accept mail from spammers

After you have edited your access file you must run this command from the prompt:

makemap hash /etc/mail/access < /etc/mail/access

CLUE: Using the access file to blacklist someone only prevents them from accessing sendmail, If you want TOTAL blocking from any and all TCP/IP ports you should use the /etc/hosts.deny file or an entry in IPTables.

Continue to Spam Filtering for Sendmail ->

Article last reviewed: 10/09/2006


del.icio.us

Created by: Digital Foundation, inc.

Copyright © 2002-2005 Digital Foundation, inc.   www.networkclue.com

All content of the NetworkClue website is copyrighted. Articles, notes, outlines, and all other materials may not be stored on the Internet or sold or placed by themselves or with other material in any electronic or printed format in whole or part. However materials may be referenced by links to the site.

 

Related Articles:
SMTP Manual TestSMTP Manual Testing
Spam Filtering for Exchange 2003Spam Filtering for Exchange

 

Advertise Here