RE: [qmailtoaster] New Mailfilter
Argument list too long means that * expands in too much files. If you use bash, create an script like this ---cut here--- #!/bin/bash cd DIRECTORYWITHMAILS # The mailbox with spam for file in *; do # Do here whatever you like to do with each file for example sa-learn --spam $file rm -f $file done ---cut here--- Cheers *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |David Sanchez Martin | [EMAIL PROTECTED]Administrador de Sistemas | http://www.e2000.esE2000 Nuevas Tecnologias | |E2000 Organizacion de Empresarios | Tel : +34 902 19 61 77 Mediadores de Seguros | |Agustin Bravo Esquina Calle C |33120 Pravia Asturias Spain | |*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* De: Shelly [mailto:[EMAIL PROTECTED] Enviado el: martes, 31 de octubre de 2006 6:40Para: qmailtoaster-list@qmailtoaster.comAsunto: Re: [qmailtoaster] New Mailfilter Hi Jake, Kyle and others,Im trying to run a script on my box - ./spamscript: /root/.cpan/build/Mail-SpamAssassin-3.1.4/sa-learn: /usr/bin/perl: bad interpreter: Argument list too longDoes anyone have a solution so the script can run on large amounts of emails? Im trying to run it on about 990 emails and its bombing out, I expect to have more spam to run it on when the cron runs it.ThanksJake Vickers [EMAIL PROTECTED] wrote: Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this:#!/bin/shlocate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders# moving to spam-clean file# note: mtime is for how many days to leave the messages on the servercat /var/qmail/spam-folders | awk '{print "find "$0"/ -type f -mtime 5 -exec rm -v {} \\; " };{ };{next}' /var/qmail/spam-cleansh /var/qmail/spam-cleanThat's a quickly modified script that George had sent me a while back.-QmailToaster hosted by: VR Hosted -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Send instant messages to your online friends http://au.messenger.yahoo.com BEGIN:VCARD VERSION:2.1 N:Sánchez Martín;David FN:[EMAIL PROTECTED] ([EMAIL PROTECTED]) ORG:E2000 Financial Investments, S.A.;Centro de Nuevas Tecnologías TITLE:Administrador de Sistemas TEL;WORK;VOICE:902196177 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA;Asturias;;;Espa=F1a LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA=0D=0AAsturias=0D=0AEspa=F1a URL;WORK:http://www.e2000.es EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20060705T152542Z END:VCARD - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
It shows up in your webmail under the trash thanks Q On Tue, 2006-10-31 at 13:12 +0800, Ho wrote: Where is the spam box? I cannot see that. Ho Kyle Quillen wrote: Ho, I ran the install with mine and let it run. When I woke up this morning the spam box was in my webmail with messages in it. It will automatically Create it. On Tue, 2006-10-31 at 12:28 +0800, Ho wrote: Dear Sir, I have install it and a check box in the qmail admin page of each account. I want to know that how the spam mail filter working, and how to test it? Thanks Ho Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this: #!/bin/sh locate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders # moving to spam-clean file # note: mtime is for how many days to leave the messages on the server cat /var/qmail/spam-folders | awk '{print find $0/ -type f -mtime 5 -exec rm -v {} \\; };{ };{next}' /var/qmail/spam-clean sh /var/qmail/spam-clean That's a quickly modified script that George had sent me a while back. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[qmailtoaster] New Mailfilter
Hey all, The spam box seems to be working well for us but I need to do two things. First I would like to know if there is a script out there that will delete mail in the spam box automatically for all users after it has been in there say 5 days. I would also like to know how to make my spamassassin auto learn from all the users spam directories. Any help on this would be much appreciated. Once I get this figured out I will upgrade the wiki site. Thanks, Q - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; thanks Q On Mon, 2006-10-30 at 09:28 -0500, Jake Vickers wrote: Kyle Quillen wrote: Hey all, The spam box seems to be working well for us but I need to do two things. First I would like to know if there is a script out there that will delete mail in the spam box automatically for all users after it has been in there say 5 days. I would also like to know how to make my spamassassin auto learn from all the users spam directories. Any help on this would be much appreciated. Once I get this figured out I will upgrade the wiki site. If you go to my site, I have an original script someone sent to me to learn from the spam messages in the Spam box. I have a modified one if you need it. As far as deleting the messages, do something like this (this is for roughly 3 days): #!/bin/sh find /home/vpopmail/domains/v2gnu.com/jake/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/jake/Maildir/new/* -mtime +3 -exec rm -rf {} \; - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this: #!/bin/sh locate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders # moving to spam-clean file # note: mtime is for how many days to leave the messages on the server cat /var/qmail/spam-folders | awk '{print find $0/ -type f -mtime 5 -exec rm -v {} \\; };{ };{next}' /var/qmail/spam-clean sh /var/qmail/spam-clean That's a quickly modified script that George had sent me a while back. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
Dear Sir, I have install it and a check box in the qmail admin page of each account. I want to know that how the spam mail filter working, and how to test it? Thanks Ho Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this: #!/bin/sh locate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders # moving to spam-clean file # note: mtime is for how many days to leave the messages on the server cat /var/qmail/spam-folders | awk '{print find $0/ -type f -mtime 5 -exec rm -v {} \\; };{ };{next}' /var/qmail/spam-clean sh /var/qmail/spam-clean That's a quickly modified script that George had sent me a while back. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
Ho, I ran the install with mine and let it run. When I woke up this morning the spam box was in my webmail with messages in it. It will automatically Create it. On Tue, 2006-10-31 at 12:28 +0800, Ho wrote: Dear Sir, I have install it and a check box in the qmail admin page of each account. I want to know that how the spam mail filter working, and how to test it? Thanks Ho Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this: #!/bin/sh locate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders # moving to spam-clean file # note: mtime is for how many days to leave the messages on the server cat /var/qmail/spam-folders | awk '{print find $0/ -type f -mtime 5 -exec rm -v {} \\; };{ };{next}' /var/qmail/spam-clean sh /var/qmail/spam-clean That's a quickly modified script that George had sent me a while back. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] New Mailfilter
Where is the spam box? I cannot see that. Ho Kyle Quillen wrote: Ho, I ran the install with mine and let it run. When I woke up this morning the spam box was in my webmail with messages in it. It will automatically Create it. On Tue, 2006-10-31 at 12:28 +0800, Ho wrote: Dear Sir, I have install it and a check box in the qmail admin page of each account. I want to know that how the spam mail filter working, and how to test it? Thanks Ho Kyle Quillen wrote: How do I set that to look at all mail boxes would it be like this? #!/bin/sh find /home/vpopmail/domains/v2gnu.com/*/Maildir/cur/* -mtime +3 -exec rm -rf {} \; find /home/vpopmail/domains/v2gnu.com/*/Maildir/new/* -mtime +3 -exec rm -rf {} \; How about something like this: #!/bin/sh locate Spam/ | grep -v S= | grep \/cur | uniq /var/qmail/spam-folders # moving to spam-clean file # note: mtime is for how many days to leave the messages on the server cat /var/qmail/spam-folders | awk '{print "find "$0"/ -type f -mtime 5 -exec rm -v {} \\; " };{ };{next}' /var/qmail/spam-clean sh /var/qmail/spam-clean That's a quickly modified script that George had sent me a while back. - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]