nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

SpamAssassin setup.

This is a discussion on SpamAssassin setup. within the Mail Servers forums, part of the Mastering Servers category; Hello Linux GURUS, I am farely new to Linux systems.. I have some working knowledge of Linux but thats very ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-06-2007, 10:03 AM
diptanjan's Avatar
Junior Member
User
 
Join Date: May 2007
Location: Hyderabad
My distro: Redhat, Suse
Posts: 12
Rep Power: 0
diptanjan is on a distinguished road
Send a message via MSN to diptanjan Send a message via Yahoo to diptanjan Send a message via Skype™ to diptanjan
Exclamation SpamAssassin setup.

Hello Linux GURUS,

I am farely new to Linux systems.. I have some working knowledge of Linux but thats very little.

I have setup Spamassassin for one of my clients. I did it by following the online tutorials available on the Spamassassin site.

Now I want to check :

1. On which port spamassassin is running..

2. and my spamd configuration.

I have to set SpamAssassin to be set up to listen on IP xx.xxx.xx.xxx, and in addition, it should be set up to accept connections from IP yy.yyy.yyy.yyy.

To the best of my knowledge, this is done by adding the following parameters with spamd command:

spamd -i xx.xxx.xx.xxx
spamd -A yy.yyy.yyy.yyy

Now after configuring how can I check my Spamd configuration.

Expecting your early reply.

Thanks

Diptanjan

Last edited by diptanjan; 06-06-2007 at 11:47 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-07-2007, 02:40 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

Is usually listen on tcp 783 port. netstat -ntulpn is your friend to get open port list and program name:
Code:
 netstat -ntulpn
Basically you force sendmail or postfix to send all mail through procmal , so there is no need to set up a ~/.forward file.
If you are using Postfix add following command to /etc/postfix/main.cf
Code:
mailbox_command = /usr/bin/procmail
Restart postfix.

Next in /etc/procmailrc you add something as follows.. which tells to filter everything through spamassassin:

Code:
# Send all mail through Spamassassin
:0 fw
* < 256000
| /usr/bin/spamc -f -u mail
Replace line with /usr/bin/spamc -f -u mail with actual path to spamassassin file.

That is all you need to do to get started with Spamassassin.
Reply With Quote
  #3 (permalink)  
Old 06-07-2007, 10:17 AM
diptanjan's Avatar
Junior Member
User
 
Join Date: May 2007
Location: Hyderabad
My distro: Redhat, Suse
Posts: 12
Rep Power: 0
diptanjan is on a distinguished road
Send a message via MSN to diptanjan Send a message via Yahoo to diptanjan Send a message via Skype™ to diptanjan
Default

Thanks again Tom,

the "netstat -ntulpn" command is really helpful.

Does this command work on all versions of "-NIX" ?

Thank you for your help

Diptanjan
Reply With Quote
  #4 (permalink)  
Old 06-07-2007, 06:44 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by diptanjan View Post
the "netstat -ntulpn" command is really helpful.

Does this command work on all versions of "-NIX" ?
It should work on all Linux distributions, however *bsd and other UNIX slightly modify command syntax, in any case by referring man page your should get the idea. On a related note you can use lsof command for same purpose.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 06-08-2007, 09:48 AM
diptanjan's Avatar
Junior Member
User
 
Join Date: May 2007
Location: Hyderabad
My distro: Redhat, Suse
Posts: 12
Rep Power: 0
diptanjan is on a distinguished road
Send a message via MSN to diptanjan Send a message via Yahoo to diptanjan Send a message via Skype™ to diptanjan
Default

Thanks for the suggestion Nixcraft.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Spamassassin URI rule not working properly diptanjan Mail Servers 2 06-26-2007 11:11 AM


All times are GMT +5.5. The time now is 01:42 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36