LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-12-2008, 09:10 AM   #1
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Rep: Reputation: 17
Postfix-Spamassassin configuration.


I am in trouble getting spamassassin work with Postfix.
Instead of posting a lot information I would prefer to face up the problem slowly.
I am moving from FC6 to FC8
Apache 2.2.4 to 2.2.8
Postfix 2.3.3 to 2.4.5
Dovecot 1.0 to 1.0.15
Spamassassin 3.1.8 to 3.2.5

This is a small mail server with around 20 email accounts.
I only need to tag the spam mail subjects with something like [*SPAM*]
Each user with their client mail or webmail(squirrelmail) will filter them.
I first tried to move Postfix and Spamassassin settings from the old server but I got problems so I asume that it would be better to accomplish a new installation.

Postfix is working fine. Spamassassin is yum installed on this server.

My first question is about the files that are involved between Postfix, Spamassassin and other related application.
Are there any other files apart of
/etc/postfix/main.cf
/etc/postfix/master.cf
/etc/mail/spamassassin/local.cf

I will have to handle in this operation?
Thanks a lot in advance for your help
 
Old 07-12-2008, 09:41 AM   #2
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
Personally I'd just follow this rather excellent guide:

http://www.howtoforge.com/virtual-us...-mysql-fedora8

Or at least pick out the bits that you need.
 
Old 07-12-2008, 10:07 AM   #3
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Thanks for your suggestion.
I am looking for something more simple.
I am using Dovecot and don't want to use MySQL to keep mail users
 
Old 07-12-2008, 10:42 AM   #4
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
Google is your friend:

http://www.xnote.com/howto/postfix-spamassassin.html

http://www.hurring.com/scott/howto/postfix_spamd/

etc etc
 
Old 07-12-2008, 12:04 PM   #5
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
I'm near the second link.
Instead of nobody I've created a user 'spamuser'

I also have tried the directives from the first link.
Very simple but I got this problem in both cases.

I send a simple email from outside this sever.
maillog displays a loop that involves postfix/smtpd, posfix/cleanup, postfix/pipe, postfix/qmgr,
sendmail[22507]: m6CGprTd022507: Authentication-Warning: privatedns.com: spamuser set sender to me@ddd.edu.uy using -f

This is the only line displaying a warning, no errors.

Thank you
 
Old 07-12-2008, 12:19 PM   #6
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
Errrm. That looks to me like you have sendmail running instead of postfix...? Can you verify that?

If you're wanting to use postfix then you should ideally remove sendmail altogether ("yum erase sendmail") or use the redhat "alternatives" and set postfix as your smtp server.

Alternatively try

chkconfig sendmail off
chkconfig postfix on
/etc/init.d/sendmail stop
/etc/init.d/postfix start

C
 
Old 07-12-2008, 12:30 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
One thing that sticks out is the logs. I don't think postfix has a program that identifies itself as 'sendmail' in the logs. Postfix has a program called sendmail, but somewhere in your system of spamassassin, is it possible something is calling sendmail sendmail rather than postfix sendmail?

Edit: Oops. Sorry, BlueC. Didn't see your post. Good call.

Last edited by Berhanie; 07-12-2008 at 12:31 PM.
 
Old 07-12-2008, 02:48 PM   #8
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
This is a new server that comes with QMail by default. I've removed its service from boot, same as sendmail, that is also installed but never started. Both were stoped too, just in case.

Still the same problem when enabling spamassassin from master.cf

Jul 12 16:38:32 sendmail[23109]: m6CJcVOL023109: to=me@.privatedns.com, ctladdr=you@adinet.com.uy (100/99), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30000, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 00D6748E82EA)

I don't know what "sendmail" means here. Sendmail server is disabled.
This scenario Qmail and sendmail installed but disabled is the same as my old server, that works fine

Thanks all of you
 
Old 07-12-2008, 02:55 PM   #9
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
That entry in your log means that sendmail is interfering somewhere. My suggestion is still to completely remove sendmail from the system ("yum erase sendmail").

And, FWIW, F8 doesn't "come with qmail by default" - it comes with whatever you choose to install on it during the installation process. And if you're wanting to run a postfix mailserver then you shouldn't have qmail OR sendmail installed. The only MTA you should have installed is postfix.

What is the output of "alternatives --display mta" as root?
 
Old 07-12-2008, 03:12 PM   #10
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
I meant my dedicated server installation, what my hosting company installs by default.
Yes, I am going to look into what is calling sendmail and deinstall it
 
Old 07-12-2008, 03:36 PM   #11
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Fixed!
I also have tested the changing subject.
Thank you all!
 
Old 07-12-2008, 05:17 PM   #12
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
Quote:
Originally Posted by marciano View Post
Fixed!
I also have tested the changing subject.
Thank you all!
So what did you do that fixed it?
 
Old 07-12-2008, 05:32 PM   #13
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
I yum removed sendmail.
I didn't find what did call sendmail.
Log files does not tell anything about it.
 
Old 07-12-2008, 05:45 PM   #14
BlueC
Member
 
Registered: Aug 2007
Posts: 122

Rep: Reputation: 17
Well, there ya go
 
Old 07-12-2008, 09:53 PM   #15
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 6.6 Ubuntu 12.4 MacOS 10.9
Posts: 121

Original Poster
Rep: Reputation: 17
Smtp

I am having problems with SMTP authentication from client email like Kmail or Thunderbird.
No problem with POP3
No problem from webmail.

Kmail says that the server does not accept plain text authentication but it is not true. Postfix and Dovecot are set to accept plain text auth.

Thanks for any help
 
  


Reply



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
Postfix Clamsmtpd and Spamassassin carlmarshall Linux - Networking 1 01-31-2007 04:51 AM
Bogofilter and spamassassin with postfix Belette Linux - Software 0 03-21-2006 08:03 AM
Setting up SpamAssassin with POSTFIX wfernley Linux - Software 1 11-29-2005 07:51 AM
Postfix + SpamAssassin + Hivemail = ? technician Linux - Software 1 10-16-2004 01:58 PM
Postfix and Spamassassin Phaethar Linux - Networking 0 10-30-2003 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration