#11  
Old 22nd September 2006, 10:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,003
Thanks: 825
Thanked 5,376 Times in 4,223 Posts
Default

And the .spamassassin.rc file is in the home directory of the user?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 22nd September 2006, 14:10
farao farao is offline
Member
 
Join Date: Sep 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

Actually, no...

The home directory (perfect setup, install of ISPC on Ubuntu 6.06) is determined as /var/www/web3, with a symlink Maildir to /var/www/web3/user/USERNAME/Maildir.
The .spamassassin.rc is in the user-directory: /var/www/web3/user/USERNAME/.spamassassin.rc

Everything is where the default install puts it...
So I guess the directory in the spamassassin recipe should be something like: $HOME/user/$username/Maildir/.Junk
The .Junk folder is a real folder, not a file...

If so, why is the $HOME not the username-directory? By the way, this particular user is the administrator for the web in question, I'm not sure what other users have as their home-dir...

My guess is that the $HOME/Maildir/.Junk would work for regular users, and that only the admins need some tweaking?

So should I hardcode the absolute path in every administrators spam-recipe?
Reply With Quote
  #13  
Old 23rd September 2006, 15:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by farao
Actually, no...

The home directory (perfect setup, install of ISPC on Ubuntu 6.06) is determined as /var/www/web3, with a symlink Maildir to /var/www/web3/user/USERNAME/Maildir.
The .spamassassin.rc is in the user-directory: /var/www/web3/user/USERNAME/.spamassassin.rc
That's ok because .procmailrc is in /var/www/web3, and it calls the SpamAssassin recipe.

Quote:
Originally Posted by farao
By the way, this particular user is the administrator for the web in question, I'm not sure what other users have as their home-dir...
For the site admin the homedir is /var/www/web3, for normal users it's /var/www/web3/user/USERNAME.
__________________
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
  #14  
Old 26th September 2006, 01:40
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Hi I am also trying to filter any messages marked as ''SPAM" to a separate folder for one client. This client has 8 mailboxes and any SPAM that is detected they want moved to a separate folder that they can check once a week (via webmail) to make sure no legitimate mail is being moved. They dont want to filter it with Outlook, they want a rule server side.

I am a wee bit confused as to how to set this up. I can follow the logic of the thread but is that for one user only? I want to apply it to the whole domain if possible?
My build is Centos 4.4, webs are located at /var/www/www.example.com
mail directorys are at /var/mail (not using maildir).

I made the changes to
/var/www/www.example.com.au/user/user/.spamassassin.rc directing the SPAM mail to /var/mail/ with the following:

:0:
* ^X-Spam-Status: Yes
/var/mail/SPAM_mailbox

I then created a new SPAM user, that created a mailbox under /var/mail/SPAM_mailbox, but this didnt work, SPAM sent to the user still went to his inbox and not the new mailbox.

Obviously this isnt a folder but a file, if I send it to a folder and dont create a new user how do you read the mail?

Any help appreciated.

Cheers

Matt
Reply With Quote
  #15  
Old 26th September 2006, 04:43
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

I think you would have to be using Maildir for this to work.
Reply With Quote
  #16  
Old 26th September 2006, 04:51
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Thanks for the reply Rocky,

Do you know if I can change over to maildir now (under server management, ISP Server settings) without any issues?

Thanks in advance

Matt
Reply With Quote
  #17  
Old 26th September 2006, 05:18
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Quote:
Originally Posted by punto
Thanks for the reply Rocky,

Do you know if I can change over to maildir now (under server management, ISP Server settings) without any issues?

Thanks in advance

Matt
You wouldn't be able to change over to Maildir without first converting your mailbox, which i beleive is in mbox format, to Maildir format by using mb2md.

If you enable Maildir now, you'll probably stop receiving mails to you mailboxes.

I did the following on my Mandriva 2006 Perfect Setup to enable Maildir:

Downloaded mb2md and placed it in the /usr/bin directory. I then ran the following command:

I was logged in as root.

sudo -u john mb2md-3.20.pl -s /var/mail/john -d /var/www/web3/user/john/Maildir

After the command ran, it created 3 additional folders under /var/www/web3/user/john/Maildir:
cur
new
tmp

Those are Maildir folders.

After that, I uninstalled my mbox ready pop daemon and installed courier-imap-pop, which supports Maildir. I then went into ISPConfig and enabled Maildir. I restarted Postfix and everything worked.

If you're going to try this, you don't have to convert the following accounts:
admispconfig
mail
postfix
Reply With Quote
  #18  
Old 26th September 2006, 05:24
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Thanks for the how-to Rocky, appreciate it.

Anyone know if there are other ways to filter SPAM at the server without changing over to Maildir?

Cheers

Matt
Reply With Quote
  #19  
Old 27th September 2006, 19:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by punto
Anyone know if there are other ways to filter SPAM at the server without changing over to Maildir?
There's no way doing it with mbox because with mbox all emails are stored in one single file.
__________________
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
  #20  
Old 28th September 2006, 00:12
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
 
Default

OK thanks Falko, looks like I will need to migrate to Maildir.

Appreciate the feedback.

Matt
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
Slicker spam handling with Maildirs IntnsRed Feature Requests 9 30th March 2008 06:02
How to kill spam when spamassassin marks it spam kpimichael Suggest HOWTO 15 6th August 2007 16:44
Kill Spam Assassin Sinisfun Installation/Configuration 1 5th May 2006 08:57
Spam Filtering mphayesuk General 15 23rd March 2006 15:17
Spam Gateway Rocky HOWTO-Related Questions 3 30th November 2005 12:04


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


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