unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Glenn Morris <gmorris+news@ast.cam.ac.uk>
Subject: Re: mail: Sending...failed with exit value 71
Date: Tue, 09 Dec 2003 01:37:16 +0000	[thread overview]
Message-ID: <15wu967ovn.fsf@xpc14.ast.cam.ac.uk> (raw)
In-Reply-To: Pine.LNX.4.44.0312081701150.17914-100000@heidegger.mousecar.net

gebser@speakeasy.net wrote:

> At 19:45 (UTC-0000) on Mon, 8 Dec 2003 Glenn Morris 
> said:
>
> = Alright then, the crystal ball says:
> = 
> = You have a sendmail installation where the sendmail executable (eg
> = /usr/sbin/sendmail) is not suid root. Either make it so (chmod u+s
> = /usr/sbin/sendmail), or if you can't/don't want to do that, try
>
> I've already got that... and have had it.  It was set up that way from
> the original install/upgrade. 

Cheap lousy crystal ball. <thump>

>  As said, since mail works fine in 'pine', 'xemacs', 'mozilla', and
> 'mail' (that very basic email app which hardly anyone uses anymore),
> and fails only when using emacs, sendmail wouldn't seem to be the
> place to look for the problem, yes?

It's a sendmail error message and exit code. Caused by a
misconfigured Emacs, no doubt, but a sendmail error nonetheless.
I thought figuring out exactly what the sendmail error message meant
might point towards what to configure in Emacs. 

Anyway, let's not get sidetracked by semantics...

> Moreover, for simplicity's sake, I'd rather that emacs not even go
> to my local sendmail to send mail. Emacs can connect up to the
> (remotely located) mailserver all by itself, yes?

Yes, that's what the code I posted was intended to do. Did you try it?
What happened? What were the contents of the Trace buffer?

> Judging from the sendmail error cited in earlier posts, it's
> apparent that emacs is using sendmail. Though you couldn't tell from
> the aforementioned, I'd rather that emacs didn't do this. So which
> variable(s) control this?
>
> = 
> = (setq message-send-mail-function 'smtpmail-send-it  ; for Gnus
> =       send-mail-function 'smtpmail-send-it          ; for other things

Those two variables control it. The customize code you show below only
sets the one for Gnus. I don't see your Emacs version, or the mail
package you are using in your previous posts. Better post them both if
you still can't make things work.

> =       smtpmail-debug-info t    ; only while you sort out this issue
> =       smtpmail-smtp-server "your.mail.server")
>
> Here's what I've had in my .emacs (irrelevant customizations edited 
> out):
>
> (custom-set-variables
>  '(mail-default-reply-to "gebser@speakeasy.net")
>  '(mail-host-address "speakeasy.net")
>  '(smtp-default-server "mail.speakeasy.net")

That variable does not appear in either Emacs 20.7 or 21.3, AFAICS.
smtpmail-default-smtp-server does though.

>  '(message-send-mail-function (quote smtpmail-send-it))

OK, but that's only for Gnus. Try sticking a:

'(send-mail-function (quote smtpmail-send-it))

in after that.

>  '(mail-send-nonascii nil)
>  '(smtp-server "mail.speakeasy.net")

Again, no such variable. smtpmail-smtp-server, yes.

>  '(user-mail-address "gebser@speakeasy.net")
>  '(gnus-secondary-servers (quote ("news.chi.sbcglobal.net")))
>  '(smtp-fqdn "mousecar.net")

No such variable. Where did you get this? Is it XEmacs stuff or
something? 

>  '(smtpmail-queue-mail t)
>  '(user-full-name "ken")
>  '(mail-interactive t)
>  '(gnus-nntp-server "news.cle.sbcglobal.net"))
>
> In addition, there's this item in Customize:
>
> ----------------------------------------------
> Smtpmail Queue Dir: [Hide] ~/Mail/queued-mail/
>    [State]: this option is unchanged from its standard setting.
> Directory where `smtpmail.el' stores queued mail.
> ----------------------------------------------
>
> Though I haven't found it documented anywhere, I'm guessing that this is 
> the directory used when emacs does it's *own* queuing, i.e., *not* using 
> sendmail.

Yes. Useful if you're not always on-line and want to store mail
before sending it in one go. By setting smtpmail-queue-mail to t as
you have done above, you indicate you want this behaviour.

All I can suggest is to try setting send-mail-function, other than
that, I don't know. Lots more info at:

http://josefsson.org/smtpmail.html


PS I don't need a CC, as the Mail-Copies-To header tries to indicate.

PPS Your messages seem to be explicitly going to both the mailing list
and the newsgroup. This means they show up twice on the newsgroup (and
I guess the mailing list as well), since they are gatewayed and
essentially the same thing.

  reply	other threads:[~2003-12-09  1:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1288.1070773808.399.help-gnu-emacs@gnu.org>
2003-12-07 23:37 ` mail: Sending...failed with exit value 71 Glenn Morris
2003-12-08 18:59   ` gebser
     [not found]   ` <mailman.1361.1070913718.399.help-gnu-emacs@gnu.org>
2003-12-08 19:45     ` Glenn Morris
2003-12-08 23:38       ` gebser
2003-12-09  1:37         ` Glenn Morris [this message]
2003-12-09 18:27           ` gebser
2003-12-19 11:20 ken
     [not found] <mailman.1413.1070998182.399.help-gnu-emacs@gnu.org>
2003-12-09 19:42 ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2003-12-07  3:41 gebser
2003-12-07 19:59 ` gebser

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=15wu967ovn.fsf@xpc14.ast.cam.ac.uk \
    --to=gmorris+news@ast.cam.ac.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).