procmail
[Top] [All Lists]

Re: Newbie question - clarification

2003-04-03 05:38:28

hi -

maybe i should clarify my previous posting as a couple of replies have
got the wrong end of the stick...

to start with all email is being delivered OK and i use 'pine' to read it.

i then built and installed procmail v3.22 and spamassassin v2.52 as per
the docs. spamassassin says to set up a .forward file with

    "|IFS=' ' && exec /home/jrd/bin/procmail -f- || exit 75 #jrd"

and a .procmailrc with, e.g.

    :0fw: spamassassin.lock
    | /home/jrd/sausr/bin/spamassassin
    :0:
    * ^X-Spam-Status: Yes
    mail/spam

in order to filter out spam to a separate folder 'spam'

this seems to work fine in that most spam is being cut out and redirected
to the 'spam' folder. however, ALL my mail (spam and non-spam) is now
losing hostnames from the 'To' and 'Cc' fields. the 'From' field is
untouched, so mail sent

    From: xyz(_at_)some(_dot_)place
    To: jrd(_at_)star(_dot_)ucl(_dot_)ac(_dot_)uk
    Cc: abc(_at_)some(_dot_)where(_dot_)else

appears as

    From: xyz(_at_)some(_dot_)place
    To: jrd
    Cc: abc

this isn't anything to do with pine, it's missing from the mailbox file
/var/spool/mail/jrd that pine is reading.

i remove .forward altogether so it cuts out procmail and spamassassin and
'To' and 'Cc' go back to normal. so either procmail or spamassassin is
doing something.

if i run a test message through spamassassin

    spamassassin -t < test.txt > test.out

the 'To' and Cc' fields are untouched.

so to cut out spamassassin but run messages through procmail i've cut
.forward down to

     "|/home/jrd/bin/procmail"

and .procmailrc down to

     :0fw: spamassassin.lock
     | /sbin/cat

so instead of being piped through spamassassin messages just get run
through 'cat' which shouldn't do anything AFAIK.

and with this setup 'To' and 'Cc' are still losing the hostname part
of the addresses.

has anyone got any idea what's going on here ?


cheers,

 john


----------------------------------------------------------------------------
John Deacon                        | UCL Starlink Site Manager
Dept Physics and Astronomy         | Email: 
jrd(_at_)star(_dot_)ucl(_dot_)ac(_dot_)uk
University College London          | Tel: 020 7679 7147
Gower Street London WC1E 6BT       | Fax: 020 7679 7145
----------------------------------------------------------------------------


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Newbie question - clarification, John Deacon <=