HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   The Perfect SpamSnake - Ubuntu Jeos 10.10 Maverick Meerkat - Page 2 (http://www.howtoforge.com/forums/showthread.php?t=52365)

padonker 19th April 2011 11:06

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

Rocky 19th April 2011 14:38

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

padonker 19th April 2011 23:39

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?

Rocky 20th April 2011 14:45

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?

padonker 20th April 2011 14:47

Probably not ;)
I've decided to restart the installation. Will let you know how that works out...

Rocky 20th April 2011 14:53

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.

padonker 20th April 2011 14:55

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

padonker 20th April 2011 16:28

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

Rocky 20th April 2011 16:34

Did you use the mailscanner.sh file in section 7 to setup the MailScanner.conf file?

padonker 20th April 2011 16:38

Of course, I am way too stupid to figure this out on my own :D


All times are GMT +2. The time now is 22:50.

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