LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix-Spamassassin configuration. (https://www.linuxquestions.org/questions/linux-server-73/postfix-spamassassin-configuration-655302/)

marciano 07-12-2008 09:10 AM

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

BlueC 07-12-2008 09:41 AM

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.

marciano 07-12-2008 10:07 AM

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

BlueC 07-12-2008 10:42 AM

Google is your friend:

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

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

etc etc

marciano 07-12-2008 12:04 PM

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

BlueC 07-12-2008 12:19 PM

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

Berhanie 07-12-2008 12:30 PM

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.

marciano 07-12-2008 02:48 PM

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

BlueC 07-12-2008 02:55 PM

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?

marciano 07-12-2008 03:12 PM

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

marciano 07-12-2008 03:36 PM

Fixed!
I also have tested the changing subject.
Thank you all!

BlueC 07-12-2008 05:17 PM

Quote:

Originally Posted by marciano (Post 3212532)
Fixed!
I also have tested the changing subject.
Thank you all!

So what did you do that fixed it?

marciano 07-12-2008 05:32 PM

I yum removed sendmail.
I didn't find what did call sendmail.
Log files does not tell anything about it.

BlueC 07-12-2008 05:45 PM

Well, there ya go ;)

marciano 07-12-2008 09:53 PM

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


All times are GMT -5. The time now is 04:54 AM.