I am able to read gmail in gnus, but, after several hours of trying, am still not able to send gmail via gnus.
I have searched extensively here and elsewhere, and have tried many configurations, including ports 465 and 587. I am using a ~/.authinfo
file with application-specific passwords, currently with this configuration. I have gnutls-cli
installed.
When I try to send gmail, Emacs reports "Sending via mail..." and then appears to hang/wait for a long time. After a while, focus returns to the draft email. The "trace of SMTP session to smtp.gmail.com" is empty.
Update: Current configuration:
~/.authinfo
machine imap.gmail.com login [email protected] password ApplicationSpecificPassword port imaps
machine smtp.gmail.com login [email protected] password ApplicationSpecificPassword port 465 ; have tried 587
~/.profile
export EMAIL="[email protected]"
export NAME="My Name"
export SMTPSERVER="smtp.gmail.com"
~/.gnus
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port "imaps")
(nnimap-stream ssl)))
(setq
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
user-mail-address "[email protected]"
smtpmail-starttls-credentials '(("smtp.gmail.com" 465 nil nil)) ; tried 587
smtpmail-auth-credentials (expand-file-name "~/.authinfo")
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 465 ; tried 587
smtpmail-debug-info t ; where is this output?
starttls-extra-arguments nil
starttls-gnutls-program "/usr/bin/gnutls-cli" ; executable, correct path
starttls-extra-arguments nil
starttls-use-gnutls t
smtpmail-local-domain "my.dotted.ip.address"
)
smtpmail-debug-info
tot
? Also, what version of Emacs are you using? Is it compiled against GnuTLS? You can check withM-: (gnutls-available-p)
, which will showt
ornil
.t
).machine 12.34.56.789 login myusername password mypassport port ssh
See the documentation regarding deprecation ofsmtpmail-auth-credentials
: gnu.org/software/emacs/manual/html_node/smtpmail/…