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 21st October 2007, 03:32
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default Virtual Users with Postfix/Courier/Amavis etc...Quarantine?

Hello All!

I have finally deployed my server into the wild and am happily sending and receiving mail. However I would like to know where the spam/virus quarantine directory is located?

According to the howto it is set in /etc/amavis/conf.d/20-debian_defaults and is set to $QUARANTINEDIR = "$MYHOME/virusmails";

Where is $MYHOME?

Also back in the day I ran spamassassin and was able to a) train it with already received spam and b) setup my own regexs in files to alter the filtering. Is this still possible? if so any pointers on where the files exist?
Reply With Quote
Sponsored Links
  #2  
Old 21st October 2007, 03:34
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

scratch the first part....found it in /var/lib/amavis....I think I need a break here...
Reply With Quote
  #3  
Old 21st October 2007, 03:38
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

I just keep answering my own questions here. But this is weird. I ran sa-learn --dump magic and it barfed saying there was an error and to run with -D. So I did and get this:

[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": use_dcc 1
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_path /usr/bin/dccproc
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_add_header 1
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_dccifd_path /usr/sbin/dccifd
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": pyzor_add_header 1
[8802] dbg: rules: __MO_OL_9B90B merged duplicates: __MO_OL_C65FA
[8802] dbg: rules: __XM_OL_22B61 merged duplicates: __XM_OL_A842E
[8802] dbg: rules: __MO_OL_07794 merged duplicates: __MO_OL_8627E __MO_OL_F3B05
[8802] dbg: rules: __XM_OL_07794 merged duplicates: __XM_OL_25340 __XM_OL_3857F __XM_OL_4F240 __XM_OL_58CB5 __XM_OL_6554A __XM_OL_812FF __XM_OL_C65FA __XM_OL_CF0C0 __XM_OL_F475E __XM_OL_F6D01
[8802] dbg: rules: FH_MSGID_01C67 merged duplicates: __MSGID_VGA
[8802] dbg: rules: FS_NEW_SOFT_UPLOAD merged duplicates: HS_SUBJ_NEW_SOFTWARE
[8802] dbg: rules: __FH_HAS_XMSMAIL merged duplicates: __HAS_MSMAIL_PRI
[8802] dbg: rules: __MO_OL_015D5 merged duplicates: __MO_OL_6554A
[8802] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1 __MO_OL_CF0C0
[8802] dbg: rules: KAM_STOCKOTC merged duplicates: KAM_STOCKTIP15 KAM_STOCKTIP20 KAM_STOCKTIP21 KAM_STOCKTIP4 KAM_STOCKTIP6
[8802] dbg: rules: __XM_OL_015D5 merged duplicates: __XM_OL_4BF4C __XM_OL_4EEDB __XM_OL_5B79A __XM_OL_9B90B __XM_OL_ADFF7 __XM_OL_B30D1 __XM_OL_B4B40 __XM_OL_BC7E6 __XM_OL_F3B05 __XM_OL_FF5C8
[8802] dbg: rules: __XM_OL_5E7ED merged duplicates: __XM_OL_D03AB
[8802] dbg: rules: __MO_OL_22B61 merged duplicates: __MO_OL_4F240 __MO_OL_ADFF7
[8802] dbg: rules: __MO_OL_812FF merged duplicates: __MO_OL_BC7E6
[8802] dbg: rules: __MO_OL_25340 merged duplicates: __MO_OL_4EEDB __MO_OL_7533E
[8802] dbg: rules: __MO_OL_58CB5 merged duplicates: __MO_OL_B4B40
[8802] dbg: rules: __DOS_HAS_ANY_URI merged duplicates: __HAS_ANY_URI
[8802] dbg: rules: __XM_OL_C7C33 merged duplicates: __XM_OL_C9068 __XM_OL_EF20B
[8802] dbg: rules: __MO_OL_72641 merged duplicates: __MO_OL_A842E
[8802] dbg: rules: __MO_OL_5E7ED merged duplicates: __MO_OL_C7C33
[8802] dbg: rules: __MO_OL_F475E merged duplicates: __MO_OL_FF5C8
[8802] dbg: rules: __MO_OL_4BF4C merged duplicates: __MO_OL_F6D01
[8802] dbg: conf: finish parsing
[8802] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x91c 7cd4) implements 'finish_parsing_end', priority 0
[8802] dbg: replacetags: replacing tags
[8802] dbg: replacetags: done replacing tags
[8802] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
[8802] dbg: config: score set 1 chosen.
[8802] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
ERROR: Bayes dump returned an error, please re-run with -D for more information

So it looks like my local.cf is busted and its looking to bayes_toks in the wrong place. Any ideas?
Reply With Quote
  #4  
Old 21st October 2007, 18:58
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

Ok...so a nice long nights sleep has helped me answer some questions. Right off the bat I think there is a problem with the HowTo and:

bayes_path /var/lib/amavis/.spamassassin/bayes

needs to be added to the /etc/spamassassin/local.cf file for bayes to work. Unless I missed something but this removes any errors from sa-learn other than the DCC error. Still looking for an answer to that if anyone has one. These lines in particular are worrying to me:

[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": use_dcc 1
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_path /usr/bin/dccproc
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_add_header 1
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_dccifd_path /usr/sbin/dccifd
[8802] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": pyzor_add_header 1
Reply With Quote
  #5  
Old 22nd October 2007, 13:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What's in /etc/spamassassin/local.cf?
__________________
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
  #6  
Old 22nd October 2007, 13:59
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

This is my current local.cf


# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
################################################## #########################

# Add *****SPAM***** to the Subject header of spam e-mails
#
rewrite_header Subject *****SPAM*****


# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1


# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
# trusted_networks 212.17.35.


# Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock


# Set the threshold at which a message is considered spam (default: 5.0)
#
# required_score 5.0


# Use Bayesian classifier (default: 1)
#
# use_bayes 1


# Bayesian classifier auto-learning (default: 1)
#
# bayes_auto_learn 1


# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status

# dcc

use_dcc 1

dcc_path /usr/bin/dccproc

dcc_add_header 1

dcc_dccifd_path /usr/sbin/dccifd



#pyzor

use_pyzor 1

pyzor_path /usr/bin/pyzor

pyzor_add_header 1



#razor

use_razor2 1

razor_config /etc/razor/razor-agent.conf



#bayes

use_bayes 1

use_bayes_rules 1

bayes_auto_learn 1

bayes_path /var/lib/amavis/.spamassassin/bayes
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
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users gfts General 3 10th February 2006 08:35
System users, or virtual users gfts Installation/Configuration 1 20th December 2005 10:28


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


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