skip to main | skip to sidebar

The Ninth Dimension

Tuesday, June 12, 2007

blocking spam with sendmail

Can block by domain or by IP address or network

in /etc/mail/access:

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.1 RELAY
202.124.241.222 ERROR:"550 Take a hike"

As this is a hash, rebuild to db with:

hash /etc/mail/access < /etc/mail/access
Posted by iucounu at 2:41 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2022 (1)
    • ►  January (1)
  • ►  2018 (1)
    • ►  July (1)
  • ►  2017 (4)
    • ►  September (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (1)
  • ►  2016 (1)
    • ►  September (1)
  • ►  2012 (3)
    • ►  June (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (4)
    • ►  November (1)
    • ►  August (1)
    • ►  February (2)
  • ►  2010 (1)
    • ►  January (1)
  • ►  2009 (1)
    • ►  November (1)
  • ►  2008 (8)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  July (2)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2007 (19)
    • ►  December (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ▼  June (3)
      • differences between openvz and virtuozzo
      • blocking spam with sendmail
      • Useful way of telling php module support
    • ►  May (5)
    • ►  April (4)
    • ►  February (2)
    • ►  January (1)
  • ►  2006 (32)
    • ►  December (2)
    • ►  November (6)
    • ►  October (7)
    • ►  September (14)
    • ►  August (3)

About Me

iucounu
Linux/UNIX sysadmin-type
View my complete profile