>On Tue, 4 Jun 2002, M. Brownsworth wrote:
>
>>  Suppose a recipient wanted a message that had been marked as spam by
>>  mistake, intercepted, and archived.  Is there a way to deliver this
>>  specific message to the recipient, preventing it from being
>>  intercepted again?
>[...]
>>  BTW, procmail is my LDA.
>
>What you've neglected to tell us is whether spamassissin (or spamc) is
>invoked by procmail, or is invoked as a sendmail milter; and also to say
>whether the interception-and-archiving is performed by procmail.  The
>degree to which you need to bypass procmail as well as bypassing sendmail
>is important.


Ah, sorry.  My procmail is doing system-wide filtering and invokes 
spamc.  From /usr/local/etc/procmailrc:

:0fw
| spamc

:0:
* ^X-Spam-Status: Yes
/var/log/spam

Also, procmail is the LDA


>The following all assumes that the re-delivery process is already running
>under the UID of the desired recipient, and that procmail was compiled
>with the correct value for $DEFAULT.


$DEFAULT is the default used by the vanilla procmail from FreeBSD 
4.5's port.  The default mail spool directory is /var/mail.  The Perl 
script to redeliver runs as root.


>If all you need to do is bypass sendmail:
>
>       formail -s procmail < /var/log/spam/$file


Accordingly, I would need to supply the user, right?  So:

formail -s procmail $username < /var/log/spam/$file

But it results in this:

/etc/mail# ./deliver_spam.pl
procmail: Couldn't read "/root/michelle"
procmail: Couldn't read "/root/michelle"
procmail: Couldn't read "/root/michelle"
procmail: Couldn't read "/root/michelle"
procmail: Couldn't read "/root/michelle"
procmail: Couldn't read "/root/michelle"

It does seem to be trying to find the mailbox.


>If you need to bypass procmail filtering as well:
>
>       formail -s procmail -m /dev/null < /var/log/spam/$file


I get no discernable results from either the above or:

formail -s procmail -m /dev/null $username < /var/log/spam/$file


>If you want other procmail filtering but need to strip off spamassassin
>markup first:
>
>     formail -s spamassin -d < /var/log/spam/$file | formail -s procmail
>
>You can hopefully extrapolate from there, depending on exactly what it is
>you need to accomplish.


It appears your hope is for naught, unfortunately.  I'm still 
confused as to how to specify the user in my script, and get procmail 
to redeliver to the correct mailbox, without filtering.

.\\ichelle
--------------------
Michelle Brownsworth
System Administrator
Willamette.Net
http://www.willamette.net
Phone (541) 465-3282
Fax   (541) 465-1194




_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to