Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Are there any good write ups out there on how to configure the above three programs to work in conjunction with each other? I was googling for alittle bit and couldn't find anything? I found article for redhat and the above products but can I used the Red Hat write up?
I know it's a noobie questions I did read the read me's on the programs and started to get lost...
Thanks,
BiG
PS
I have Fedora Core 1 and Postfix working just fine but with the increase of spam is making me angry.
There's a spot in the main.cf file where you can specify a .procmail file which will invoke spamassassin. It's called mailbox_command. My line looks like "mailbox_command = /usr/bin/procmail" without the quotes. I then have a .procmailrc file in each of my user's Home folder. I also have Clamassassin working to eliminate virus'. Also, as a last reminder, don't forget to check permissions of files/folders if you're having issues! Hope this helps you out! My .procmailrc file looks like this:
#start here -- the pound sign (#) makes a line into a comment
#Set on when debugging
VERBOSE=off
#Your mail directory
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME
Well I made the .procmail in everyone’s home directory and gave them rights with chown & chmod. I tried sending some test spam in with some nasty words in the subject and body and they still came in? I was also using tail –f on /var/log/maillog to see if there were any error messages and it looks like mail is flowing in and out. When the mail 1st comes in it hits ("|/usr/bin/procmail") then get’s delivered? I check rights and they looked ok. The only thing I did was commented out:
I just wanted to see if spamassassin worked before invoking Clamassassin. Any suggestions? I also added mailbox_command = /usr/bin/procmail into my main.cf file in the */postfix directory.
Hmm. Sounds like everything is working correctly. However, try this. Open up Outlook Express and send yourself a test message. Right click on the message and go to properties. Under the details section, look for something like this:
If it says something like that, then spamassassin is working, but got past it for whatever reason (usually because it's either set too high, or it thinks you are you. Anyways, let me know what you find!!
I'm using squirrelmail and Outlook 2003 and I have been playing with Thunderbird too. I tried sending test e-mails from random hotmail and yahoo accounts too? I have included in the subject XXX, and all the good four letters words I even included Viagra which is a big spam word these days? I checked my mail this morning and had 20 spam emails and all my test e-mails came through too? Is there any thing to configure in the spamassassin config maybe? aaarrggghh
Here's what my .procmailrc file looks like:
#start here -- the pound sign (#) makes a line into a comment
#Set on when debugging
VERBOSE=off
#Your mail directory
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME
I think I see your problem. Take out the # symbols for every line under Recipies until End here. You can leave the # for the End Here line. The # symbols will make it so that that line is disregarded. Try that out, restart your mail service (just in case) and try it again. Keep me posted! We'll get this problem licked.
And then I did /etc/init.d/postfix restart and I was still able to send e-mails form my yahoo and hotmail with the subject of xxx and what not.
The one problem is I don't have clamassassin installed? So I hope the above config will not hurt anything. I did a apt-get search clam and found:
clamav - End-user tools for the Clam Antivirus scanner
clamav-data - The virus-signatures for clamav
clamav-devel - Headerfiles and libraries for the Clam Antivirus scanner
clamav-lib - Dynamic libraries for the Clam Antivirus scanner
clamav-milter - A sendmail-milter for clamav
clamav-server - The clamav server
clamav-update - Auto-updater for clamav data-files
But I'm not sure if I should install any of these yet until I get SpamAssasin working. Any other suggestions would be greatly appreciated.
If you'd like, you can take out the line with clamassassin and the line below it. Quick question, do you have webmin installed? If so, (or your familiar to editing the spamassassin config file) which is located at /etc/mail/spamassassin/local.cf (at least it is with me. ) blacklist your yahoo account. Add the line blacklist_from youraccount@yahoo.com and it should work. Just basically say that your yahoo account will always be counted as spam. Then, restart the services and try to send the message from your yahoo account. If it's working right, you'll never see the message. Hope that helps!
Yeeaah!! Thanks for staying with me on this thread. I never did a reboot after doing apt-get :/ and the reboot seemed to fix the issue go figure.
Now the spam came in like with this title?
[SPAM] Score: 104.18/05.00 - xxx
And I edited the local.cf file and added the blacklist entry. How do I set it up to automatically delete spam? I guess I could set a rule in outlook to take anything with SPAM in the subject and move it to a spam folder?
I think if you put back in the lines :0:
* ^X-Virus-Status: Yes
/dev/null
that you took out earlier, it'll delete them automatically. Congratulations! Very rarely, a reboot in Linux will fix up your issue. Normally you would just restart the service. No problem. I'm glad to be of help. Everyone on here was VERY helpful to me when I was linux newbie and needed help, so I'm returning the favor. You'll find that once you get linux up and running, unless you have a hardware failure or power outage, you'll never have to touch it again. You can even set up a nightly yum update for security patches and the like. I did and now my job is just maintainence instead of finding out why the server crashed and I have a billion people telling me "do you know the server's down?" Linux has made my Microsoft Hair Loss go away! Anyways, if you have any further problems or questions, feel free to give me a buzz.
I actually just pasted your entire config into my .procmailrc and unconmented everything. I had 42 e-mails last night and three spam made it through not being marked as spam. The subject read on the spam e-mails as the following: [SPAM] Score: 09.60/05.00, [SPAM] Score: 05.95/05.00. So the software is working great it’s just not deleting the spam. Once That happens I will out of your hair
I understand your woes when it comes to Micro$oft! That’s all I work with day in and day out. The 2000 environment it pretty stable I can’t complain. But Fedora / RedHat has never given me any problems at all! It so damn stable it’s sick plus it’s not plagued with hacks and virus attacks every other day! I use apt-get to update my system I guess maybe yum would be better to use? I'm not sure?
And the spam that does make it through how should I train spamassassin to delete e-mails from *@whateverdomain.com. Should I add a line to blacklist them or does Spamassassin need trained somehow?
Yeah you can add the line *@whateverdomain.com if you'd like. I have my users email me any spam that does get through and I ban it accordingly. Eventually, we got down to almost 0 spams. At first, you might get a few, but you can set it to autolearn. I think it's auto_learn 1 in the local.cf file. Sounds like it's coming along though! Yeah I can't blame you for hating microsoft. We have a 2k/xp environment for users (we were on a strict 2k environment for a while until the top brass starting wanting xp) (I absolutely refused to budge when it comes to my servers though. We're on a strict Linux environment there. ) and after I got us onto a samba PDC, we're doing pretty well. Anyways, keep me posted!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.