procmail
[Top] [All Lists]

Re: Procmail - Sendmail - SpamAssassin - Webmin -problemsgettingthemto work smoothly

2006-12-04 16:20:14
Hi,
  Thank you. I now have a much better understanding of what's going on. I've
made changes and now I'm attempting to complete the final part I want by
making individual probably-spam mailboxs for each virtual server.
:0:
* ^X-Spam-Status: Yes
$HOME/probably-spam

Although this is giving each mail user a probably-spam box rather than each
virtual server. Although this might work just as well. The question is how
would the user actually download the probably spam if they so choosed?

Or I've updated my Webmin/Virtualmin configuration so that usernames are now
put out as the email address. I.e. mailbox for 
probably-spam(_at_)domain(_dot_)com
would be /var/spool/mail/probably-spam(_at_)domain(_dot_)com
Given this would it be possible to pickup the domain.com part from each mail
user and if the mail is marked as spam direct it to
/var/spool/mail/probably-spam(_at_)domain(_dot_)com rather than
/var/spool/mail/whatever(_at_)domain(_dot_)com? If so how is it done?

Thanks

Lyle

------------------------------------------------------------
Lyle Hopkins          - CosmicPerl.com CGI Scripts -
Internet software solutions for the professional webmaster
Email: webmaster(_at_)cosmicperl(_dot_)com
Web site: http://www.cosmicperl.com
Specializing in Affiliate Software solutions
------------------------------------------------------------
----- Original Message ----- 
From: "Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl>
To: "[procmail]" <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Friday, December 01, 2006 5:16 AM
Subject: Re: Procmail - Sendmail - SpamAssassin -
Webmin -problemsgettingthemto work smoothly


CosmicPerl.com Support schreef:

Procmailrc:- (I've got rid of comment lines)

Put something like this at the top:

 LOGFILE     = /var/log/procmail.log

# :0
# * LOGNAME ?? ^^root^^
# {
   LOG = "
Before:
DEFAULT=$DEFAULT=
HOME=$HOME=
HOST=$HOST=
LINEBUF=$LINEBUF=
LOGNAME=$LOGNAME=
MAIL=$MAIL=
MAILDIR=$MAILDIR=
ORGMAIL=$ORGMAIL=
PROCMAIL_VERSION=$PROCMAIL_VERSION=
SHELL=$SHELL=
UMASK=$UMASK=
"
# }

Remove the #s for root-only execution of that recipe.



  DROPPRIVS   = yes

Move that to after the spam delivery, as Sean already suggested.


Missing:

    SHELL       = /bin/sh
    NL          = '
'                    # a newline

  MAILDIR     = /var/spool/mail
  VERBOSE     = yes
  LOGABSTRACT = all
  LOGFILE     = /var/log/procmail.log

Can all users write to that file? (That question becomes irrelevant if
DROPPRIVS is postponed.)


  :0:
  * ^X-Spam-Status: Yes
  /dev/null

/dev/null does not need a lock.


  :0
  * ^^rom[ ]
  {
    LOG = "*** Dropped F off From_ header! Fixing up. "

    :0 fhw
    | sed -e '1s/^/F/'
  }

Did you really see that happening?


(Please don't quote text that is no longer relevant, including
signatures and mailing list tails.)

-- 
Groet, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>