From owner-freebsd-current Tue Mar 28 18:39:40 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA03006 for current-outgoing; Tue, 28 Mar 1995 18:39:40 -0800 Received: from bunyip.cc.uq.oz.au (bunyip.cc.uq.oz.au [130.102.2.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id SAA02990 for ; Tue, 28 Mar 1995 18:39:32 -0800 Received: from cc.uq.oz.au by bunyip.cc.uq.oz.au id <05853-0@bunyip.cc.uq.oz.au>; Wed, 29 Mar 1995 12:38:31 +1000 Received: from orion.devetir.qld.gov.au by pandora.devetir.qld.gov.au (8.6.10/DEVETIR-E0.3a) with ESMTP id MAA00483; Wed, 29 Mar 1995 12:39:20 +1000 Received: by orion.devetir.qld.gov.au (8.6.10/DEVETIR-0.2a) id MAA29753; Wed, 29 Mar 1995 12:36:32 +1000 Date: Wed, 29 Mar 1995 12:36:32 +1000 From: Stephen McKay Message-Id: <199503290236.MAA29753@orion.devetir.qld.gov.au> To: Mark Murray cc: Poul-Henning Kamp , syssgm@devetir.qld.gov.au, freebsd-current@FreeBSD.org Subject: Re: To all the ctm'mers... Sender: current-owner@FreeBSD.org Precedence: bulk Mark Murray writes: >> > Sure. But _where_? Where does sendmail get a path from? >> >> I use this: >> ctm-cvs-cur: "| PATH=$PATH:/usr/sbin /usr/sbin/ctm_rmail -l /archive/CTM_m >ail >> /log -p /archive/CTM_mail -d /archive/CTM -b /home/ncvs" >> >> and it works, but is gross... >> >> I belive ctm_rmail should use an absolute path to the ctm program. > >How about assuming that ctm is in the same directory as ctm_rmail? [Disclaimer: I've lost 4 days mail due to a tragic error, so I've missed the start of this. I haven't found the mail archives either. FAQ maintainer, wherefor art thou?] As the ctm_rmail author, and the person who made Poul remove the absolute path to ctm, I should explain myself. I think it is a trivial matter to arrange for the PATH to be correct, and a non-trivial matter to change a builtin pathname. I actually run the ctm system on a non-FreeBSD box (and NFS mount the result to a test FreeBSD box), and therefore see the added flexibility as well worth it. My incoming mail situation isn't simple: my .forward calls MH slocal which runs through my .maildelivery which calls /usr/syssgm/bin/ctm_incoming which does the hard work. So, translating, someone like yourself could use an entry in /etc/aliases: ctm-cvs-cur: "| /foo/bar/ctm_incoming" and have /foo/bar/ctm_incoming contain something like: #! /bin/sh PATH="your favourite path" export PATH cd /place/for/goodies || exit 1 exec ctm_rmail -f -l log -p pieces -d deltas -b /current/src Now, that wasn't too hard, was it? :-) Stephen.