SPAM folder

View: New views
8 Messages — Rating Filter:   Alert me  

SPAM folder

by Damas Ally :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings,

I am working with mail server whereby my server is installed the following:-

1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
2. SuirrelMail ( Version 1.4.0)
3. Dovecot (version 1.2.4)
4. SendMail (version 8.14.3-1)
5. MailScanner (version 4.77.10)
6. Procmail (version 3.22-22)
7. Spamassassin ( version 3.2.5-2)

I configured my mail server in such away that it can detect all spam mails
with header [SPAM] using spamassassin & procmailrc, now my problem in
which i am looking for help is to deliver all spam mails into spam folder,
is there any way i can set or use squirrelmail plugin which can make the
detected spam mails to be delivered into spam folder automatically?
please, anyone to help!
regards!
Damas A.M

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 2, 2009 at 8:18 AM, <damas@...> wrote:
> Greetings,
>
> I am working with mail server whereby my server is installed the following:-
>
> 1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
> 2. SuirrelMail ( Version 1.4.0)

I think you are looking at the version of the configuration tool.  But
if you really are using version 1.4.0, please upgrade immediately -
this is terribly outdated.

> 3. Dovecot (version 1.2.4)
> 4. SendMail (version 8.14.3-1)
> 5. MailScanner (version 4.77.10)
> 6. Procmail (version 3.22-22)
> 7. Spamassassin ( version 3.2.5-2)
>
> I configured my mail server in such away that it can detect all spam mails
> with header [SPAM] using spamassassin & procmailrc, now my problem in
> which i am looking for help is to deliver all spam mails into spam folder,

You are already using procmail, so just create filters to do this.

> is there any way i can set or use squirrelmail plugin which can make the
> detected spam mails to be delivered into spam folder automatically?

The filters plugin can be configured to do that, but it's a bad choice
and can create problems logging in, etc.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Derek Piazza-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

This is something that I am working on as well. I pretty much the same
setup as well. However, everything that I have seen you either want
sendmail or postfix. Is there a reason you have both?

Thanks,

damas@... wrote:

> Greetings,
>
> I am working with mail server whereby my server is installed the following:-
>
> 1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
> 2. SuirrelMail ( Version 1.4.0)
> 3. Dovecot (version 1.2.4)
> 4. SendMail (version 8.14.3-1)
> 5. MailScanner (version 4.77.10)
> 6. Procmail (version 3.22-22)
> 7. Spamassassin ( version 3.2.5-2)
>
> I configured my mail server in such away that it can detect all spam mails
> with header [SPAM] using spamassassin & procmailrc, now my problem in
> which i am looking for help is to deliver all spam mails into spam folder,
> is there any way i can set or use squirrelmail plugin which can make the
> detected spam mails to be delivered into spam folder automatically?
> please, anyone to help!
> regards!
> Damas A.M
>
>  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Ted Hatfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2 Sep 2009, damas@... wrote:

> Greetings,
>
> I am working with mail server whereby my server is installed the following:-
>
> 1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
> 2. SuirrelMail ( Version 1.4.0)
> 3. Dovecot (version 1.2.4)
> 4. SendMail (version 8.14.3-1)
> 5. MailScanner (version 4.77.10)
> 6. Procmail (version 3.22-22)
> 7. Spamassassin ( version 3.2.5-2)
>
> I configured my mail server in such away that it can detect all spam mails
> with header [SPAM] using spamassassin & procmailrc, now my problem in
> which i am looking for help is to deliver all spam mails into spam folder,
> is there any way i can set or use squirrelmail plugin which can make the
> detected spam mails to be delivered into spam folder automatically?
> please, anyone to help!
> regards!
> Damas A.M
>

Damas,

If you are looking for a way to use procmail to filter out messages marked
by spamassassin into a seperate folder you can do so in the global
procmailrc file.

Create a file at /usr/local/etc/procmailrc or /etc/procmailrc (whichever
your system requires) and add this rule.

############################
DROPPRIVS=yes

:0
* ^X-Spam-Flag: .*YES.*
$HOME/Maildir/.Trash/
############################

Dropping privileges changes the HOME variable to the users home directory.

The rule looks for the header "X-Spam-Flag", if YES then place the message
in the folder specified.  For example my mailbox would expand to
/home/ted/Maildir/.Trash/ .

If you are looking for a program that allows users to have the option of
filtering or not you must install a plugin that has the capability of
adjusting the users .procmailrc file.

I have a similar setup to yours.

sendmail
spamass-milter (rather than mailscanner)
Dovecot
Procmail

