我可以檢索電子郵件並瀏覽各種文件夾。但是,由於證書錯誤,我無法發送任何電子郵件(如下所述)。互聯網上的一些配置提供了一個到cert文件的路徑,但是OSX使用了一個keychain。我在Google上沒有發現任何描述如何爲OSX(Mountain Lion)設置的內容。任何幫助將不勝感激。流浪 - OSX - Emacs - SMTP認證失敗
[我not
使用Gmail]
Internet上的其他用戶都引用配置與此類似:(setq ssl-program-name "gnutls-cli" ssl-program-arguments '("--port" service "--insecure" "--x509cafile" "/etc/ssl/certs/ca-certificates.crt" host))
然而,對OSX證書沒有這樣的文件位置由於鑰匙扣使用。我認爲這是問題,但我不完全確定。
我在與GNU電子郵件相同的問題,和文檔指出:
The SMTP server may also request that you verify your identity by sending a certificate and the associated encryption key to the server. If you need to do this, you can use an ~/.authinfo entry like this:
machine mail.example.org port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
這是我目前的配置:
(setq ssl-program-name "/absolute/path/to/gnutls-cli"
ssl-program-arguments '("--insecure" "-p" service host)
ssl-certificate-verification-policy 1)
(autoload 'wl "wl" "Wanderlust" t)
(autoload 'wl-other-frame "wl" "Wanderlust on new frame." t)
(autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t)
;; IMAP
(setq elmo-imap4-default-server "mail.mydomain.com")
(setq elmo-imap4-default-user "myusername")
(setq elmo-imap4-default-authenticate-type 'login)
(setq elmo-imap4-default-port '993)
(setq elmo-imap4-default-stream-type 'ssl)
(setq elmo-imap4-use-modified-utf7 t)
;; SMTP
(setq wl-smtp-connection-type 'starttls)
(setq wl-smtp-posting-port 587)
(setq wl-smtp-authenticate-type "login")
(setq wl-smtp-posting-user "myusername")
(setq wl-smtp-posting-server "mail.mydomain.com")
(setq wl-local-domain "mydomain.com")
(setq wl-default-folder "%INBOX")
(setq wl-default-spec "%")
;; (setq wl-draft-folder "%Drafts")
(setq wl-trash-folder "%Trash")
(setq wl-folder-check-async t)
(setq elmo-imap4-use-modified-utf7 t)
(autoload 'wl-user-agent-compose "wl-draft" nil t)
(if (boundp 'mail-user-agent)
(setq mail-user-agent 'wl-user-agent))
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent
'wl-user-agent
'wl-user-agent-compose
'wl-draft-send
'wl-draft-kill
'mail-send-hook))
This i發送電子郵件時,S上的錯誤消息:
*** Starting TLS handshake
- Certificate type: X.509
- Got a certificate list of 2 certificates.
- Certificate[0] info:
- subject `OU=Domain Control Validated,CN=*.liquidweb.com', issuer `C=BE,O=GlobalSign nv-sa,CN=GlobalSign Domain Validation CA - G2', RSA key 2048 bits, signed using RSA-SHA1, activated `2013-02-22 16:03:14 UTC', expires `2018-02-22 16:03:14 UTC', SHA-1 fingerprint `f9926583e10585ca301bec7ec8d36d7e4573750d'
Public Key Id:
3ff7ead3d8a2be6cf1e48d072a5be80afe5183de
Public key's random art:
+--[ RSA 2048]----+
| |
| |
| |
| . |
| . S |
| . o +. o |
| . o E +*.B |
| . . o.oooB.= |
| ..o.o==+o=. |
+-----------------+
- Certificate[1] info:
- subject `C=BE,O=GlobalSign nv-sa,CN=GlobalSign Domain Validation CA - G2', issuer `C=BE,O=GlobalSign nv-sa,OU=Root CA,CN=GlobalSign Root CA', RSA key 2048 bits, signed using RSA-SHA1, activated `2011-04-13 10:00:00 UTC', expires `2022-04-13 10:00:00 UTC', SHA-1 fingerprint `0481c8ca31be0fa940c7e0ccd572374eadf52b73'
- Status: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected.
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
byte-code: Wrong type argument: arrayp, nil
我想我已經使用'(setq ssl-program-name「openssl s_client -ssl2 -connect%s:%p」)',而不是guntls。我會在12至24小時內彙報。我需要在Snow Leopard上測試它,但它似乎適用於Mountain Lion。我正在使用fcc選項將副本放在發送的文件夾中,如果我查看它,它似乎會在服務器上留下一個副本,因此它在讀取電子郵件方面是IMAP而不是pop。 – lawlist
有同樣的問題,但不幸的是,即使在更改ssl-program-name爲openssl後也沒有幫助。你有沒有找到其他解決方案? –
我剛剛爲我的當前Liquidweb共享服務器的工作設置添加了一個示例答案。我修改了'.../lisp/net/tls.el'來刪除一些gnutls-cli行,並保留'openssl s_client -connect mail.mydomain.com:993 -no_ssl2 -ign_eof',這避免了嘗試使用gnutls -cli配置 - 但是,這不是必需的 - 它只是節省了登錄時間並消除了消息緩衝區中的錯誤消息。請注意,如果它們存在,則需要在您的.emacs文件中發生衝突的其他gnus設置註釋掉。 – lawlist