LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2013, 03:20 AM   #1
pramodbisht
LQ Newbie
 
Registered: Apr 2012
Location: Chandigarh (IN)
Distribution: CentOS
Posts: 12

Rep: Reputation: Disabled
Question Sendmail + Spamassassin - I want to exclude Localhost from spamchecks


Hi Guys,

My question is - How to setup spamassassin to exclude mails generating from localhost from spamchecks ?

My current setup -

Server is running as mail server sendmail and Spamassassin are installed and both are working as expected.
Here are installed pkgs details:-

sendmail-cf-8.14.4-8.el6.noarch
sendmail-8.14.4-8.el6.x86_64
sendmail-milter-8.14.4-8.el6.x86_64
spamassassin-3.3.1-2.el6.x86_64

What I want is - How to setup spamassassin to exclude mails generating from localhost from spamchecks ?

actually it is taking around 30sec for spamchecks on every mail incomming/outgoing. I want it not to check for spam if mail generates from localhost.

Your suggestions will be appriciated!

Thank you,

Pramod Singh
 
Old 10-19-2013, 02:19 PM   #2
pramodbisht
LQ Newbie
 
Registered: Apr 2012
Location: Chandigarh (IN)
Distribution: CentOS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Smile resloved

Hi,

I find the solution for this issue. to exclude localhost from being scan for spamcheks simply edit the spamass-milter config file.

vim /etc/sysconfig/spamass-milter
and add below line:
EXTRA_FLAGS="-i 127.0.0.1, yourIP, your network/24, CIDR" #networks you want to exclude for spam checks


Thank you
 
  


Reply

Tags
sendmail


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
mail received at sendmail has relay=localhost [[UNIX: localhost]] check_rcpt fails chingupt Linux - Distributions 3 04-25-2013 06:36 PM
Sendmail and spamassassin question macadam Linux - Software 4 07-14-2006 12:41 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 08:12 AM
sendmail and spamassassin varala_kanth Linux - Software 2 06-16-2004 05:42 PM
spamassassin and sendmail marion Linux - Software 4 07-09-2003 05:39 AM


All times are GMT -5. The time now is 08:41 AM.

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