I have written a custom plugin that uses ftp to update the users
.procmailrc file and their .spamassassin/user_prefs file as well.

If you would like more information and a copy of the plugin please let me
know.

It's tested and running on verion 1.4.17.  I'm not sure what problems you
may run into on version 1.4.0.

Ted Hatfield
PrismNet Ltd.
IO.COM.
512-821-2991 Ext: 4943


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Derek Piazza-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ted-

THANK YOU! I was trying to find out why the procmail would not move the folder. However on my system I have a folder that is "***Spam***"   Does it matter that I have the "*" 's?

This is what I have in "/etc/procmailrc"

:0fw
| /usr/bin/spamc

DROPPRIVS=yes

:0
* ^X-Spam-Flag: .*YES.*
$HOME/.Maildir/.Trash/

Thanks,
Derek

Ted Hatfield wrote:
On Wed, 2 Sep 2009, damas@... wrote:

  
Greetings,

I am working with mail server whereby my server is installed the following:-

1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
2. SuirrelMail ( Version 1.4.0)
3. Dovecot (version 1.2.4)
4. SendMail (version 8.14.3-1)
5. MailScanner (version 4.77.10)
6. Procmail (version 3.22-22)
7. Spamassassin ( version 3.2.5-2)

I configured my mail server in such away that it can detect all spam mails
with header [SPAM] using spamassassin & procmailrc, now my problem in
which i am looking for help is to deliver all spam mails into spam folder,
is there any way i can set or use squirrelmail plugin which can make the
detected spam mails to be delivered into spam folder automatically?
please, anyone to help!
regards!
Damas A.M

    

Damas,

If you are looking for a way to use procmail to filter out messages marked
by spamassassin into a seperate folder you can do so in the global
procmailrc file.

Create a file at /usr/local/etc/procmailrc or /etc/procmailrc (whichever
your system requires) and add this rule.

############################
DROPPRIVS=yes

:0
* ^X-Spam-Flag: .*YES.*
$HOME/Maildir/.Trash/
############################

Dropping privileges changes the HOME variable to the users home directory.

The rule looks for the header "X-Spam-Flag", if YES then place the message 
in the folder specified.  For example my mailbox would expand to 
/home/ted/Maildir/.Trash/ .

If you are looking for a program that allows users to have the option of
filtering or not you must install a plugin that has the capability of
adjusting the users .procmailrc file.

I have a similar setup to yours.

sendmail
spamass-milter (rather than mailscanner)
Dovecot
Procmail

I have written a custom plugin that uses ftp to update the users 
.procmailrc file and their .spamassassin/user_prefs file as well.

If you would like more information and a copy of the plugin please let me 
know.

It's tested and running on verion 1.4.17.  I'm not sure what problems you 
may run into on version 1.4.0.

Ted Hatfield
PrismNet Ltd.
IO.COM.
512-821-2991 Ext: 4943


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Wm Mussatto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, September 2, 2009 09:57, Paul Lesniewski wrote:

> On Wed, Sep 2, 2009 at 8:18 AM, <damas@...> wrote:
>> Greetings,
>>
>> I am working with mail server whereby my server is installed the
>> following:-
>>
>> 1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
>> 2. SuirrelMail ( Version 1.4.0)
>
> I think you are looking at the version of the configuration tool.  But
> if you really are using version 1.4.0, please upgrade immediately -
> this is terribly outdated.
>
>> 3. Dovecot (version 1.2.4)
>> 4. SendMail (version 8.14.3-1)
>> 5. MailScanner (version 4.77.10)
>> 6. Procmail (version 3.22-22)
>> 7. Spamassassin ( version 3.2.5-2)
>>
>> I configured my mail server in such away that it can detect all spam
>> mails
>> with header [SPAM] using spamassassin & procmailrc, now my problem in
>> which i am looking for help is to deliver all spam mails into spam
>> folder,
>
> You are already using procmail, so just create filters to do this.
>
>> is there any way i can set or use squirrelmail plugin which can make the
>> detected spam mails to be delivered into spam folder automatically?
>
> The filters plugin can be configured to do that, but it's a bad choice
> and can create problems logging in, etc.
>
Um? I have a very similar setup and use the "serversidefilter" plugin
(which I thought was part of the standard distribution) which can manage
changing the .procmailrc to do just what you need to have done.  But its
1.4.9a (debian patched for security of course) so your mileage may vary
with more current stuff.

