LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-19-2004, 06:07 PM   #1
n3r0
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
EXIM blocking domains


hi
i am trying to block email from certain domains (spammers) i didnt want to set up spam assasin becuase i dont think installing more software is the answer. i could do it in sendmail before but debian made sendmail a bitch to configure so im using the EXIM.

i found a faq that said to add the following to /etc/exim/exim.conf

Code:
deny  message =3D Spadaj spamerze... Get off spamers
    senders =3D ${if exists{/etc/exim/spam-reject} \
                  {lsearch*@;/etc/exim/spam-reject}}

and then put a domain name in that file but it didnt seem to work (as in the mail just disapeared and didnt bounce back or anything)
i also tried sending myself mail from my hotmail account with hotmail blocked but no dice on that either.

am i doing this properly? is there another way to? there was a blocking file in sendmail but i cant find the darn thing in exim. i restarted exim after every change, is there another thing i ahve to be restarting? it works with procmail i think but i cant find the init script to restart that.

thanks

n3r0
 
Old 09-19-2004, 10:46 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Well, using procmail do drop some mail is quite easy. You don't have to touch any of the configuraton in exim. Just drop .procmailrc to your home directory and it is in use.

Anyways, I would put something like:
Code:
drop_bad_guys:
deny  message = Spadaj spamerze... Get off spamers
          senders = ${lookup{$host_name}lsearch{/etc/exim/spam-reject}{$value}fail}


acl_smtp_rcpt = drop_bad_guys
to the exim.conf to get it to drop connoctions from some hosts.
 
Old 09-20-2004, 01:59 AM   #3
n3r0
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
coo

thanks man i'll try this for a while see if it drops some connections.
also i cant do anything like per user as i want it a general server thing as no one likes getting spam even the bad users.
 
Old 09-22-2004, 09:23 PM   #4
n3r0
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
damn actually i just realized that that filter blocked all my incomming mail. hmm. well im going to try setting up spam assassin. ill see how that goes as exim has a module to integrate them aparently.

http://marc.merlins.org/linux/exim/sa.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 09:32 PM
Multiple Domains with Exim 4.34 jonwatson Linux - Software 2 09-27-2004 01:51 PM
Exim zaicheke Linux - Software 0 07-16-2004 10:12 PM
exim is failed !!! error:package exim is not installed apache Linux - Software 0 06-24-2004 06:55 AM
Exim anybody? Ricardo77uk Linux - Networking 1 07-14-2001 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration