Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to block originating relay?

Status
Not open for further replies.

soulf2

MIS
Apr 16, 2004
1
US
I am using the following to help keep the spam down and it has been working great on my own server.

FEATURE(`access_db', `hash -T<TMPF> -o /etc/access')dnl
FEATURE(`dnsbl', `sbl-xbl.spamhaus.org', `"571 ACCESS DENIED to <"$&f"> thru "$&{client_name}" by /spamhaus/ ;Please see

The problem is that I have my company e-mail address forwarded/relayed to my mail server and it doesn’t block any spam.

Is there a way I can apply the same blocking to messages that are relayed to me from my corporate mail server without blocking that mail server all together?
 
I do a couple things that seem cut down on quite a bit of junk mail. First I list all the valid users in the virtusertable. The I create a catch-all for each domain I host. Here is a brief sample of what the table looks like:

joe@domain1.com joe
webmaster@domain1.com joe
fred@domain1.com fred@hotmail.com
@domain1.com error:nouser Sorry - No such user

# Do the same for domain2.com

When you are done, issue this command to build the database:

makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

The second thing I do is use spamassassin which came with my linux distro (RedHat).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top