Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th February 2007, 03:39
bspratt bspratt is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy postfix/procmail/fetchmail/spamassassin - lost hope!

Ubuntu Edgy LAMP; trying to get the mail server to filter. I am receiving and sending mails just fine; postfix is working. Very basic here; I need to fetchmail 1 ISP account so my first question is how to route fetchmail thru postfix. The part that I have been losing hope is getting the filtering piece to work. I have read and abused my server with all the how to's. Everytime I setup procmail and say SA no email is received. I can post my configs and logs which would help greatly but I am wondering if anyone has seen or can direct me to docs covering this basic mail filter piece for Edgy? Every how to I get seems to be overkill. I get about 80 spams a day for 2 accounts. I also have webmin setup but can't seem to connect wires together. It looks so easy - but its not to the newbie. I have been a windows/network admin for 10 years and would love to cross that bridge to the good guys here in X land. Thanks in advance - Bill
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2007, 15:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by bspratt
so my first question is how to route fetchmail thru postfix.
This is done automatically. All you need to do is create a line for the POP3 account in /etc/fetchmailrc. Take a look here: http://www.howtoforge.com/forums/sho...%2Ffetchmailrc

Quote:
Originally Posted by bspratt
The part that I have been losing hope is getting the filtering piece to work. I have read and abused my server with all the how to's. Everytime I setup procmail and say SA no email is received. I can post my configs and logs which would help greatly but I am wondering if anyone has seen or can direct me to docs covering this basic mail filter piece for Edgy? Every how to I get seems to be overkill. I get about 80 spams a day for 2 accounts. I also have webmin setup but can't seem to connect wires together. It looks so easy - but its not to the newbie. I have been a windows/network admin for 10 years and would love to cross that bridge to the good guys here in X land. Thanks in advance - Bill
If you want to use procmail together with SpamAssassin to filter emails, take a look here: http://www.howtoforge.com/howto_spam...lamav_procmail

Do you have any error messages in your mail log?
What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th February 2007, 18:44
bspratt bspratt is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Red face more heartache

Thanks for the quick reply. My fetchmailrc file is under /home/bspratt. Do I also need one for /etc ? Back to the bigger issue - I was following the how to with the clamav - "If you run clamd now you will get an error message:
ERROR: Please edit the example config file /etc/clamav.conf. Never saw the message - All I would get is file or dir not found; also was unsuccessful trying to find clamav.conf. It would never install in the /etc folder I guess. So I started looking at aptitude to check for packages and selected the download/install/remove while searching for clamav. Must have hit the remove key by accident because it not only removed what was showing (some library files) for clamav but then it started to remove postfix, procmail, spamA, squirrel, courier and several other utilities like telnetd. Ok this isn't good but I'm not giving up the ship. I will take a break - clear my head - and come back later and try again from the start. Thanks again for your patience with this - Bill
Reply With Quote
  #4  
Old 20th February 2007, 17:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by bspratt
Thanks for the quick reply. My fetchmailrc file is under /home/bspratt. Do I also need one for /etc ?
Yes, fetchmailrc must be in /etc.

Quote:
Originally Posted by bspratt
Back to the bigger issue - I was following the how to with the clamav - "If you run clamd now you will get an error message:
ERROR: Please edit the example config file /etc/clamav.conf. Never saw the message - All I would get is file or dir not found; also was unsuccessful trying to find clamav.conf. It would never install in the /etc folder I guess. So I started looking at aptitude to check for packages and selected the download/install/remove while searching for clamav. Must have hit the remove key by accident because it not only removed what was showing (some library files) for clamav but then it started to remove postfix, procmail, spamA, squirrel, courier and several other utilities like telnetd. Ok this isn't good but I'm not giving up the ship. I will take a break - clear my head - and come back later and try again from the start. Thanks again for your patience with this - Bill
In new ClamAV version, the file is called clamd.conf, I think. What's the output of
Code:
updatedb
locate clamd.conf
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st February 2007, 04:11
bspratt bspratt is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default output of clamd

As asked;

root@ubuntu-server61:~# updatedb
locate clamd.root@ubuntu-server61:~# locate clamd.conf
/etc/clamd.conf
/usr/local/share/man/man5/clamd.conf.5
/var/lib/ucf/cache/:etc:clamav:clamd.conf

With the other packages vacuumed out - I am wondering whether to restore an image of the drive from about a week ago or to just put the missing pieces back in place and re-configure? Probably not a big deal either way. However, I did order a webmin admin book from the library to perhaps tackle things that way. Again, probably not a big deal but which do you prefer for doing a mail server? Perhaps more can be learned from the command line...Any good docs available webmin wise for postfix/procmail/courier etc?
Reply With Quote
  #6  
Old 21st February 2007, 23:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by bspratt
locate clamd.root@ubuntu-server61:~# locate clamd.conf
/etc/clamd.conf
That's the file you must edit.
It's possible you also might have to edit /etc/freshclam.conf (comment out the EXAMPLE line at the beginning).

Quote:
Originally Posted by bspratt
With the other packages vacuumed out - I am wondering whether to restore an image of the drive from about a week ago or to just put the missing pieces back in place and re-configure? Probably not a big deal either way. However, I did order a webmin admin book from the library to perhaps tackle things that way. Again, probably not a big deal but which do you prefer for doing a mail server? Perhaps more can be learned from the command line...Any good docs available webmin wise for postfix/procmail/courier etc?
I haven't worked that much with Webmin because I prefer the command line (if ISPConfig can't do what I want ).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 23rd February 2007, 03:46
bspratt bspratt is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Red face strike two

Restored with image and proceeded to configure things with combination of
http://www.howtoforge.com/howto_spam...lamav_procmail and
http://www.mjhall.org/email.php Why? I really would like just one how to, connect the dots and get on with it - but the that first link IMHO is outdated when it talks about things like "trashcan". I don't see the trashcan component in the current package. Therefore, I assume procmail is linked with SA in another fashion. Clamassassin? Got things setup and fired up postfix - 2 warnings about invalid certs. I then when thru the cert part of setting up Postfix again (reapplying for new certs?) this appeared to be ok until I tried to restart Postfix once again and it always failed. Assuming I have blown up things again - can I restore the image and use the "older certs" without touching them or recreating? the netstat -tap command reveals no errors as I believe all necessary ports are alive and listening. Is there a more current doc to set things up then previous link mentioned? Thanks - Bill
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost connection during install ISPconfig with server comedit Installation/Configuration 9 7th August 2006 14:57
Outlook 2003 with Postfix loses Mail Quietly lost connection after AUTH Nerd4Rent Server Operation 1 27th June 2006 12:26
lost & found directory zaqavis General 3 23rd May 2006 19:10
Lost all access to vps after install Median Installation/Configuration 6 22nd January 2006 10:37
Lost my ipsconfig_server file from /etc/init.d maxx General 1 9th August 2005 12:01


All times are GMT +2. The time now is 09:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.