wanderlust: condition-case: make client process failed: Connection refused

C-c C-s 发送邮件时提示我smtp有问题:

condition-case: make client process failed: Connection refused, :name, SMTP, :buffer, *trace of SMTP session to localhost*, :host, localhost, :service, smtp, :nowait, nil, :tls-parameters, nil
make client process failed: Connection refused, :name, SMTP, :buffer, *trace of SMTP session to localhost*, :host, localhost, :service, smtp, :nowait, nil, :tls-parameters, nil [2 times]

以下是我的wanderlust配置:

(setq wl-user-mail-address-list (quote ("[email protected]" "[email protected]")))

(setq wl-draft-config-alist
      '(((string-match "uniontech.com" wl-draft-parent-folder)
         (template . "uniontech"))
        ((string-match "mail.privateemail.com" wl-draft-parent-folder)
         (template . "firstlove.life"))
        ;; automatic for replies
        (reply "\\(To\\|Cc\\|Delivered-To\\): uniontech"
               (template . "uniontech"))
        (reply "\\(To\\|Cc\\|Delivered-To\\): firstlove.life"
               (template . "firstlove.life"))))

(setq wl-template-alist
      '(("uniontech"
         (wl-smtp-posting-port . 25)
         (wl-from . "Li Chen <[email protected]>")
         (wl-smtp-authenticate-type . "plain")
         (wl-smtp-posting-user "[email protected]")
         (wl-smtp-posting-server "smtp.263.net")
         (wl-local-domain "uniontech.com")
         (wl-message-id-domain "smtp.263.net")
         )
        ("firstlove.life"
         ("Fcc" . "%INBOX.Sent:\"[email protected]\"/[email protected]")
         (wl-from . "陈力 <[email protected]>")
         (wl-smtp-posting-user . "[email protected]")
         (wl-smtp-connection-type 'ssl)
         (wl-smtp-authenticate-type . "plain")
         (wl-smtp-posting-server . "mail.privateemail.com")
         (wl-local-domain . "mail.privateemail.com"))
         (wl-smtp-posting-port . 465)
        ))
%inbox:"[email protected]"/[email protected]:143  "uniontech Mail"
%inbox:"[email protected]"/[email protected]:993!  "privatemail"

接收没有问题,端口也应该没有问题。uniontech这个邮箱是没有用加密的

试下先C-c C-j选择一下发件邮箱?似乎默认会用本地的stmp,不知道是bug还是设置问题

--header separater--

*WL-Template*

您那边C-c C-j对应的命令是啥?我这里命令是wl-template-select 它弹出来了个*WL-Template* buffer,, 应该不是用来选择邮箱的吧

就是wl-template-select,然后右下角会标记具体用哪个template(毕竟邮箱设置就是template)

奇怪,我这边没有内容

(setq
 wl-smtp-posting-port 25
 wl-from "Li Chen <[email protected]>"
 wl-smtp-authenticate-type "login"
 wl-smtp-posting-user "chenli"
 wl-smtp-posting-server "smtp.263.net"
 wl-local-domain "uniontech.com"
 wl-message-id-domain "smtp.263.net")
%inbox:"[email protected]"/[email protected]:143  "uniontech Mail"

换成了最小配置,wl-smtp-authenticate-type几种类型都试了,还是不行。 但是thunderbird用这个端口就能发件,奇怪

你指定了用 login 方法,那设置了密码么?

我试过将wl-smtp-authenticate-type设置了nil(以及不设置,及默认nil),然后用邮箱的登录密码,但是auth failed,然后我去试的login方法,不过我不是理解login这个wl-smtp-authenticate-type是否需要设置其他密码。

 ;;; ~/.config/doom/wl.el -*- lexical-binding: t; -*-
 
+(setq wl-smtp-connection-type 'nil)
+(setq wl-smtp-posting-port 25)
+(setq wl-smtp-authenticate-type "plain")
+(setq wl-smtp-posting-user "[email protected]")
+(setq wl-smtp-posting-server "smtp.263.net")
+(setq wl-local-domain "uniontech.com")
 
 ;; (setq
 ;;  wl-smtp-connection-type 'ssl
 ;;  wl-smtp-posting-port 465
-;;  wl-smtp-authenticate-type "login"
+;;  wl-smtp-authenticate-type "plain"
 ;;  wl-smtp-posting-user "chenli"
 ;;  wl-smtp-posting-server "mail.privateemail.com"
 ;;  wl-local-domain "privateemail.com"
@@ -13,7 +19,6 @@
 ;; 更加复杂的多账号设置
 (setq wl-user-mail-address-list (quote ("[email protected]" "[email protected]")))
 
-;;(NOTE: "M-: wl-draft-parent-folder" => %INBOX:myname/[email protected]:993)
 (setq wl-draft-config-alist
       '(((string-match "uniontech.com" wl-draft-parent-folder)
          (template . "uniontech"))
@@ -25,16 +30,15 @@
         (reply "\\(To\\|Cc\\|Delivered-To\\): firstlove.life"
                (template . "firstlove.life"))))
 
-;;choose template with C-c C-j
 (setq wl-template-alist
       '(("uniontech"
+         (wl-smtp-connection-type . 'nil)
          (wl-smtp-posting-port . 25)
-         (wl-from . "陈力 <[email protected]>")
          (wl-smtp-authenticate-type . "plain")
-         (wl-smtp-posting-user "[email protected]")
-         (wl-smtp-posting-server "smtp.263.net")
-         (wl-local-domain "uniontech.com")
-         (wl-message-id-domain "smtp.263.net")
+         (wl-smtp-posting-user . "[email protected]")
+         (wl-smtp-posting-server . "smtp.263.net")
+         (wl-local-domain . "uniontech.com")
+
          )
         ("firstlove.life"
          ("Fcc" . "%INBOX.Sent:\"[email protected]\"/[email protected]")
@@ -44,5 +48,5 @@
          (wl-smtp-authenticate-type . "plain")
          (wl-smtp-posting-server . "mail.privateemail.com")
          (wl-local-domain . "mail.privateemail.com"))
-         (wl-smtp-posting-port . 465)
+        (wl-smtp-posting-port . 465)
         ))

我没有设置全局的 wl-smtp-posting-port等变量,所以wl-draft在send时这些值都是nil