Red Hat Bugzilla – Bug 167804
smtpmail library fails to perform auth login
Last modified: 2007-11-30 17:11:13 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Description of problem:
I need to send email using an Exchange server as my SMTP server rather than the local sendmail (or equivalent).
The smtpmail library for emacs is supposedly able to interface to an SMTP server that requires a LOGIN-type authentication (like the one I use), however I could not get it to work when using the smtpmail.elc part of emacs-common-21.4-5.
I got the latest revision of smtpmail.el from CVS (rev 1.77) and pointed emacs to that version rather than the byte-compiled one from the RPM and things work as expected, so I assume the problem to be with Fedora. I also randomly tried some older versions of the smtpmail.el (back to 1.68) and they work as well.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Make sure your SMTP server _requires_ AUTH LOGIN
2. Configure your smtpmail-related parametes correctly in .emacs, e.g.:
(setq smtpmail-default-smtp-server "yoursmtpserver.example.com")
(setq message-send-mail-function 'smtpmail-send-it)
'(("yoursmtpserver.example.com" 25 "username" "password")))
3. Turn on debugging in smtpmail library:
(setq smtpmail-debug-info 'enable)
4. Create an email message (C-x m with Gnus) and try sending it (C-c C-c)
Actual Results: You receive an SMTP failure message, the debug trace shows that there was no attempt to perform authentication.
Expected Results: The mail should be queued for delivery upon successful authentication with the SMTP server.
I guess the version in emacs-21.4 is probably revision 1.51.
> I also randomly tried some older versions of the smtpmail.el (back to 1.68)
> and they work as well.
Ok, I guess the cvs version can be backported for FC5 at least, though
I'm naively hoping that Emacs 22 will be released by then...
Simon Josefsson suggested in an email that newer versions of smtpmail.el may
also require newer versions of sendmail.el (though that doesn't seem to be the
case for my issue), so keep that in mind if you end up backporting smtpmail.
The latest version of sendmail.el requires the variable hard-newline to be defined.
So I'll try just updating smtpmail.el for now.
I'm updating smtpmail in the next devel build.
Should be in emacs-21.4-9.
Fix should be in FC5.