[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: emacs: send mail with sendmail



On 2010-09-29 17:01 +0200, T o n g wrote:

> On Wed, 29 Sep 2010 08:31:14 +0200, Sven Joachim wrote:
>
>> On 2010-09-29 05:04 +0200, T o n g wrote:
>> 
>>> Having updated emacs to v23.2+1-4, I lost the "send mail (with
>>> sendmail)" menu, but get a "send mail (with gnus message)" menu
>>> instead. As you might have guessed, it doesn't work for me.
>> 
>> Did it work before on the same machine?
>
> Yes, with the "send mail (with sendmail)" menu, and my sendmail is still 
> working.

Did you customize any of the mail-* variables in Emacs?

>>> $ tail -1 /var/log/mail.log
>>> Sep 28 23:00:07 coral sm-msp-queue[5145]: o8SATjAs007592: to=root,
>>> ctladdr=root (0/0), delay=16:30:22, xdelay=00:00:00, mailer=relay,
>>> pri=4530639, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
>>> Connection refused by [127.0.0.1]
>> 
>> Your MTA seems to be broken.  Can you send mail with /usr/bin/mail?
>
> I never directly use /usr/bin/mail to send email, but sendmail instead, 
> which goes through my ISP Smart Host.

Your mail.log shows a failed attempt to send mail to root.  Relaying
that mail to your ISP would not have been any good, presumably.
  
>>> The sendmail has been working fine for me for over 10 years (despite
>>> some people hate it). I don't want to deal another MTA, is it possible
>>> to get that sendmail menu back?
>> 
>> Yes, but that doesn't change anything since message-mode also uses
>> sendmail for sending mail by default, like the old (and much inferior)
>> mail-mode.

In case you want that back, (setq mail-user-agent 'sendmail-user-agent)
does the trick.  Can you send mail if you do that?

> Ok, I guess this is the mode that you are talking about:
>
>  Message mode:
>  Major mode for editing mail and news to be sent.
>
> But why I get into this via the "send mail (with *gnus message*)" menu?

The menu item may be a bit misleadingly labeled.

> BTW, I don't have the gnus package installed, and hope not as well.

Gnus comes with Emacs, and message-mode is part of it.  But you don't
have to manage your mail and news with Gnus to use message-mode.

Sven


Reply to: