From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Deacon Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Procmail & Tru64 Date: Tue, 29 Apr 2003 17:05:38 +0100 (BST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1051632309 29133 80.91.224.249 (29 Apr 2003 16:05:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 16:05:09 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Apr 29 18:05:07 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19AXbP-0007Zk-00 for ; Tue, 29 Apr 2003 18:05:07 +0200 Original-Received: (qmail 26537 invoked by uid 5); 29 Apr 2003 16:06:06 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26522 invoked by uid 49493); 29 Apr 2003 16:06:05 -0000 Original-Received: from jrd@star.ucl.ac.uk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.515217 secs); 29 Apr 2003 16:06:05 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 29 Apr 2003 16:06:05 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE4002EW4PWYA@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Apr 2003 12:06:03 -0400 (EDT) Original-Received: from mail-c.bcc.ac.uk (mail-c.bcc.ac.uk [144.82.100.23]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE40039F4PS4J@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Apr 2003 12:05:53 -0400 (EDT) Original-Received: from zuaxps.star.ucl.ac.uk by mail-c.bcc.ac.uk with SMTP (Mailer) with ESMTP; Tue, 29 Apr 2003 17:05:39 +0100 Original-Received: from localhost by zuaxps.star.ucl.ac.uk (8.9.3/1.1.29.3/18Jun01-1155AM) id RAA0000145569; Tue, 29 Apr 2003 17:05:38 +0100 (BST) Content-return: allowed Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:4087 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4087 Thanks to Lucio Chiappetti Bryan Dunlap John Pelan 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 , 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