Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th April 2011, 11:06
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default The Perfect SpamSnake - Ubuntu Jeos 10.10 Maverick Meerkat - Page 2

I am following the document and am confused by the following:

In the section

"SpamAssassin SQL Bayes", "Update header string:"

is said

"YOURDOMAIN-COM" should be replaced with whatever you used for "%org-name%" in the MailScanner.conf file. Leave the "X-" in place. This is the same orgname used in the MailScanner.conf above."

Would this be the local hostname or the domains which should be accepted? And if the latter is true, should these rules be created for all mail domains?
Finally, the orgname should be the same as used in MailScanner.conf above....but there is no MailScanner.conf above, or did I miss it?

Thanks
Patrick
Reply With Quote
Sponsored Links
  #2  
Old 19th April 2011, 14:38
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

Sorry to confuse you, but since we were editing the spamassassin file, I just wanted to do all the edits before moving on.

If you look in the next section, MailScanner Configuration, you'll see where the orgname gets defined. The orgname could be, in my case, MCRI. So my longorgname would be Meeting and Conference Rentals Intl.

I hope this clears it up a bit.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #3  
Old 19th April 2011, 23:39
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

Thanks, that helped

Next issue I ran into was that in step 9. Nginx with Uwsgi, there is a dependency missing:

To cp /usr/share/doc/uwsgi-extra/nginx/uwsgi_params /etc/nginx/uwsgi_params one needs to install uwsgi-extra as well. Maybe it is in the howto, but I didnt see it.

After setting up the Cron jobs mailscanner needs to be started and browsing to http://hostname_used should show a login screen.
I see, on the other hand:

uWSGI Error
wsgi application not found


What went wrong?
Reply With Quote
  #4  
Old 20th April 2011, 14:45
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

Did you setup the baruwa.conf and baruwa.ini files properly?

It's strange that you had to install extra as well. What version of uwsgi and nginx are you running?
__________________
Home of the SpamSnake
Reply With Quote
  #5  
Old 20th April 2011, 14:47
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

Probably not
I've decided to restart the installation. Will let you know how that works out...
Reply With Quote
  #6  
Old 20th April 2011, 14:53
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Ok great. Please make sure to read carefully as you could miss things easily.

Also, you are correct about extras, you'll have to install that as well.
__________________
Home of the SpamSnake
Reply With Quote
  #7  
Old 20th April 2011, 14:55
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

Page 2, step 7

wget http://http.us.debian.org/debian/pool/main/libt/libtool/libltdl3_1.5.26-4+lenny1__$(uname -m | sed -e 's/x86_64/amd64/' -e 's/i686/i386/').deb

should be:

wget http://http.us.debian.org/debian/pool/main/libt/libtool/libltdl3_1.5.26-4+lenny1_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/i686/i386/').deb

Last edited by padonker; 20th April 2011 at 14:59.
Reply With Quote
The Following User Says Thank You to padonker For This Useful Post:
Rocky (20th April 2011)
  #8  
Old 20th April 2011, 16:28
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

Step MailScanner Startup Script:

After starting the system, these errors are found in mail.log
I have reread the howto a couple of times, but found nothing regarding these locations or access rights:

Apr 20 16:22:22 spamsnake MailScanner[14747]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:22:22 spamsnake MailScanner[14747]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:22:22 spamsnake MailScanner[14747]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:22:22 spamsnake MailScanner[14747]: Read 865 hostnames from the phishing whitelist
Apr 20 16:22:22 spamsnake MailScanner[14747]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:22:22 spamsnake MailScanner[14747]: User's home directory /var/spool/postfix is not writable
Apr 20 16:22:22 spamsnake MailScanner[14747]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:22:22 spamsnake MailScanner[14747]: Using SpamAssassin results cache
Apr 20 16:22:22 spamsnake MailScanner[14747]: Connected to SpamAssassin cache database
Apr 20 16:22:22 spamsnake MailScanner[14747]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:22:24 spamsnake MailScanner[14747]: Cannot read queue directory /var/spool/mqueue.in


=================

I've rebooted the sever, just in case, and emptied the mail.log to avoid confusion.
These are the logged messages from a fresh boot:

