* Re: Gnus and outgoing Mail
[not found] <mailman.4774.1197157208.18990.help-gnu-emacs@gnu.org>
@ 2007-12-09 1:38 ` Exal de Jesus Garcia Carrillo
2007-12-09 16:51 ` Sven Bretfeld
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-12-09 1:38 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sven Bretfeld em gnu.emacs.help escreveu :
[...]
> I've tested the same settings with my own GMX account on my machine,
> and it works. mail.gmx.net doesn't require TLS. We both use Debian
> Etch.
[...]
Hi, AFAIK gmx smtp server use secure conection (I have use it formerly),
so, if help, there is my config for this stuff:
,----[ Configuration for gmx smtp server ]
|
| ;; Use gmx smtp server
| (message "Using gmx smtp server")
| (setq starttls-use-gnutls t
| starttls-gnutls-program "gnutls-cli"
| starttls-extra-arguments nil)
| (setq smtpmail-local-domain nil
| send-mail-function 'smtpmail-send-it
| message-send-mail-function 'smtpmail-send-it
| message-send-mail-partially-limit nil
| smtpmail-default-smtp-server "mail.gmx.net"
| smtpmail-smtp-server "mail.gmx.net"
| smtpmail-debug-info t
| smtpmail-debug-verb t
| smtpmail-auth-credentials "~/emacs-stuff/mailauth"
| smtpmail-starttls-credentials '(("mail.gmx.net" 25 nil nil))
| smtpmail-smtp-server "mail.gmx.net" ))
|
`----
- --
Spam protection:
In my e-mail replace the words `no-spam' with `exal'.
.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFHW0cooZmxoVJRtGIRAllaAJ0Yfswiqgc2IiP/kTkMwnjkXatK2ACeJFUQ
4At0qAWUty1Osutu7l9Pwa4=
=R3HJ
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Gnus and outgoing Mail
2007-12-09 1:38 ` Gnus and outgoing Mail Exal de Jesus Garcia Carrillo
@ 2007-12-09 16:51 ` Sven Bretfeld
2007-12-09 17:27 ` Thierry Volpiatto
[not found] ` <mailman.4798.1197219115.18990.help-gnu-emacs@gnu.org>
2007-12-12 23:26 ` [Solved] " Sven Bretfeld
2 siblings, 1 reply; 11+ messages in thread
From: Sven Bretfeld @ 2007-12-09 16:51 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 2009 bytes --]
Hi Exal and all others
Exal de Jesus Garcia Carrillo <no-spam@gnu.org> writes:
> ,----[ Configuration for gmx smtp server ]
> |
> | ;; Use gmx smtp server
> | (message "Using gmx smtp server")
> | (setq starttls-use-gnutls t
> | starttls-gnutls-program "gnutls-cli"
> | starttls-extra-arguments nil)
> | (setq smtpmail-local-domain nil
> | send-mail-function 'smtpmail-send-it
> | message-send-mail-function 'smtpmail-send-it
> | message-send-mail-partially-limit nil
> | smtpmail-default-smtp-server "mail.gmx.net"
> | smtpmail-smtp-server "mail.gmx.net"
> | smtpmail-debug-info t
> | smtpmail-debug-verb t
> | smtpmail-auth-credentials "~/emacs-stuff/mailauth"
> | smtpmail-starttls-credentials '(("mail.gmx.net" 25 nil nil))
> | smtpmail-smtp-server "mail.gmx.net" ))
> |
> `----
We have tried this configuration, changing the necessaries and adding
the personal data (user-full-name etc.). It was necessary to install
the Debian package gnutls-bin which contains gnutls-cli. But it didn't
work either. This is the error message:
Sending via mail...
Loading smtpmail...done
Loading mailalias...done
220 mail.gmx.net GMX Mailservices ESMTP {mp031}
250-mail.gmx.net GMX Mailservices
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-SIZE
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-AUTH CRAM-MD5 LOGIN PLAIN
250 STARTTLS
550 5.7.0 Need to authenticate via SMTP-AUTH-Login {mp031}
221 2.0.0 GMX Mailservices {mp031}
smtpmail-send-it: Sending failed; SMTP protocol error
So, the authentication fails. What can be the reason? Can there be
anything missing, perhaps on the exim side?
Apropos. There is an additional ) at the end of your code. We had to
eliminate it to have gnus come up. Is there something relevant missing
on the top of the code or is it just part of a user-defined function
to switch smtp alternatives?
Thanks for help
Sven
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Gnus and outgoing Mail
2007-12-09 16:51 ` Sven Bretfeld
@ 2007-12-09 17:27 ` Thierry Volpiatto
2007-12-09 18:02 ` Sven Bretfeld
0 siblings, 1 reply; 11+ messages in thread
From: Thierry Volpiatto @ 2007-12-09 17:27 UTC (permalink / raw)
To: Sven Bretfeld; +Cc: help-gnu-emacs
Sven Bretfeld <sven.bretfeld@gmx.ch> writes:
> Hi Exal and all others
>
> Exal de Jesus Garcia Carrillo <no-spam@gnu.org> writes:
>
>> ,----[ Configuration for gmx smtp server ]
>> |
>> | ;; Use gmx smtp server
>> | (message "Using gmx smtp server")
>> | (setq starttls-use-gnutls t
>> | starttls-gnutls-program "gnutls-cli"
>> | starttls-extra-arguments nil)
>> | (setq smtpmail-local-domain nil
>> | send-mail-function 'smtpmail-send-it
>> | message-send-mail-function 'smtpmail-send-it
>> | message-send-mail-partially-limit nil
>> | smtpmail-default-smtp-server "mail.gmx.net"
>> | smtpmail-smtp-server "mail.gmx.net"
>> | smtpmail-debug-info t
>> | smtpmail-debug-verb t
>> | smtpmail-auth-credentials "~/emacs-stuff/mailauth"
>> | smtpmail-starttls-credentials '(("mail.gmx.net" 25 nil nil))
>> | smtpmail-smtp-server "mail.gmx.net" ))
>> |
>> `----
>
> We have tried this configuration, changing the necessaries and adding
> the personal data (user-full-name etc.). It was necessary to install
> the Debian package gnutls-bin which contains gnutls-cli. But it didn't
> work either. This is the error message:
>
> Sending via mail...
> Loading smtpmail...done
> Loading mailalias...done
> 220 mail.gmx.net GMX Mailservices ESMTP {mp031}
> 250-mail.gmx.net GMX Mailservices
> 250-8BITMIME
> 250-ENHANCEDSTATUSCODES
> 250-SIZE
> 250-AUTH=LOGIN CRAM-MD5 PLAIN
> 250-AUTH CRAM-MD5 LOGIN PLAIN
> 250 STARTTLS
> 550 5.7.0 Need to authenticate via SMTP-AUTH-Login {mp031}
> 221 2.0.0 GMX Mailservices {mp031}
> smtpmail-send-it: Sending failed; SMTP protocol error
>
> So, the authentication fails. What can be the reason? Can there be
> anything missing, perhaps on the exim side?
>
> Apropos. There is an additional ) at the end of your code. We had to
> eliminate it to have gnus come up. Is there something relevant missing
> on the top of the code or is it just part of a user-defined function
> to switch smtp alternatives?
>
> Thanks for help
>
> Sven
Are you sure port 25 with starttls is right? (i use 587 with gmail)
What do you have in "~/emacs-stuff/mailauth"?
(you can write the content of this file directly like below)
Here is my config with gmail if it can help:
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
(setq smtpmail-auth-credentials '(("smtp.gmail.com" 587
"my_email_adress" "my_password")))
(setq smtpmail-default-smtp-server "smtp.gmail.com")
(setq smtpmail-smtp-server "smtp.gmail.com")
(setq smtpmail-smtp-service 587)
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Gnus and outgoing Mail
2007-12-09 17:27 ` Thierry Volpiatto
@ 2007-12-09 18:02 ` Sven Bretfeld
2007-12-09 18:35 ` Thierry Volpiatto
0 siblings, 1 reply; 11+ messages in thread
From: Sven Bretfeld @ 2007-12-09 18:02 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 2649 bytes --]
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> Are you sure port 25 with starttls is right? (i use 587 with gmail)
I think so. AFAIK port 587 is used when the authentication is not in
clear text, but encoded via SSL or TLS. This is the German
documentation of gmx concerning the configuration of Thunderbird:
http://faq.gmx.de/messages/mailprogramme/einrichtung/3.html
In "Schritt 7" (step 7) it has a screenshot that shows the settings:
server-name: mail.gmx.net, port: 25, secure connection: never.
> What do you have in "~/emacs-stuff/mailauth"?
> (you can write the content of this file directly like below)
I (this means my friend) haven't used a credentials file but set the
login information directly in .gnus.el. This is what it looks like:
;; Use gmx smtp server
(message "Using gmx smtp server")
(setq starttls-use-gnutls t
starttls-gnutls-program "gnutls-cli"
starttls-extra-arguments nil)
(setq smtpmail-local-domain nil
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
message-send-mail-partially-limit nil
smtpmail-default-smtp-server "mail.gmx.net"
smtpmail-smtp-server "mail.gmx.net"
smtpmail-debug-info t
smtpmail-debug-verb t
smtpmail-auth-credentials
'(("mail.gmx.net" 25 "GMX_USERNAME" "GMX_PASSWORD"))
smtpmail-starttls-credentials
'(("mail.gmx.net" 25 nil nil))
smtpmail-smtp-server "mail.gmx.net" )
(setq user-full-name "Stjepan Beles")
(setq user-mail-address "b.stjepan@gmx.de")
> Here is my config with gmail if it can help:
>
> (setq message-send-mail-function 'smtpmail-send-it)
> (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
> (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587
> "my_email_adress" "my_password")))
>
> (setq smtpmail-default-smtp-server "smtp.gmail.com")
> (setq smtpmail-smtp-server "smtp.gmail.com")
> (setq smtpmail-smtp-service 587)
Looks quite similar apart from the port number.
I have the impression that setting starttls-use-gnutls to non-nil is
the wrong way. Except the gmx folks write nonsense in their
documentation (what can be the case anyway). But it didn't work before
either.
A different idea. Is is possible that the MTA (exim4) doesn't allow
passwords to be send away in clear text, which is a damn security risk
anyway. Should we try to install sendmail instead? I still don't know
how I can find out if the error occurs in Emacs or in exim. The
*Messages* buffer isn't very informative in this case.
Greetings
Sven
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Gnus and outgoing Mail
2007-12-09 18:02 ` Sven Bretfeld
@ 2007-12-09 18:35 ` Thierry Volpiatto
0 siblings, 0 replies; 11+ messages in thread
From: Thierry Volpiatto @ 2007-12-09 18:35 UTC (permalink / raw)
To: Sven Bretfeld; +Cc: help-gnu-emacs
Sven Bretfeld <sven.bretfeld@gmx.ch> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> Are you sure port 25 with starttls is right? (i use 587 with gmail)
>
> I think so. AFAIK port 587 is used when the authentication is not in
> clear text, but encoded via SSL or TLS. This is the German
> documentation of gmx concerning the configuration of Thunderbird:
>
> http://faq.gmx.de/messages/mailprogramme/einrichtung/3.html
>
> In "Schritt 7" (step 7) it has a screenshot that shows the settings:
> server-name: mail.gmx.net, port: 25, secure connection: never.
>
>> What do you have in "~/emacs-stuff/mailauth"?
>> (you can write the content of this file directly like below)
>
> I (this means my friend) haven't used a credentials file but set the
> login information directly in .gnus.el. This is what it looks like:
>
> ;; Use gmx smtp server
> (message "Using gmx smtp server")
> (setq starttls-use-gnutls t
> starttls-gnutls-program "gnutls-cli"
> starttls-extra-arguments nil)
> (setq smtpmail-local-domain nil
> send-mail-function 'smtpmail-send-it
> message-send-mail-function 'smtpmail-send-it
> message-send-mail-partially-limit nil
> smtpmail-default-smtp-server "mail.gmx.net"
> smtpmail-smtp-server "mail.gmx.net"
> smtpmail-debug-info t
> smtpmail-debug-verb t
> smtpmail-auth-credentials
> '(("mail.gmx.net" 25 "GMX_USERNAME" "GMX_PASSWORD"))
> smtpmail-starttls-credentials
> '(("mail.gmx.net" 25 nil nil))
> smtpmail-smtp-server "mail.gmx.net" )
> (setq user-full-name "Stjepan Beles")
> (setq user-mail-address "b.stjepan@gmx.de")
>
>> Here is my config with gmail if it can help:
>>
>> (setq message-send-mail-function 'smtpmail-send-it)
>> (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
>> (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587
>> "my_email_adress" "my_password")))
>>
>> (setq smtpmail-default-smtp-server "smtp.gmail.com")
>> (setq smtpmail-smtp-server "smtp.gmail.com")
>> (setq smtpmail-smtp-service 587)
>
> Looks quite similar apart from the port number.
>
> I have the impression that setting starttls-use-gnutls to non-nil is
> the wrong way. Except the gmx folks write nonsense in their
> documentation (what can be the case anyway). But it didn't work before
> either.
>
> A different idea. Is is possible that the MTA (exim4) doesn't allow
> passwords to be send away in clear text, which is a damn security risk
> anyway. Should we try to install sendmail instead? I still don't know
> how I can find out if the error occurs in Emacs or in exim. The
> *Messages* buffer isn't very informative in this case.
>
I never use exim but may be you can test with nbsmtp that is very light,
support starttls and have nothing to configure, you just call sendmail
from gnus and go!
I have used it with -no starttls protocol- also and it worked fine.
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.4798.1197219115.18990.help-gnu-emacs@gnu.org>]
* Re: Gnus and outgoing Mail
[not found] ` <mailman.4798.1197219115.18990.help-gnu-emacs@gnu.org>
@ 2007-12-09 20:26 ` Exal de Jesus Garcia Carrillo
2007-12-10 0:45 ` Sebastian Tennant
0 siblings, 1 reply; 11+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-12-09 20:26 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sven Bretfeld em gnu.emacs.help escreveu :
> Hi Exal and all others
Hi
> So, the authentication fails. What can be the reason? Can there be
> anything missing, perhaps on the exim side?
mmmm, I dont think so, are you trying to send the mail with the @gmx
- - From header?, this because gmx doesn't allow relaying.
> Apropos. There is an additional ) at the end of your code. We had to
> eliminate it to have gnus come up. Is there something relevant missing
> on the top of the code or is it just part of a user-defined function
> to switch smtp alternatives?
The additional paren is because I have cut/paste a part of a function
that I have in my .emacs file, if help, see my full .emacs file here:
http://exal.0x2.org/dotemacs.html
Hope this help.
- - --
Spam protection:
In my e-mail replace the words `no-spam' with `exal'.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFHXE7KoZmxoVJRtGIRAsXXAJ9xGtYGscGIMfoBhd7+WaRGnzYMJwCgmIxF
OKGp8ldB/uLr3YvH/f4S6HU=
=Xfjw
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFHXE99oZmxoVJRtGIRAmQGAJ0R9U4dqOV0nkOWNC+TY6fRv6GFqQCfZVgL
xT+VOFRU5juAI1F0sPIn9rU=
=hs86
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Gnus and outgoing Mail
2007-12-09 20:26 ` Exal de Jesus Garcia Carrillo
@ 2007-12-10 0:45 ` Sebastian Tennant
2007-12-10 1:16 ` Sven Bretfeld
[not found] ` <mailman.4819.1197249427.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 11+ messages in thread
From: Sebastian Tennant @ 2007-12-10 0:45 UTC (permalink / raw)
To: help-gnu-emacs
Quoth Exal de Jesus Garcia Carrillo <no-spam@gnu.org>:
> mmmm, I dont think so, are you trying to send the mail with the @gmx
> - From header?, this because gmx doesn't allow relaying.
I don't think it can be the envelope from-header because SMTP
conversation doesn't even get that far:
220 mail.gmx.net GMX Mailservices ESMTP {mp031}
250-mail.gmx.net GMX Mailservices
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-SIZE
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-AUTH CRAM-MD5 LOGIN PLAIN
250 STARTTLS
550 5.7.0 Need to authenticate via SMTP-AUTH-Login {mp031}
221 2.0.0 GMX Mailservices {mp031}
smtpmail-send-it: Sending failed; SMTP protocol error
I'm afraid I don't know why it's failing at this stage, but I can clear
up one thinko... by using smtpmail you are talking directly with gmx's
SMTP servers, so yes, you _are_ bypassing the local MTA (Exim).
Sebastian
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Solved] Gnus and outgoing Mail
2007-12-09 1:38 ` Gnus and outgoing Mail Exal de Jesus Garcia Carrillo
2007-12-09 16:51 ` Sven Bretfeld
[not found] ` <mailman.4798.1197219115.18990.help-gnu-emacs@gnu.org>
@ 2007-12-12 23:26 ` Sven Bretfeld
2007-12-13 10:41 ` Sebastian Tennant
2 siblings, 1 reply; 11+ messages in thread
From: Sven Bretfeld @ 2007-12-12 23:26 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]
Hi to all
We have succeeded at last. The problem was that my fried was using
Emacs 21 which is standard in Debian Etch. This version is seemingly
unable to send smtp-authentification in plain text. But this is what
the German gmx relay-server requires. There is a patch on EmacsWiki
under the rubric SMTP_AUTH together with the information that the CVS
version already contains the patch. So, we installed the CVS
emacs-snapshot for Debian. Now it works.
This also explains, why it has always worked for me but not for him,
because I always use the CVS snapshot.
Thanks for all your suggestions.
Greetings
Sven
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Solved] Gnus and outgoing Mail
2007-12-12 23:26 ` [Solved] " Sven Bretfeld
@ 2007-12-13 10:41 ` Sebastian Tennant
0 siblings, 0 replies; 11+ messages in thread
From: Sebastian Tennant @ 2007-12-13 10:41 UTC (permalink / raw)
To: help-gnu-emacs
Quoth Sven Bretfeld <sven.bretfeld@gmx.ch>:
> We have succeeded at last. The problem was that my fried was using
> Emacs 21 which is standard in Debian Etch. This version is seemingly
> unable to send smtp-authentification in plain text. But this is what
> the German gmx relay-server requires. There is a patch on EmacsWiki
> under the rubric SMTP_AUTH together with the information that the CVS
> version already contains the patch. So, we installed the CVS
> emacs-snapshot for Debian. Now it works.
>
> This also explains, why it has always worked for me but not for him,
> because I always use the CVS snapshot.
That is good gnus :-) Well done for persevering.
Sebastian
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-12-13 10:41 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.4774.1197157208.18990.help-gnu-emacs@gnu.org>
2007-12-09 1:38 ` Gnus and outgoing Mail Exal de Jesus Garcia Carrillo
2007-12-09 16:51 ` Sven Bretfeld
2007-12-09 17:27 ` Thierry Volpiatto
2007-12-09 18:02 ` Sven Bretfeld
2007-12-09 18:35 ` Thierry Volpiatto
[not found] ` <mailman.4798.1197219115.18990.help-gnu-emacs@gnu.org>
2007-12-09 20:26 ` Exal de Jesus Garcia Carrillo
2007-12-10 0:45 ` Sebastian Tennant
2007-12-10 1:16 ` Sven Bretfeld
[not found] ` <mailman.4819.1197249427.18990.help-gnu-emacs@gnu.org>
2007-12-10 5:16 ` Exal de Jesus Garcia Carrillo
2007-12-12 23:26 ` [Solved] " Sven Bretfeld
2007-12-13 10:41 ` Sebastian Tennant
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).