SUMMARY: Procmail & Tru64

From: John Deacon (jrd_at_star.ucl.ac.uk)
Date: 04/29/03

  • Next message: Tru64 User: "SUMMARY: Proper System Cleaning/Erasing"
    Date: Tue, 29 Apr 2003 17:05:38 +0100 (BST)
    To: tru64-unix-managers@ornl.gov
    
    

    Thanks to

      Lucio Chiappetti <lucio@mi.iasf.cnr.it>
      Bryan Dunlap <bcd@pacific.mps.ohio-state.edu>
      John Pelan <J.Pelan@gatsby.ucl.ac.uk>

    for pointing me in the right direction. The problem was actually down to
    the DEC/Compaq/HP sendmail.cf configuration file that I was using. I've
    been meaning to upgrade to a custom-built version of sendmail for some
    time but version 8.9.3 that comes with Tru64 v5.1 had seemed to be working
    OK.

    However, when procmail was invoked it looks like one of the rules for
    'Local, IMAP, and Program mailers' was screwing things up. Specifically:

      Mlocal, P=/bin/mail, F=SlsDFMmnu, S=10/40, R=20/50, A=mail -r $g -d $u
      Mprog, P=/bin/sh, F=lsDFM, S=10, R=20, A=sh -c $u
      Mimap, P=/usr/bin/deliver, F=nsmFDMu, S=10, R=20/50, A=deliver $u

      #
      # Envelope sender rewriting
      #
      S10
      R@ $n errors to mailer-daemon
      R$+ $: $>60 $1 add local domain if needed

      #
      # Envelope recipient rewriting
      #
      S20
      R$+ < @ $* > $: $1 strip host part

    So not being sure of sendmail syntax I've just modified the last line to
    stop it stripping out the host part:

      R@ $n errors to mailer-daemon

    and all mail is now arriving with headers intact.

    "I'd recommend Postfix ;-)" is another solution that might be worth checking
    out...

    thanks,

    john

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

    Original message:

    Hi all -

    possibly a little off-topic but i've had no help from the procmail mailing
    list so here goes...

    i've installed procmail so i can use spamassassin and noticed an annoying
    feature which i initially thought was down to spamassassin but further
    investigation seems to indicate it's actually procmail. what happens is
    that all incoming mail goes through procmail and gets the header rewritten
    such that the 'To:' and 'Cc:' fields have the hostnames stripped out of
    all addresses. so, for example, an email sent

      From: user@some.where
      To: jrd@star.ucl.ac.uk, abc@some.other.place
      Cc: someone@some.where.else

    will appear in my inbox as

      From: user@some.where
      To: John Deacon <jrd>, abc
      Cc: someone

    this doesn't happen if i don't pass email through procmail. obviously this
    can make replying to all recipients a little tricky...

    i'm currently using a ~/.forward file containing (as recommended in the
    docs)

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

    and my ~/.procmailrc file is now totally empty so procmail should be doing
    nothing at all to incoming emails but it's still stripping out hostnames...

    this is procmail v3.22 built out of the box with the default settings on a
    Tru64 v5.1 (PK6) machine. procmail on a Linux machine doesn't seem to do
    this, so is this a Tru64 'feature' or just something i'm doing wrong ?

    TIA,

     john


  • Next message: Tru64 User: "SUMMARY: Proper System Cleaning/Erasing"

    Relevant Pages

    • Re: [SLE] Procmail + Maildir
      ... On Thursday 29 January 2004 10:15, John wrote: ... > procmail creates the file with ... Check the headers for your unsubscription address ... For additional commands send e-mail to suse-linux-e-help@suse.com ...
      (SuSE)
    • [SLE] Re: Re: Odd email permissions setting
      ... >> procmail recipe comes to me) whereas the other receives email explicitly. ... In any case, as I said, it works fine for my user (john): ... it is recreated with the correct permissions. ... user that gets the spool file created owned by root. ...
      (SuSE)
    • Re: [SLE] Procmail + Maildir
      ... On Thursday 29 January 2004 09.15, John wrote: ... I have no idea, I don't use procmail. ... user delete a file when it's owned by root" question. ... Please read the FAQs: suse-linux-e-faq@suse.com ...
      (SuSE)