Apr 20 16:28:01 spamsnake dccifd[1237]: fopen(/var/run/dcc/dccifd.pid): No such file or directory
Apr 20 16:28:01 spamsnake dccifd[1237]: 1.3.130 listening to /var/lib/dcc/dccifd for ASCII protocol
Apr 20 16:28:04 spamsnake MailScanner[1275]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:28:04 spamsnake MailScanner[1275]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:28:04 spamsnake MailScanner[1275]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:28:04 spamsnake MailScanner[1275]: Read 865 hostnames from the phishing whitelist
Apr 20 16:28:05 spamsnake MailScanner[1275]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:28:05 spamsnake MailScanner[1275]: User's home directory /var/spool/postfix is not writable
Apr 20 16:28:05 spamsnake MailScanner[1275]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:28:05 spamsnake postfix/master[1359]: daemon started -- version 2.7.1, configuration /etc/postfix
Apr 20 16:28:05 spamsnake MailScanner[1275]: Using SpamAssassin results cache
Apr 20 16:28:05 spamsnake MailScanner[1275]: Connected to SpamAssassin cache database
Apr 20 16:28:05 spamsnake MailScanner[1275]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:28:08 spamsnake MailScanner[1275]: Cannot read queue directory /var/spool/mqueue.in
Apr 20 16:28:09 spamsnake MailScanner[1401]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:28:09 spamsnake MailScanner[1401]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:28:09 spamsnake MailScanner[1401]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:28:09 spamsnake MailScanner[1401]: Read 865 hostnames from the phishing whitelist
Apr 20 16:28:09 spamsnake MailScanner[1401]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:28:09 spamsnake MailScanner[1401]: User's home directory /var/spool/postfix is not writable
Apr 20 16:28:09 spamsnake MailScanner[1401]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:28:10 spamsnake MailScanner[1401]: Using SpamAssassin results cache
Apr 20 16:28:10 spamsnake MailScanner[1401]: Connected to SpamAssassin cache database
Apr 20 16:28:10 spamsnake MailScanner[1401]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:28:11 spamsnake MailScanner[1401]: Cannot read queue directory /var/spool/mqueue.in
Apr 20 16:28:14 spamsnake MailScanner[1405]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:28:14 spamsnake MailScanner[1405]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:28:14 spamsnake MailScanner[1405]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:28:14 spamsnake MailScanner[1405]: Read 865 hostnames from the phishing whitelist
Apr 20 16:28:14 spamsnake MailScanner[1405]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:28:14 spamsnake MailScanner[1405]: User's home directory /var/spool/postfix is not writable
Apr 20 16:28:14 spamsnake MailScanner[1405]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:28:15 spamsnake MailScanner[1405]: Using SpamAssassin results cache
Apr 20 16:28:15 spamsnake MailScanner[1405]: Connected to SpamAssassin cache database
Apr 20 16:28:15 spamsnake MailScanner[1405]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:28:17 spamsnake MailScanner[1405]: Cannot read queue directory /var/spool/mqueue.in
Apr 20 16:28:19 spamsnake MailScanner[1413]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:28:19 spamsnake MailScanner[1413]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:28:19 spamsnake MailScanner[1413]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:28:20 spamsnake MailScanner[1413]: Read 865 hostnames from the phishing whitelist
Apr 20 16:28:20 spamsnake MailScanner[1413]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:28:20 spamsnake MailScanner[1413]: User's home directory /var/spool/postfix is not writable
Apr 20 16:28:20 spamsnake MailScanner[1413]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:28:20 spamsnake MailScanner[1413]: Using SpamAssassin results cache
Apr 20 16:28:20 spamsnake MailScanner[1413]: Connected to SpamAssassin cache database
Apr 20 16:28:20 spamsnake MailScanner[1413]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:28:22 spamsnake MailScanner[1413]: Cannot read queue directory /var/spool/mqueue.in
Apr 20 16:28:24 spamsnake MailScanner[1447]: MailScanner E-Mail Virus Scanner version 4.81.4 starting...
Apr 20 16:28:24 spamsnake MailScanner[1447]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf
Apr 20 16:28:24 spamsnake MailScanner[1447]: Reading configuration file /opt/MailScanner/etc/conf.d/README
Apr 20 16:28:24 spamsnake MailScanner[1447]: Read 865 hostnames from the phishing whitelist
Apr 20 16:28:24 spamsnake MailScanner[1447]: Read 5278 hostnames from the phishing blacklists
Apr 20 16:28:24 spamsnake MailScanner[1447]: User's home directory /var/spool/postfix is not writable
Apr 20 16:28:24 spamsnake MailScanner[1447]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Apr 20 16:28:25 spamsnake MailScanner[1447]: Using SpamAssassin results cache
Apr 20 16:28:25 spamsnake MailScanner[1447]: Connected to SpamAssassin cache database
Apr 20 16:28:25 spamsnake MailScanner[1447]: Enabling SpamAssassin auto-whitelist functionality...
Apr 20 16:28:26 spamsnake MailScanner[1447]: Cannot read queue directory /var/spool/mqueue.in

Last edited by padonker; 20th April 2011 at 16:31.
Reply With Quote
  #9  
Old 20th April 2011, 16:34
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Did you use the mailscanner.sh file in section 7 to setup the MailScanner.conf file?
__________________
Home of the SpamSnake
Reply With Quote
  #10  
Old 20th April 2011, 16:38
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Of course, I am way too stupid to figure this out on my own
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
Perfect server Ubuntu 10.10 squirrelmail problem swampy1979 HOWTO-Related Questions 6 27th September 2011 01:19
Clamav issue with The Perfect SpamSnake - Ubuntu Jeos 9.10 Maxum HOWTO-Related Questions 7 21st March 2011 16:21
Perfect Server Ubuntu 10.10 & Enabling SquirrelMail profm2 HOWTO-Related Questions 2 21st March 2011 07:00
The Perfect SpamSnake - Ubuntu Jeos - High memory usage and slow response macross HOWTO-Related Questions 9 15th December 2010 13:41
The Perfect SpamSnake - Ubuntu Jaunty Jackalope - Page 5 markerman HOWTO-Related Questions 1 13th August 2009 00:44


All times are GMT +2. The time now is 23:26.


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