* What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer @ 2012-11-01 23:22 B. T. Raven 2012-11-02 2:15 ` William Gardella 0 siblings, 1 reply; 5+ messages in thread From: B. T. Raven @ 2012-11-01 23:22 UTC (permalink / raw) To: help-gnu-emacs I tried to sent bug report directly thru emacs ... menu>help>Send bug report.... and saw this in *Messages* buffer: ...... Sending... Sending via mail... open-network-stream: make client process failed: connection timed out, :name, SMTP, :buffer, *trace of SMTP session to smtp.gmail.com*, :host, smtp.gmail.com, :service, 25 ...... So I copy pasted the relevant stuff out of the Emacs mail buffer into Thunderbird and sent it that way. What would I have to to my .emacs to make the process work directly from Emacs. Ed ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer 2012-11-01 23:22 What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer B. T. Raven @ 2012-11-02 2:15 ` William Gardella 2012-11-02 20:30 ` B. T. Raven 0 siblings, 1 reply; 5+ messages in thread From: William Gardella @ 2012-11-02 2:15 UTC (permalink / raw) To: help-gnu-emacs Ed, "B. T. Raven" <btraven@nihilo.net> writes: > I tried to sent bug report directly thru emacs ... menu>help>Send bug > report.... and saw this in *Messages* buffer: > > ...... > Sending... > Sending via mail... > open-network-stream: make client process failed: connection timed out, > :name, SMTP, :buffer, *trace of SMTP session to smtp.gmail.com*, :host, > smtp.gmail.com, :service, 25 > > ...... > > > So I copy pasted the relevant stuff out of the Emacs mail buffer into > Thunderbird and sent it that way. What would I have to to my .emacs to > make the process work directly from Emacs. You'd need to have a working SMTP configuration for Emacs. At a guess, this didn't work on this occasion because it was trying to use a (maybe unencrypted) connection to gmail at port 25 (the sendmail port), when gmail probably expects a TLS connection to port 587 (the mail submission port). Have a look at (info "(smtpmail) Emacs Speaks SMTP"), (info "(smtpmail) Authentication"), and (info "(smtpmail) Encryption") which cover the builtin Emacs `smptmail' library. If you have a properly configured MTA on your system, Emacs can use that instead, e.g. with (setq message-send-mail-function 'sendmail-send-it). The `message' library used to compose Emacs bug reports is the same as that used to compose messages in Gnus and other Emacs mail and news clients, so if you were able to get this working, you'd be a signifcant part of the way toward trying to do your mail from Emacs. :) Hope this helps, WGG -- I use grml (http://grml.org/) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer 2012-11-02 2:15 ` William Gardella @ 2012-11-02 20:30 ` B. T. Raven 2012-11-02 22:03 ` William Gardella 0 siblings, 1 reply; 5+ messages in thread From: B. T. Raven @ 2012-11-02 20:30 UTC (permalink / raw) To: help-gnu-emacs > Ed, > > "B. T. Raven" <btraven@nihilo.net> writes: > >> I tried to sent bug report directly thru emacs ... menu>help>Send bug >> report.... and saw this in *Messages* buffer: >> >> ...... >> Sending... >> Sending via mail... >> open-network-stream: make client process failed: connection timed out, >> :name, SMTP, :buffer, *trace of SMTP session to smtp.gmail.com*, :host, >> smtp.gmail.com, :service, 25 >> >> ...... >> >> >> So I copy pasted the relevant stuff out of the Emacs mail buffer into >> Thunderbird and sent it that way. What would I have to to my .emacs to >> make the process work directly from Emacs. > > You'd need to have a working SMTP configuration for Emacs. At a guess, > this didn't work on this occasion because it was trying to use a (maybe > unencrypted) connection to gmail at port 25 (the sendmail port), when > gmail probably expects a TLS connection to port 587 (the mail submission > port). Have a look at (info "(smtpmail) Emacs Speaks SMTP"), (info > "(smtpmail) Authentication"), and (info "(smtpmail) Encryption") which > cover the builtin Emacs `smptmail' library. Thanks, William. I will reread that info section before I try to mail through Emacs again. I'm sure that the port assignment is at least part of the problem. My Tbird client is using port 995 on pop.gmail.com server for TLS and 465 for outgoing smtp. This is the relevant section in .emacs: (setq smtpmail-default-smtp-server "smtp.gmail.com") (setq smtpmail-local-domain "gmail.com") ;; was nil ??? (setq send-mail-function 'smtpmail-send-it) (setq smtpmail-smtp-service 465) ;;; port assigned in Tbird outgoing ;;; server (smtp) (load-library "smtpmail") (setenv "MAILHOST" "pop.gmail.com") ;;; ^^ the above doesn't seem to change the w64 env as revealed by the set command or in Control Panel > System My isp uses gmail for spam filtering and my normal email is not a ...@gmail.com but one from my isp. If I wanted to point to port 995 instead of 25, where would that go in my .emacs? > > If you have a properly configured MTA on your system, Emacs can use that > instead, e.g. with (setq message-send-mail-function 'sendmail-send-it). I thought mta's were like postfix, exim, etc. > > The `message' library used to compose Emacs bug reports is the same as > that used to compose messages in Gnus and other Emacs mail and news > clients, so if you were able to get this working, you'd be a signifcant > part of the way toward trying to do your mail from Emacs. :) I tried to get gnus working quite a while ago but gave up due to the steep learning curve. I still have this Gnu's relevant stuff in my .emacs but unfortunately I don't understand it (especially where load-library should be called): (setq gnus-posting-styles '( ((message-news-p) (address "btraven@nihilo.net") ;; bogus address (name "B.T. Raven")) ((message-mail-p) (address "e@s.net") (name "Ed C.")) ) ) (setq user-full-name "Ed C.") (setq user-mail-address "e@s.net") (setq rmail-primary-inbox-list '("e@s.net") rmail-pop-password-required t) (setq gnus-check-new-newsgroups nil) (load-library "message") (setq message-send-mail-function 'smtpmail-send-it) Anyway, thanks again. I'll keep trying to get gnus working again (someday). Ed > > Hope this helps, > WGG > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer 2012-11-02 20:30 ` B. T. Raven @ 2012-11-02 22:03 ` William Gardella 2012-11-03 0:56 ` B. T. Raven 0 siblings, 1 reply; 5+ messages in thread From: William Gardella @ 2012-11-02 22:03 UTC (permalink / raw) To: help-gnu-emacs Hi Ed, "B. T. Raven" <btraven@nihilo.net> writes: > Thanks, William. I will reread that info section before I try to mail > through Emacs again. I'm sure that the port assignment is at least part > of the problem. My Tbird client is using port 995 on pop.gmail.com > server for TLS and 465 for outgoing smtp. This is the relevant section > in .emacs: > > > (setq smtpmail-default-smtp-server "smtp.gmail.com") > (setq smtpmail-local-domain "gmail.com") ;; was nil ??? > (setq send-mail-function 'smtpmail-send-it) > (setq smtpmail-smtp-service 465) ;;; port assigned in Tbird outgoing ;;; > server (smtp) > (load-library "smtpmail") `smtpmail-local-domain' does not need to be set. (you do, however, need to set `smtpmail-smtp-server'. > (setenv "MAILHOST" "pop.gmail.com") > ;;; ^^ the above doesn't seem to change the w64 env as revealed by the > set command or in Control Panel > System That setting is not exported to your w64 environment. It should be exported to anything run under Emacs, however. > My isp uses gmail for spam filtering and my normal email is not a > ...@gmail.com but one from my isp. If I wanted to point to port 995 > instead of 25, where would that go in my .emacs? The exact line for the pop setting would depend on what mail client you're using (Rmail, Gnus, Mew, Wanderlust, etc.). smtpmail.el only handles the outgoing end of things; it's modular and can be used with many different Elisp programs for *reading* the mail. > I thought mta's were like postfix, exim, etc. Yes, those are big sophisticated MTAs. There are also simpler examples, such as msmtp, nullmailer, etc. that are strictly to forward outgoing messages to an SMTP server. For submission of outgoing mail, MTAs of both kinds provide a replacement for the (now deprecated) "sendmail" program, which is what I was talking about there. Emacs can leverage that, just as other mailers like Mutt do. > I tried to get gnus working quite a while ago but gave up due to the > steep learning curve. I still have this Gnu's relevant stuff in my > .emacs but unfortunately I don't understand it (especially where > load-library should be called): > > (setq gnus-posting-styles > '( > ((message-news-p) > (address "btraven@nihilo.net") ;; bogus address > (name "B.T. Raven")) > ((message-mail-p) > (address "e@s.net") > (name "Ed C.")) ) ) > > (setq user-full-name "Ed C.") > (setq user-mail-address "e@s.net") > > (setq rmail-primary-inbox-list > '("e@s.net") rmail-pop-password-required t) > (setq gnus-check-new-newsgroups nil) > (load-library "message") > (setq message-send-mail-function 'smtpmail-send-it) This snippet is a somewhat confusing hybrid of setting up Rmail and setting up Gnus. It doesn't look quite complete for either. :) The placement of the library load for message is not especially important. In fact, here (Gnus 5.13/Emacs 24.2.1 on Debian GNU/Linux), I never explicitly load message in my .emacs. (It does already have some autoloads in your site init file, since message is part of the default Emacs distribution). For a setup like this, using POP, you might look at this as a basis and make modifications to your local setup as needed: http://eschulte.me/emacs24-starter-kit/starter-kit-gnus.html Hope this clarifies some things, WGG -- I use grml (http://grml.org/) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer 2012-11-02 22:03 ` William Gardella @ 2012-11-03 0:56 ` B. T. Raven 0 siblings, 0 replies; 5+ messages in thread From: B. T. Raven @ 2012-11-03 0:56 UTC (permalink / raw) To: help-gnu-emacs > Hi Ed, Thanks, William. If you have time, have a look at some additional queries below. > > "B. T. Raven" <btraven@nihilo.net> writes: > >> Thanks, William. I will reread that info section before I try to mail >> through Emacs again. I'm sure that the port assignment is at least part >> of the problem. My Tbird client is using port 995 on pop.gmail.com >> server for TLS and 465 for outgoing smtp. This is the relevant section >> in .emacs: >> >> >> (setq smtpmail-default-smtp-server "smtp.gmail.com") >> (setq smtpmail-local-domain "gmail.com") ;; was nil ??? >> (setq send-mail-function 'smtpmail-send-it) >> (setq smtpmail-smtp-service 465) ;;; port assigned in Tbird outgoing ;;; >> server (smtp) >> (load-library "smtpmail") > > `smtpmail-local-domain' does not need to be set. (you do, however, need > to set `smtpmail-smtp-server'. O.K. I had already specified the default but now I added that one too and deleted the line referring to local-domain. > >> (setenv "MAILHOST" "pop.gmail.com") >> ;;; ^^ the above doesn't seem to change the w64 env as revealed by the >> set command or in Control Panel > System > > That setting is not exported to your w64 environment. It should be > exported to anything run under Emacs, however. That clears up that mystery. > >> My isp uses gmail for spam filtering and my normal email is not a >> ...@gmail.com but one from my isp. If I wanted to point to port 995 >> instead of 25, where would that go in my .emacs? > > The exact line for the pop setting would depend on what mail client > you're using (Rmail, Gnus, Mew, Wanderlust, etc.). smtpmail.el only > handles the outgoing end of things; it's modular and can be used with > many different Elisp programs for *reading* the mail. > >> I thought mta's were like postfix, exim, etc. > > Yes, those are big sophisticated MTAs. There are also simpler examples, > such as msmtp, nullmailer, etc. that are strictly to forward outgoing > messages to an SMTP server. For submission of outgoing mail, MTAs of > both kinds provide a replacement for the (now deprecated) "sendmail" > program, which is what I was talking about there. Emacs can leverage > that, just as other mailers like Mutt do. For my purposes, I think my MUA is Mozilla Thunderbird (what this is sent through). Is that inappropriate terminology? Isn't the MTA just built into that? > >> I tried to get gnus working quite a while ago but gave up due to the >> steep learning curve. I still have this Gnu's relevant stuff in my >> .emacs but unfortunately I don't understand it (especially where >> load-library should be called): >> >> (setq gnus-posting-styles >> '( >> ((message-news-p) >> (address "btraven@nihilo.net") ;; bogus address >> (name "B.T. Raven")) >> ((message-mail-p) >> (address "e@s.net") >> (name "Ed C.")) ) ) >> >> (setq user-full-name "Ed C.") >> (setq user-mail-address "e@s.net") >> >> (setq rmail-primary-inbox-list >> '("e@s.net") rmail-pop-password-required t) >> (setq gnus-check-new-newsgroups nil) >> (load-library "message") >> (setq message-send-mail-function 'smtpmail-send-it) > > This snippet is a somewhat confusing hybrid of setting up Rmail and > setting up Gnus. It doesn't look quite complete for either. :) > > The placement of the library load for message is not especially > important. In fact, here (Gnus 5.13/Emacs 24.2.1 on Debian GNU/Linux), > I never explicitly load message in my .emacs. (It does already have > some autoloads in your site init file, since message is part of the > default Emacs distribution). I am still on ver 23.3 and I don't think I ever used a site init file. Everything's in .emacs > > For a setup like this, using POP, you might look at this as a basis and > make modifications to your local setup as needed: > http://eschulte.me/emacs24-starter-kit/starter-kit-gnus.html Thanks for this. It seems to be geared more to a Linux box though. For example what's "config" at the beginning of this code under Gmail Setup at the above link?: (let ((email (second (first config))) (passwd (second (second config)))) ..... Also, what is called here "your-gmail-email-address" doesn't include "gmail;" it's just my isp assigned email that uses the pop.gmail.com and smtp.gmail.com servers. Does the fact that I'm not using Emacs on Linux require some tweaking here? > > Hope this clarifies some things, It certainly indicates that gnus is over my head. I think I had rmail working once at least for test purposes. I'll try that again. It should be good enough to send bug and documentation typo reports. Thanks again. Ed > WGG > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-03 0:56 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-01 23:22 What's needed in .emacs on w32 build to send bug report thru the *mail-to- bug-gnu-emacs@gnu.org* buffer B. T. Raven 2012-11-02 2:15 ` William Gardella 2012-11-02 20:30 ` B. T. Raven 2012-11-02 22:03 ` William Gardella 2012-11-03 0:56 ` B. T. Raven
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.