> --
> Paul Lesniewski
> SquirrelMail Team
> Please support Open Source Software by donating to SquirrelMail!
> http://squirrelmail.org/donate_paul_lesniewski.php
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> -----
> squirrelmail-plugins mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-plugins@...
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
>
>



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Ted Hatfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Wed, 2 Sep 2009, Derek Piazza wrote:

> Ted-
>
> THANK YOU! I was trying to find out why the procmail would not move the folder. However on my system I have a folder that is
> "***Spam***"   Does it matter that I have the "*" 's?
>
> This is what I have in "/etc/procmailrc"
>
> :0fw
> | /usr/bin/spamc
>
> DROPPRIVS=yes
>
> :0
> * ^X-Spam-Flag: .*YES.*
> $HOME/.Maildir/.Trash/
>
> Thanks,
> Derek
>
The delivery rule depends on where you are storing your mailbox and what
kind of format it's kept in.

For mbox format, the inbox is usually kept in /var/mail/$USER where $USER
is a mbox file named after the account holder.  Mail folders are usually
kept in the home directory in the mail directory.

In that case the global rule would look like,

########################
DROPPRIVS=yes

:0fw
| /usr/bin/spamc

:0
* ^X-Spam-Flag: .*YES.*
$HOME/mail/***Spam***
########################

For maildir format, mail is usually kept in the users home directory in a
Folder called Maildir.

In that case the global rule would look like,

########################
DROPPRIVS=yes

:0fw
| /usr/bin/spamc

:0
* ^X-Spam-Flag: .*YES.*
$HOME/Maildir/.***Spam***/
########################


The trick is to make certain you drop privileges before passing the
message onto spamc.  This way spamassassin parses the message as the user
rather than the mail daemon.  This will allow the user to set their own
user_prefs in their .spamassassin folder.

If you run spamassassin before you drop privileges you will parse the
message with the default spamassassin preferences.

Mailbox format doesn't require a / at the the end of the delivery rule.

Maildir format requires a / at the end of the delivery rule.


I hope this helps.  However I don't think this is the proper forum for
procmail issues.

Ted Hatfield
PrismNet Ltd.
IO.COM.
512-821-2991 Ext: 4943

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: SPAM folder

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 2, 2009 at 10:24 AM, Ted Hatfield<ted@...> wrote:

> On Wed, 2 Sep 2009, damas@... wrote:
>
>> Greetings,
>>
>> I am working with mail server whereby my server is installed the following:-
>>
>> 1. OS Fedora core 10 (2.6.27.5-117.fc10.i686)
>> 2. SuirrelMail ( Version 1.4.0)
>> 3. Dovecot (version 1.2.4)
>> 4. SendMail (version 8.14.3-1)
>> 5. MailScanner (version 4.77.10)
>> 6. Procmail (version 3.22-22)
>> 7. Spamassassin ( version 3.2.5-2)
>>
>> I configured my mail server in such away that it can detect all spam mails
>> with header [SPAM] using spamassassin & procmailrc, now my problem in
>> which i am looking for help is to deliver all spam mails into spam folder,
>> is there any way i can set or use squirrelmail plugin which can make the
>> detected spam mails to be delivered into spam folder automatically?
>> please, anyone to help!
>> regards!
>> Damas A.M
>>
>
> Damas,
>
> If you are looking for a way to use procmail to filter out messages marked
> by spamassassin into a seperate folder you can do so in the global
> procmailrc file.
>
> Create a file at /usr/local/etc/procmailrc or /etc/procmailrc (whichever
> your system requires) and add this rule.
>
> ############################
> DROPPRIVS=yes
>
> :0
> * ^X-Spam-Flag: .*YES.*
> $HOME/Maildir/.Trash/
> ############################
>
> Dropping privileges changes the HOME variable to the users home directory.
>
> The rule looks for the header "X-Spam-Flag", if YES then place the message
> in the folder specified.  For example my mailbox would expand to
> /home/ted/Maildir/.Trash/ .
>
> If you are looking for a program that allows users to have the option of
> filtering or not you must install a plugin that has the capability of
> adjusting the users .procmailrc file.
>
> I have a similar setup to yours.
>
> sendmail
> spamass-milter (rather than mailscanner)
> Dovecot
> Procmail
>
> I have written a custom plugin that uses ftp to update the users
> .procmailrc file and their .spamassassin/user_prefs file as well.

The Server Settings plugin is meant to do this.


> If you would like more information and a copy of the plugin please let me
> know.
>
> It's tested and running on verion 1.4.17.  I'm not sure what problems you
> may run into on version 1.4.0.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins