Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
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
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
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.