* SMTP-AUTH and TLS
@ 2007-10-02 13:07 Tobias Brink
2007-10-03 23:05 ` Tobias Brink
0 siblings, 1 reply; 6+ messages in thread
From: Tobias Brink @ 2007-10-02 13:07 UTC (permalink / raw)
To: info-gnus-english
Hello.
I want to send mail via SMTP. The server in question demands clients
to connect encrypted and authenticate using SMTP-AUTH PLAIN. The
server refuses unencrypted authentication and refuses to relay mail
from unauthenticated connections.
I have the following in my .gnus.el:
(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-starttls-credentials
'(("smtp.myserver.tld" 25 nil nil)))
(setq smtpmail-default-smtp-server "smtp.myserver.tld")
and something like the following in .authinfo:
machine smtp.myserver.tld login tobias password secret
From setting `smtpmail-debug-info' and `smtpmail-debug-verb' to `t' I
see that Gnus doesn't even try to use TLS and authenticate (at least I
interpret the following output to mean that):
Sending...
Sending via mail...
220 smtp.myserver.tld ESMTP Postfix
250-smtp.myserver.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
250 2.1.0 Ok
554 5.7.1 <someone@someisp.tld>: Relay access denied
221 2.0.0 Bye
smtpmail-send-it: Sending failed; SMTP protocol error
Setting up KMail to use this server works so the error must be in my
Gnus configuration, only I don't know where.
Versions: Gnus 5.11, GNU Emacs 22.1.1
Thanks in advance,
Tobias
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SMTP-AUTH and TLS
2007-10-02 13:07 SMTP-AUTH and TLS Tobias Brink
@ 2007-10-03 23:05 ` Tobias Brink
2007-10-04 16:44 ` Reiner Steib
2007-10-08 18:03 ` someusernamehere
0 siblings, 2 replies; 6+ messages in thread
From: Tobias Brink @ 2007-10-03 23:05 UTC (permalink / raw)
To: info-gnus-english
Tobias Brink <tobias.brinkNO.SPAM@gmail.com> writes:
[...]
> I have the following in my .gnus.el:
>
> (setq send-mail-function 'smtpmail-send-it)
> (setq message-send-mail-function 'smtpmail-send-it)
> (setq smtpmail-starttls-credentials
> '(("smtp.myserver.tld" 25 nil nil)))
> (setq smtpmail-default-smtp-server "smtp.myserver.tld")
And strangely adding the following at the top fixes it:
,----
| (require 'smtpmail)
| (setq smtpmail-smtp-server "smtp.myserver.tld")
`----
Greetings,
Tobias
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SMTP-AUTH and TLS
2007-10-03 23:05 ` Tobias Brink
@ 2007-10-04 16:44 ` Reiner Steib
2007-10-08 18:03 ` someusernamehere
1 sibling, 0 replies; 6+ messages in thread
From: Reiner Steib @ 2007-10-04 16:44 UTC (permalink / raw)
To: info-gnus-english; +Cc: Simon Josefsson
On Thu, Oct 04 2007, Tobias Brink wrote:
> Tobias Brink <tobias.brinkNO.SPAM@gmail.com> writes:
>> I have the following in my .gnus.el:
>>
>> (setq send-mail-function 'smtpmail-send-it)
>> (setq message-send-mail-function 'smtpmail-send-it)
>> (setq smtpmail-starttls-credentials
>> '(("smtp.myserver.tld" 25 nil nil)))
>> (setq smtpmail-default-smtp-server "smtp.myserver.tld")
>
> And strangely adding the following at the top fixes it:
>
> ,----
> | (require 'smtpmail)
> | (setq smtpmail-smtp-server "smtp.myserver.tld")
> `----
The doc string of `smtpmail-default-smtp-server' explains it:
,----[ <f1> v smtpmail-default-smtp-server RET ]
| smtpmail-default-smtp-server is a variable defined in `smtpmail'.
| Its value is nil
|
| Documentation:
| *Specify default SMTP server.
| This only has effect if you specify it before loading the smtpmail library.
|
| You can customize this variable.
`----
I must admit that I don't understand, why having both variables is a
good idea.
Please follow up on ding, when discussing this:
Mail-Followup-To: <ding@gnus.org>
[Hope this survives all the nntp<->mail gateways.]
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SMTP-AUTH and TLS
2007-10-03 23:05 ` Tobias Brink
2007-10-04 16:44 ` Reiner Steib
@ 2007-10-08 18:03 ` someusernamehere
2007-10-08 18:40 ` Tobias Brink
1 sibling, 1 reply; 6+ messages in thread
From: someusernamehere @ 2007-10-08 18:03 UTC (permalink / raw)
To: info-gnus-english
On 3 oct, 18:05, Tobias Brink <tobias.brinkNO.S...@gmail.com> wrote:
> Tobias Brink <tobias.brinkNO.S...@gmail.com> writes:
>
> [...]
>
> > I have the following in my .gnus.el:
>
> > (setq send-mail-function 'smtpmail-send-it)
> > (setq message-send-mail-function 'smtpmail-send-it)
> > (setq smtpmail-starttls-credentials
> > '(("smtp.myserver.tld" 25 nil nil)))
> > (setq smtpmail-default-smtp-server "smtp.myserver.tld")
>
> And strangely adding the following at the top fixes it:
>
> ,----
> | (require 'smtpmail)
> | (setq smtpmail-smtp-server "smtp.myserver.tld")
> `----
i have tried this and doesnt work, I have the same problem, can you
paste your final work code here please?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SMTP-AUTH and TLS
2007-10-08 18:03 ` someusernamehere
@ 2007-10-08 18:40 ` Tobias Brink
2007-10-08 20:54 ` someusernamehere
0 siblings, 1 reply; 6+ messages in thread
From: Tobias Brink @ 2007-10-08 18:40 UTC (permalink / raw)
To: info-gnus-english
someusernamehere <someusernamehere@gmail.com> writes:
> i have tried this and doesnt work, I have the same problem, can you
> paste your final work code here please?
Here you go:
,----[ ~/.gnus.el ]
| (require 'smtpmail)
| (setq send-mail-function 'smtpmail-send-it)
| (setq message-send-mail-function 'smtpmail-send-it)
| (setq smtpmail-starttls-credentials
| '(("YOURSMTP.TLD" 25 nil nil)))
| (setq smtpmail-smtp-server "YOURSMTP.TLD")
| (setq smtpmail-default-smtp-server "YOURSMTP.TLD") ; This is probably
| ; not needed.
`----
,----[ ~/.authinfo ]
| machine YOURSMTP.TLD login YOURUSERNAME password YOURPASSWORD
`----
Replace the strings in capital letters.
Hope that helps,
Tobias
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: SMTP-AUTH and TLS
2007-10-08 18:40 ` Tobias Brink
@ 2007-10-08 20:54 ` someusernamehere
0 siblings, 0 replies; 6+ messages in thread
From: someusernamehere @ 2007-10-08 20:54 UTC (permalink / raw)
To: info-gnus-english
On 8 oct, 13:40, Tobias Brink <tobias.brinkNO.S...@gmail.com> wrote:
> someusernamehere <someusernameh...@gmail.com> writes:
> > i have tried this and doesnt work, I have the same problem, can you
> > paste your final work code here please?
>
> Here you go:
>
> ,----[ ~/.gnus.el ]
> | (require 'smtpmail)
> | (setq send-mail-function 'smtpmail-send-it)
> | (setq message-send-mail-function 'smtpmail-send-it)
> | (setq smtpmail-starttls-credentials
> | '(("YOURSMTP.TLD" 25 nil nil)))
> | (setq smtpmail-smtp-server "YOURSMTP.TLD")
> | (setq smtpmail-default-smtp-server "YOURSMTP.TLD") ; This is probably
> | ; not needed.
> `----
>
> ,----[ ~/.authinfo ]
> | machine YOURSMTP.TLD login YOURUSERNAME password YOURPASSWORD
> `----
>
> Replace the strings in capital letters.
Hey Tobias, thanks for your reply, but I get an error, this i s:
Sending via mail...
Loading mailalias...done
Unknown extension pipelining
ad-Orig-error: Sending failed; SMTP protocol error
hints?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-08 20:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-02 13:07 SMTP-AUTH and TLS Tobias Brink
2007-10-03 23:05 ` Tobias Brink
2007-10-04 16:44 ` Reiner Steib
2007-10-08 18:03 ` someusernamehere
2007-10-08 18:40 ` Tobias Brink
2007-10-08 20:54 ` someusernamehere
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 NNTP newsgroup(s).