Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281236 - app-emacs/wanderlust-2.14.0-r4 cannot send mail via STARTTLS
Summary: app-emacs/wanderlust-2.14.0-r4 cannot send mail via STARTTLS
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 17:41 UTC by Carlos Konstanski
Modified: 2009-08-28 21:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Konstanski 2009-08-12 17:41:30 UTC
Wanderlust cannot send email via STARTTLS.  The 535 response isn't accurate; notice that the mail server log shows the connection being dropped by the client before any authentication occurs.  Then wanderlust crashes with an error, which is not indicative of a normal failed authentication.

I am able to send emails through the same server with pine using STARTTLS.

Unfortunately I am not prepared to remove the STARTTLS requirement on my mail server, therefore I cannot test plaintext SMTP connections.  I'll do this later at work, where internal connections can be made without STARTTLS.

I would report this to the wanderlust mailing list, but they use S25R anti-spam draconery, and they are blocking my attempts to subscribe.

When using emacs 23, there is an additional issue with flim failing to determine the FQDN.  It uses (system-name); the workaround is to set the system hostname to a fully-qualified one.  Bad for laptops.  But that is a bug for another day.

Emacs stack trace:
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  signal(wrong-type-argument (arrayp nil))
  byte-code("<buncha_garbage>" [smtp-server recipients id err smtp-sasl-user-name smtp-sasl-mechanisms wl-draft-write-sendlog failed smtp smtp-response-error 535 elmo-remove-passwd format "SMTP:%s/%s@%s" signal server mechanism user] 6)
  wl-draft-send-mail-with-smtp()
  wl-draft-dispatch-message()
  wl-draft-normal-send-func(#<buffer +draft/42> t)
  wl-draft-send(t)
  wl-draft-send-and-exit()
  call-interactively(wl-draft-send-and-exit nil nil)

Mail server log:
Aug 12 11:00:11 ns postfix/smtpd[915]: connect from sphinktop.pippiandcarlos.com[192.168.1.12]
Aug 12 11:00:11 ns postfix/smtpd[915]: setting up TLS connection from sphinktop.pippiandcarlos.com[192.168.1.12]
Aug 12 11:00:11 ns postfix/smtpd[915]: Anonymous TLS connection established from sphinktop.pippiandcarlos.com[192.168.1.12]: TLSv1 with cipher DHE-RSA-ES128-SHA (128/128 bits)
Aug 12 11:00:11 ns postfix/smtpd[915]: lost connection after STARTTLS from sphinktop.pippiandcarlos.com[192.168.1.12]
Aug 12 11:00:11 ns postfix/smtpd[915]: disconnect from sphinktop.pippiandcarlos.com[192.168.1.12]


Reproducible: Always




My .wl file:

;; Big Brother Database
(require 'bbdb-wl)
(bbdb-wl-setup)
(setq bbdb-use-pop-up t)
(setq bbdb/mail-auto-create-p t)
(setq bbdb-wl-ignore-folder-regexp "^@")
(setq signature-use-bbdb t)
(setq wl-summary-from-function 'bbdb-wl-from-func)
(add-hook 'bbdb-notice-hook 'bbdb-auto-notes-hook)
(setq bbdb-auto-notes-alist '(("X-ML-Name" (".*$" ML 0))))

;; spam filtering
(setq elmo-spam-scheme 'sa)
(require 'wl-spam)
(setq wl-spam-auto-check-folder-regexp-list '("\\+INBOX"))
(setq wl-spam-folder "\\+INBOX.spam")

;; ldap
(setq wl-use-ldap t)
(setq wl-ldap-base "dc=pippiandcarlos,dc=com")
(setq wl-ldap-port 389)
(setq wl-ldap-server "ldap.pippiandcarlos.com")

;; smtp
(setq wl-smtp-authenticate-type "plain")
(setq wl-smtp-connection-type 'starttls)
(setq wl-smtp-posting-server "mail.pippiandcarlos.com")
(setq wl-smtp-posting-user "ckonstanski@pippiandcarlos.com")

;; summary
(setq elmo-imap4-default-server "mail.pippiandcarlos.com")
(setq elmo-imap4-default-port 993)
(setq elmo-imap4-default-stream-type 'ssl)
(setq elmo-imap4-default-user "ckonstanski@pippiandcarlos.com")
(setq elmo-imap4-default-authenticate-type 'login)
(setq wl-auto-prefetch-first t)
(setq wl-auto-select-first t)
(setq wl-auto-select-next t)
(setq wl-biff-check-folder-list '("%INBOX:ckonstanski@pippiandcarlos.com/login@mail.pippiandcarlos.com:993!"))
(setq wl-biff-check-interval 300)
(setq wl-default-sync-range "all")
(setq wl-force-fetch-folders t)
(setq wl-message-scroll-amount 3)
(setq wl-summary-width nil)

;; draft
(setq wl-draft-sendlog-max-size nil)
(setq wl-fcc "%INBOX.Sent:ckonstanski@pippiandcarlos.com/login@mail.pippiandcarlos.com:993!")
(setq wl-forward-subject-prefix "Fwd: ")

;; extras
(setq wl-demo nil)
(setq wl-demo-display-logo nil)
Comment 1 Carlos Konstanski 2009-08-12 19:40:58 UTC
Using a plaintext SMTP server, wanderlust works normally.  Here's the smtp config:

(setq wl-smtp-authenticate-type "login")
(setq wl-smtp-connection-type 'nil)
(setq wl-smtp-posting-server "hlymx.powereng.com")
(setq wl-smtp-posting-user "ckonstanski")
Comment 2 Ulrich Müller gentoo-dev 2009-08-13 10:49:11 UTC
Is this still an issue with wanderlust-2.15.5_pre20071215?
Comment 3 Ulrich Müller gentoo-dev 2009-08-28 21:57:34 UTC
> Is this still an issue with wanderlust-2.15.5_pre20071215?

No answer. RESOLVED NEEDINFO.