Gnus development mailing list
 help / color / mirror / Atom feed
From: gdt@work.lexort.com
Cc: ding@gnus.org
Subject: Re: How does gnus talk to sendmail
Date: Mon, 04 Dec 2006 09:14:17 -0500	[thread overview]
Message-ID: <smufybv21fq.fsf@linuxpal.mit.edu> (raw)
In-Reply-To: <x78xhomjaf.fsf@davestoy.homelinux.org> (Dave Goldberg's message of "Sun\, 03 Dec 2006 22\:28\:24 -0500")

  /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.




  reply	other threads:[~2006-12-04 14:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 20:28 reader
2006-12-04  3:28 ` Dave Goldberg
2006-12-04 14:14   ` gdt [this message]
2006-12-04 18:51     ` reader
2006-12-04  9:09 ` Reiner Steib
2006-12-04 19:04   ` reader
2006-12-04 21:12     ` Dave Goldberg
2006-12-05 15:40       ` reader
2006-12-05 23:36         ` Dave Goldberg
2006-12-06 15:11           ` Simon Josefsson
2006-12-06 16:19           ` reader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=smufybv21fq.fsf@linuxpal.mit.edu \
    --to=gdt@work.lexort.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).