From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64064 Path: news.gmane.org!not-for-mail From: gdt@work.lexort.com Newsgroups: gmane.emacs.gnus.general Subject: Re: How does gnus talk to sendmail Date: Mon, 04 Dec 2006 09:14:17 -0500 Message-ID: References: <87wt58yb9z.fsf@newsguy.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165241744 8694 80.91.229.10 (4 Dec 2006 14:15:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2006 14:15:44 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M12587@lists.math.uh.edu Mon Dec 04 15:15:43 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by dough.gmane.org with esmtp (Exim 4.50) id 1GrEbZ-0006g8-Vl for ding-account@gmane.org; Mon, 04 Dec 2006 15:15:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1GrEaT-00065b-Bt; Mon, 04 Dec 2006 08:14:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1GrEaR-00065G-UD for ding@lists.math.uh.edu; Mon, 04 Dec 2006 08:14:27 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1GrEaM-0001XE-Cl for ding@lists.math.uh.edu; Mon, 04 Dec 2006 08:14:27 -0600 Original-Received: from linuxpal.mit.edu ([18.62.1.14]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GrEaK-0001Kx-00 for ; Mon, 04 Dec 2006 15:14:20 +0100 Original-Received: by linuxpal.mit.edu (Postfix, from userid 9545) id E5F5216081; Mon, 4 Dec 2006 09:14:17 -0500 (EST) Original-To: Dave Goldberg X-Hashcash: 1:20:061204:ding@gnus.org::ijVnOA3vfAzo+Wtx:00000vjN X-Hashcash: 1:20:061204:david.goldberg6@verizon.net::B5Mf82Uc6ZPit/fy:00000000000000000000000000000000002j8+ In-Reply-To: (Dave Goldberg's message of "Sun\, 03 Dec 2006 22\:28\:24 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (berkeley-unix) X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64064 Archived-At: /usr/lib/sendmail has been the traditional place for sendmail for a long time, so it's a reasonable default. The project that's trying to standardize paths for applications in linux (sorry, it's late here and I've just finished 6 hours in the car so the name escapes me) wants to restrict /.*lib to libraries and /.*bin for apps (I'm probably oversimplifying and thereby offending someone but what the heck I don't think I'm being judgmental about it). NetBSD's hier(7) documents similar rules for /{usr/,}{lib,bin}. I think /usr/lib/sendmail was the traditional place in 2.8BSD and 4.0BSD. In BSD land, it's been in /usr/sbin/sendmail for quite some time, I think since 4.3BSD or 4.4BSD in the early 90s at the latest. In NetBSD, there's /usr/sbin/sendmail which is really mailwrapper(1) to choose among available MTAs, and sendmail itself is in /usr/libexec/sendmail/sendmail. But, /usr/sbin/sendmail is what emacs should be calling. I haven't had any problems with emacs calling sendmail incorrectly as long as I can remember. {I realize you probably know most of this, but for the benefit of the person having trouble:} Reading the sources (21.4, in lisp/mail/sendmail.el), I see some amusing workarounds for SunOS 4. Bit, I also see /usr/lib/sendmail as a default if sendmail-program is not defined. paths.el sets sendmail program by looking for sendmail in various places: (defconst sendmail-program (cond ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail") ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail") ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail") (t "fakemail")) ;In ../etc, to interface to /bin/mail. "Program used to send messages.") So all looks well, on both modern and old systems.