Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th January 2011, 12:22
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Exclamation Greylist/Fix, SpamAssassin problems

Hi there, I am trying to setup a server using the Ubuntu 10.10 SpamSnake Server tutorial, but when I get to the line where I have to run this command:
Code:
spamassassin -x -D -p /opt/MailScanner/etc/spam.assassin.prefs.conf --lint
I get
Code:
dbg: bayes: unable to initialize database for root user, aborting!
Instead of
Code:
debug: bayes: Using userid: 2
Any ideas?

Thank you,
w0rldart

Last edited by alleks; 26th January 2011 at 13:48.
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2011, 13:03
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Follow this thread, http://howtoforge.org/forums/showthr...e+spamassassin.

You have to import a starter db.
__________________
Home of the SpamSnake
Reply With Quote
  #3  
Old 25th January 2011, 17:45
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

I have solved that problem by running doing these steps (My SpamAssassin Version: 3.3)

Code:
#sa-learn --sync
#spamassassin -x -D -p /opt/MailScanner/etc/spam.assassin.prefs.conf --lint
But now I have another problem relating to postfix and mailscanner

I get this error in my logs and for that the MailScanner won't filter

Code:
 warning: connect to private/greyfix: No such file or directory
Any idea?
Reply With Quote
  #4  
Old 25th January 2011, 19:23
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Did you install greyfix and do you have the following in master.cf:

greyfix unix - n n - - spawn
user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -/ 24
__________________
Home of the SpamSnake
Reply With Quote
  #5  
Old 26th January 2011, 10:26
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

Ok I had to install greyfix and add that to master.cf (did it before you answer) but now there is another problem... every single mail gets dropped by the greylist/greyfix. Why could that be?

This is what I added in my master.cf, I don't think that by not adding --greylist-delay 60 will cause to drop the emails.

Code:
greyfix    unix  -       n       n       -       -       spawn
  user=nobody argv=/usr/local/sbin/greyfix -/ 24

BTW, I have 2 servers (2 VMs, 1 for testing and 1 that's live) and both share the same SpamSnake Ubuntu 10.10 setup... but I don't have these problems on my testing server. That's weird.

---------------------------------------------------------------------------------------------------------------------------
Edit:

I've added the --greylist-delay 60, and the same result

This is what I get in my logs with greylist/fix on

Code:
NOQUEUE: reject: RCPT from mail-ww0-f50.google.com[74.125.82.50]: 450 4.7.1 <destination@mymail.com>:
 Recipient address rejected: Greylisted by greyfix 0.3.9, try again in 60 seconds.
 See http://www.kim-minh.com/pub/greyfix/ for more information.;
 from=<sender@gmail.com> to=<destination@mymail.com> proto=ESMTP helo=<mail-ww0-f50.google.com>
destination@mymail.com => my email account were I am receiving the emails
sender@gmail.com => my other email from which I send the email, could be gmail or hotmail or any other domain... result is the same

Last edited by alleks; 26th January 2011 at 13:58.
Reply With Quote
  #6  
Old 26th January 2011, 17:51
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
 
Default

Hey,

Thats the default behavior of greyfix. It rejects a message the first time it sees it and accepts it after 60 seconds if it comes back. This is a way of preventing spam as some spambots does not resent messages.

If you want, you can whitelist your sender address in Baruwa and postfix will skip checks on it, providing you have the global whitelist section done. This will prove if the system is working as it should.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
The Following User Says Thank You to Rocky For This Useful Post:
w0rldart (26th January 2011)
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
Horde Groupware Webmail Edition ByteMe Networking Tips/Tricks/Mods 17 20th December 2012 10:12
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 08:00.


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