* Mail Authentication
@ 2003-12-18 16:35 gebser
0 siblings, 0 replies; 10+ messages in thread
From: gebser @ 2003-12-18 16:35 UTC (permalink / raw)
Finally I got emacs' mail working... to a degree. I can send mail with
it, but only to users on the same machine. If I try to send outside
(via my ISP), I get nothing. That is to say, I know that emacs is
connecting to the ISP and handing off the email, but it never gets
delivered. I suspect that the ISP is simply tossing it out due to lack
of authentication from me. I found a couple functions alleged to remedy
that:
;; Authenticate using this username and password against my server.
(setq smtpmail-auth-credentials
'(("hostname" "port" "username" "password")))
;; Use STARTTLS without authentication against the server.
(setq smtpmail-starttls-credentials
'(("hostname" "port" nil nil)))
For "hostname" I don't know whether to fill in my (the local machine's)
hostname (just the hostname or host.domain.com?) or that of my ISP, or
the one in one function and the other in the second function.
Also, I use a couple different email addresses (usernames and passwords)
on the same ISP-- how would I handle that in (setq
smtpmail-auth-credentials ...)?
Docs, manpages, and the web all give me nothing. Has anyone set this up
before? If so, tips and clues much appreciated.
tia,
ken
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
[not found] <mailman.273.1071769083.868.help-gnu-emacs@gnu.org>
@ 2003-12-18 17:18 ` Harald Maier
2003-12-18 20:03 ` Marcelo Toledo
2003-12-18 18:06 ` Kevin Rodgers
1 sibling, 1 reply; 10+ messages in thread
From: Harald Maier @ 2003-12-18 17:18 UTC (permalink / raw)
gebser@speakeasy.net writes:
> Finally I got emacs' mail working... to a degree. I can send mail with
> it, but only to users on the same machine. If I try to send outside
> (via my ISP), I get nothing. That is to say, I know that emacs is
> connecting to the ISP and handing off the email, but it never gets
> delivered. I suspect that the ISP is simply tossing it out due to lack
> of authentication from me. I found a couple functions alleged to remedy
> that:
>
> ;; Authenticate using this username and password against my server.
> (setq smtpmail-auth-credentials
> '(("hostname" "port" "username" "password")))
> ;; Use STARTTLS without authentication against the server.
> (setq smtpmail-starttls-credentials
> '(("hostname" "port" nil nil)))
>
>
> For "hostname" I don't know whether to fill in my (the local machine's)
> hostname (just the hostname or host.domain.com?) or that of my ISP, or
> the one in one function and the other in the second function.
Here an example that works (although it is in comments):
;; (setq smtpmail-auth-credentials
;; '(
;; ("auth.mail.onlinehome.de" 25 "cc35217168-1" "xxxxxx")
;; ))
The hostname is the system name of your provider smtp (outgoing)
mailserver.
> Also, I use a couple different email addresses (usernames and passwords)
> on the same ISP-- how would I handle that in (setq
> smtpmail-auth-credentials ...)?
I have not tried it by myself but I think if it is a valid user name
at your ISP then you should be able to use it.
Harald
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
[not found] <mailman.273.1071769083.868.help-gnu-emacs@gnu.org>
2003-12-18 17:18 ` Harald Maier
@ 2003-12-18 18:06 ` Kevin Rodgers
2003-12-18 20:47 ` gebser
2003-12-19 8:13 ` Norbert Kaufmann
1 sibling, 2 replies; 10+ messages in thread
From: Kevin Rodgers @ 2003-12-18 18:06 UTC (permalink / raw)
gebser@speakeasy.net wrote:
> Finally I got emacs' mail working... to a degree. I can send mail with
> it, but only to users on the same machine. If I try to send outside
> (via my ISP), I get nothing. That is to say, I know that emacs is
> connecting to the ISP and handing off the email, but it never gets
> delivered. I suspect that the ISP is simply tossing it out due to lack
> of authentication from me.
What does the *trace of SMTP session to foo* buffer contain (where foo is the
value of smtpmail-smtp-server)?
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
2003-12-18 17:18 ` Harald Maier
@ 2003-12-18 20:03 ` Marcelo Toledo
0 siblings, 0 replies; 10+ messages in thread
From: Marcelo Toledo @ 2003-12-18 20:03 UTC (permalink / raw)
Just remember that port has no "'s. It must be written 25 and not "25".
Harald Maier <harald@maierh.de> writes:
> gebser@speakeasy.net writes:
>
>> Finally I got emacs' mail working... to a degree. I can send mail with
>> it, but only to users on the same machine. If I try to send outside
>> (via my ISP), I get nothing. That is to say, I know that emacs is
>> connecting to the ISP and handing off the email, but it never gets
>> delivered. I suspect that the ISP is simply tossing it out due to lack
>> of authentication from me. I found a couple functions alleged to remedy
>> that:
>>
>> ;; Authenticate using this username and password against my server.
>> (setq smtpmail-auth-credentials
>> '(("hostname" "port" "username" "password")))
>> ;; Use STARTTLS without authentication against the server.
>> (setq smtpmail-starttls-credentials
>> '(("hostname" "port" nil nil)))
>>
>>
>> For "hostname" I don't know whether to fill in my (the local machine's)
>> hostname (just the hostname or host.domain.com?) or that of my ISP, or
>> the one in one function and the other in the second function.
>
> Here an example that works (although it is in comments):
>
> ;; (setq smtpmail-auth-credentials
> ;; '(
> ;; ("auth.mail.onlinehome.de" 25 "cc35217168-1" "xxxxxx")
> ;; ))
>
> The hostname is the system name of your provider smtp (outgoing)
> mailserver.
>
>> Also, I use a couple different email addresses (usernames and passwords)
>> on the same ISP-- how would I handle that in (setq
>> smtpmail-auth-credentials ...)?
>
> I have not tried it by myself but I think if it is a valid user name
> at your ISP then you should be able to use it.
>
> Harald
--
Marcelo Toledo
marcelo@marcelotoledo.org
http://www.marcelotoledo.org
Mobile: 55 71 9141-7181
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
2003-12-18 18:06 ` Kevin Rodgers
@ 2003-12-18 20:47 ` gebser
2003-12-18 20:53 ` gebser
2003-12-19 8:13 ` Norbert Kaufmann
1 sibling, 1 reply; 10+ messages in thread
From: gebser @ 2003-12-18 20:47 UTC (permalink / raw)
At 11:06 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
= gebser@speakeasy.net wrote:
=
= > Finally I got emacs' mail working... to a degree. I can send mail with
= > it, but only to users on the same machine. If I try to send outside
= > (via my ISP), I get nothing. That is to say, I know that emacs is
= > connecting to the ISP and handing off the email, but it never gets
= > delivered. I suspect that the ISP is simply tossing it out due to lack
= > of authentication from me.
=
=
= What does the *trace of SMTP session to foo* buffer contain (where foo is the
= value of smtpmail-smtp-server)?
Though I have
(setq tramp-verbose 10)
(setq tramp-debug-buffer t)
in my .emacs, it isn't regularly producing the trace. It has done it
twice over the past couple of weeks, it seems only for the first time
after emacs is loaded. Do I have to exit and then (re)start emacs each
time I want the trace output?
thanks,
ken
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
2003-12-18 20:47 ` gebser
@ 2003-12-18 20:53 ` gebser
0 siblings, 0 replies; 10+ messages in thread
From: gebser @ 2003-12-18 20:53 UTC (permalink / raw)
At 15:47 (UTC-0500) on Thu, 18 Dec 2003 gebser@speakeasy.net said:
= At 11:06 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
=
= = gebser@speakeasy.net wrote:
= =
= = > Finally I got emacs' mail working... to a degree. I can send mail with
= = > it, but only to users on the same machine. If I try to send outside
= = > (via my ISP), I get nothing. That is to say, I know that emacs is
= = > connecting to the ISP and handing off the email, but it never gets
= = > delivered. I suspect that the ISP is simply tossing it out due to lack
= = > of authentication from me.
= =
= =
= = What does the *trace of SMTP session to foo* buffer contain (where foo is the
= = value of smtpmail-smtp-server)?
=
= Though I have
=
= (setq tramp-verbose 10)
= (setq tramp-debug-buffer t)
Sorry-- I cut-n-pasted the wrong lines. This is what I have:
(smtpmail-debug-info t)
+++ I'm trying to debug a lot of stuff +++
=
= in my .emacs, it isn't regularly producing the trace. It has done it
= twice over the past couple of weeks, it seems only for the first time
= after emacs is loaded. Do I have to exit and then (re)start emacs each
= time I want the trace output?
=
=
= thanks,
= ken
=
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
[not found] <mailman.303.1071784651.868.help-gnu-emacs@gnu.org>
@ 2003-12-18 23:44 ` Kevin Rodgers
2003-12-19 3:13 ` gebser
0 siblings, 1 reply; 10+ messages in thread
From: Kevin Rodgers @ 2003-12-18 23:44 UTC (permalink / raw)
gebser@speakeasy.net wrote:
> At 15:47 (UTC-0500) on Thu, 18 Dec 2003 gebser@speakeasy.net said:
> = At 11:06 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
> =
> = = gebser@speakeasy.net wrote:
> = =
> = = > Finally I got emacs' mail working... to a degree. I can send mail with
> = = > it, but only to users on the same machine. If I try to send outside
> = = > (via my ISP), I get nothing. That is to say, I know that emacs is
> = = > connecting to the ISP and handing off the email, but it never gets
> = = > delivered. I suspect that the ISP is simply tossing it out due to lack
> = = > of authentication from me.
> = =
> = =
> = = What does the *trace of SMTP session to foo* buffer contain (where foo is the
> = = value of smtpmail-smtp-server)?
> =
> = Though I have
> =
> = (setq tramp-verbose 10)
> = (setq tramp-debug-buffer t)
>
> Sorry-- I cut-n-pasted the wrong lines. This is what I have:
>
> (smtpmail-debug-info t)
How did you come up with that cruft? smtpmail-debug-info is a variable,
not a function.
> +++ I'm trying to debug a lot of stuff +++
You're much more likely to solve your problems if you debug them one at
a time.
> = in my .emacs, it isn't regularly producing the trace. It has done it
> = twice over the past couple of weeks, it seems only for the first time
> = after emacs is loaded. Do I have to exit and then (re)start emacs each
> = time I want the trace output?
The entire SMTP dialog is recorded in the *trace of SMTP session to ...*
buffer. But you have to explicitly select it with `C-x b' right after
you send your message in order to see its contents.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
2003-12-18 23:44 ` Kevin Rodgers
@ 2003-12-19 3:13 ` gebser
0 siblings, 0 replies; 10+ messages in thread
From: gebser @ 2003-12-19 3:13 UTC (permalink / raw)
Cc: help-gnu-emacs
At 16:44 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
= gebser@speakeasy.net wrote:
=
= > At 15:47 (UTC-0500) on Thu, 18 Dec 2003 gebser@speakeasy.net said:
= > = At 11:06 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
= > =
= > = = gebser@speakeasy.net wrote:
= > = =
= > = = > Finally I got emacs' mail working... to a degree. I can send mail with
= > = = > it, but only to users on the same machine. If I try to send outside
= > = = > (via my ISP), I get nothing. That is to say, I know that emacs is
= > = = > connecting to the ISP and handing off the email, but it never gets
= > = = > delivered. I suspect that the ISP is simply tossing it out due to lack
= > = = > of authentication from me.
= > = =
= > = =
= > = = What does the *trace of SMTP session to foo* buffer contain (where foo is the
= > = = value of smtpmail-smtp-server)?
= > =
= > = Though I have
= > =
= > = (smtpmail-debug-info t)
...
=
= How did you come up with that cruft? smtpmail-debug-info is a variable,
= not a function.
It's part of
(custom-set-variables
...
'(smtpmail-debug-info t)
...)
(what Customize put in).
= ...
=
= > = in my .emacs, it isn't regularly producing the trace. It has done it
= > = twice over the past couple of weeks, it seems only for the first time
= > = after emacs is loaded. Do I have to exit and then (re)start emacs each
= > = time I want the trace output?
=
= The entire SMTP dialog is recorded in the *trace of SMTP session to ...*
= buffer. But you have to explicitly select it with `C-x b' right after
= you send your message in order to see its contents.
Right. In the *Buffer List*. And that's where it's not showing up. I
even do (setq smtpmail-debug-info t) in *scratch, send the mail, then do
C-x b, and there's still no session info.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
2003-12-18 18:06 ` Kevin Rodgers
2003-12-18 20:47 ` gebser
@ 2003-12-19 8:13 ` Norbert Kaufmann
1 sibling, 0 replies; 10+ messages in thread
From: Norbert Kaufmann @ 2003-12-19 8:13 UTC (permalink / raw)
Kevin Rodgers wrote:
> gebser@speakeasy.net wrote:
>
>> Finally I got emacs' mail working... to a degree. I can send mail with
>> it, but only to users on the same machine. If I try to send outside
>> (via my ISP), I get nothing. That is to say, I know that emacs is
>> connecting to the ISP and handing off the email, but it never gets
>> delivered. I suspect that the ISP is simply tossing it out due to lack
>> of authentication from me.
>
>
>
> What does the *trace of SMTP session to foo* buffer contain (where foo
> is the
> value of smtpmail-smtp-server)?
>
I face the same problem. It seems emacs does not authenticate at all:
220 mail.xxx.net (IMail 7.15 38421-1) NT-ESMTP Server LX1
EHLO machine.host.net
250-mail.xxx.net says hello
250-SIZE 0
250-8BITMIME
250-DSN
250-ETRN
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN
250 EXPN
MAIL FROM: <user@host.net> SIZE=90
250 ok
RCPT TO: <other-user@other.host.net>
550 Relaying denied.
QUIT
221 Goodbye
~$ emacs --version
GNU Emacs 21.3.1
~$ uname -rps
FreeBSD 4.9-STABLE i386
Can please anybody give me a hint. Some googleing told me my emacs
version is not capable to authenticate at an smtp server - sorry, can't
find the message-id. Is this true?
TIA
Norbert
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mail Authentication
[not found] <mailman.332.1071807351.868.help-gnu-emacs@gnu.org>
@ 2003-12-19 17:00 ` Kevin Rodgers
0 siblings, 0 replies; 10+ messages in thread
From: Kevin Rodgers @ 2003-12-19 17:00 UTC (permalink / raw)
gebser@speakeasy.net wrote:
> At 16:44 (UTC-0700) on Thu, 18 Dec 2003 Kevin Rodgers said:
> = gebser@speakeasy.net wrote:
> = > = in my .emacs, it isn't regularly producing the trace. It has done it
> = > = twice over the past couple of weeks, it seems only for the first time
> = > = after emacs is loaded. Do I have to exit and then (re)start emacs each
> = > = time I want the trace output?
> =
> = The entire SMTP dialog is recorded in the *trace of SMTP session to ...*
> = buffer. But you have to explicitly select it with `C-x b' right after
> = you send your message in order to see its contents.
>
> Right. In the *Buffer List*. And that's where it's not showing up. I
> even do (setq smtpmail-debug-info t) in *scratch, send the mail, then do
> C-x b, and there's still no session info.
Well, that is the name of the buffer created by smtpmail-via-smtp, which is
called by smtpmail-send-it and by smtpmail-send-queued-mail (as long as the
message has a non-empty list of recipients):
;; get or create the trace buffer
(setq process-buffer
(get-buffer-create (format "*trace of SMTP session to %s*" host)))
Try setting mail-interactive to t, then send a message, then check the
" smtpmail errors" buffer (note the leading space, which you'll have to
quote with `C-q' in response to `C-x b's prompt.)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-12-19 17:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.332.1071807351.868.help-gnu-emacs@gnu.org>
2003-12-19 17:00 ` Mail Authentication Kevin Rodgers
[not found] <mailman.303.1071784651.868.help-gnu-emacs@gnu.org>
2003-12-18 23:44 ` Kevin Rodgers
2003-12-19 3:13 ` gebser
[not found] <mailman.273.1071769083.868.help-gnu-emacs@gnu.org>
2003-12-18 17:18 ` Harald Maier
2003-12-18 20:03 ` Marcelo Toledo
2003-12-18 18:06 ` Kevin Rodgers
2003-12-18 20:47 ` gebser
2003-12-18 20:53 ` gebser
2003-12-19 8:13 ` Norbert Kaufmann
2003-12-18 16:35 gebser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).