Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to get Spamassassin Working (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Jan 24, 2009 4:23 am    Post subject: Trying to get Spamassassin Working (SOLVED) Reply with quote

Greetings,

I am trying to get Spamassassin working. I am following this guide.

The configuration on that page is very minimalist and that's how I want to start off. I can get progressively more complex as I learn more but I want to keep it as simple as possible for now.

According to that guide I only need to add 5 lines to my /etc/postfix/master.cf file

Quote:
smtp inet n - - - - smtpd
-o content_filter=spamassassin

spamassassin unix - n n - - pipe
user=nobody argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}


Anyone know how to modify this so it works on Gentoo?


Last edited by Evileye on Sat Jan 24, 2009 10:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Jan 24, 2009 8:42 am    Post subject: Reply with quote

From the point of view of Postfix that should work without any changes.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Jan 24, 2009 5:27 pm    Post subject: Reply with quote

okay, these are the 5 lines in my /etc/postfix/master.cf file. I will break down the problems one line at a time.

This doesn't work...
Code:
smtp      inet  n       -       -       -       -       smtpd

I need to use the default in the file...
Code:
smtp      inet  n       -       n       -       -       smtpd

--------------------------------------------------------------------------------------------
This doesn't work...
Code:
-o content_filter=spamassassin

My log says...
Code:
Jan 24 12:18:09 penguin postfix/master[11431]: fatal: /etc/postfix/master.cf: line 24: bad transport type: content_filter=spamassassin

-------------------------------------------------------------------------------------------
I see no problems with this line...
Code:
spamassassin unix -     n       n       -       -       pipe

-------------------------------------------------------------------------------------------
This doesn't work...
Code:
user=nobody argv=/usr/bin/spamc -f -e

My log says...
Code:
Jan 24 12:21:41 penguin postfix/master[11770]: fatal: /etc/postfix/master.cf: line 107: bad transport type: argv=/usr/bin/spamc

-------------------------------------------------------------------------------------------
This doesn't work...
Code:
/usr/sbin/sendmail -oi -f ${sender} ${recipient}

My log says....
Code:
Jan 24 12:23:31 penguin postfix/master[11919]: fatal: /etc/postfix/master.cf: line 108: bad transport type: -oi

-------------------------------------------------------------------------------------------

Anyone know what to do?
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Jan 24, 2009 10:03 pm    Post subject: Reply with quote

ok, I got it working. In /etc/postfix/master.cf...


These first two lines need to be all one line at the beginning of the file...
Code:
smtp inet n - - - - smtpd
-o content_filter=spamassassin


These last 3 lines need to be all one line at the end of the file
Code:
spamassassin unix - n n - - pipe
user=nobody argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum