Great Circle Associates Majordomo-Users
(January 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: mj + /var/spool/mail - permissions
From: Alvin Oga <alvin @ planet . fef . com>
Date: Sat, 4 Jan 2003 10:21:43 -0800 (PST)
To: alvin @ planet . fef . com (Alvin Oga)
Cc: majordomo-users @ greatcircle . com
In-reply-to: <200301041807.h04I7TK6024400@planet.fef.com> from "Alvin Oga" at Jan 04, 2003 10:07:28 AM


> Alvin Oga wrote:
 
and permissions are:

#
# readable/writeable by majordomo
-rw-rw----   1 spamcoll mail         2469 Jan  2 08:26 /var/spool/mail/spamcoll

#
# majordomo can execute the script
-rwxr-xr-x   1 majordom www         17257 Jan  2 08:14 .../majordomo/AntiSpam.Collector.pl

#
# readable by apache
drwxr-xr-x   3 majordom mj           4096 Jan  2 08:26 ...html/SpamCollector/2002
drwxr-xr-x   3 majordom mj           4096 Jan  2 08:26 ...html/SpamCollector/2003


> as simplified   /etc/mail/aliases
> ---------------------------------
> 
> spamcollector:	"|majordomo/wrapper .. newlist ... ", MJ,spamcollector,SpamCollector.pl
> 
> spamcollector.pl:	"|majordomo/wrapper spamcollector.pl"
> 
> -------------------
> 
> #!/usr/bin/perl
> #
> # the mailbox is available if i run this script manually
> #
> #
> if ( ! -f /var/spool/mail/spamcollector ) {
>   printf "ERROR: no spam to process yet\n"; 
> }
> #
> # process the incoing spam and move it aside
> #
> mv /var/spool/mail/spamcollector  web_pages/SpamCollector/2003/Jan/04
> #
> # done script
> 



References:
Indexed By Date Previous: mj + /var/spool/mail
From: Alvin Oga <alvin@planet.fef.com>
Next: Taboo body/headers
From: Bob Bish <bobbish@earthlink.net>
Indexed By Thread Previous: mj + /var/spool/mail
From: Alvin Oga <alvin@planet.fef.com>
Next: Re: mj + /var/spool/mail
From: Daniel Liston <dliston@sonny.org>

Google
 
Search Internet Search www.greatcircle.com