* sending mail with gnus
@ 2025-01-08 13:22 gfp
2025-01-08 14:03 ` gfp
` (3 more replies)
0 siblings, 4 replies; 31+ messages in thread
From: gfp @ 2025-01-08 13:22 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1261 bytes --]
Hi,
now I tried to send an email with gnus:
------------------------------------------------------------
The debugger said:
Emacs is about to send an email message, but it has not been
configured for sending email. To tell Emacs how to send email:
- Type ‘mail client’ to start your default email client and
pass it the message text.
- Type ‘smtp’ to send mail directly to an "outgoing mail" server.
(Emacs may prompt you for SMTP settings).
Emacs will record your selection and will use it thereafter.
To change it later, customize the option ‘send-mail-function’.
and
Wrong type argument; listp, mailclient-send-it
--------------------------------------------------------------
My gnus.el:
Reply to mails with matching email address
(setq gnus-posting-styles
'((address "gottfried <gottfried@posteo.de>")
("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
gottfried@posteo.de")))
in the gnus manual it says:
;(setq message-send-mail-function 'smtpmail-send-it
; smtpmail-default-smtp-server "smtp Posteo-posteo.de 465
gottfried@posteo.de")
but it doesn´t work as well.
I guess there is some code missing.
thanks for help
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 13:22 sending mail with gnus gfp
@ 2025-01-08 14:03 ` gfp
2025-01-08 16:17 ` Leo Butler
` (2 subsequent siblings)
3 siblings, 0 replies; 31+ messages in thread
From: gfp @ 2025-01-08 14:03 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1793 bytes --]
Hi,
an additional info:
this comes up, when I try to send a mail:
Date: Wed, 08 Jan 2025 15:00:24 +0100
Message-ID: <87cygxcsnb.fsf@Tuxedo.mail-host-address-is-not-set>
My host is:
gfp@Tuxedo ~$ cat /etc/hosts
127.0.0.1 localhost Tuxedo
::1 localhost Tuxedo
how can I put that into my gnus.el?
thanks
Gottfried
Am 08.01.25 um 14:22 schrieb gfp:
> Hi,
>
> now I tried to send an email with gnus:
> ------------------------------------------------------------
> The debugger said:
>
> Emacs is about to send an email message, but it has not been
> configured for sending email. To tell Emacs how to send email:
>
> - Type ‘mail client’ to start your default email client and
> pass it the message text.
>
> - Type ‘smtp’ to send mail directly to an "outgoing mail" server.
> (Emacs may prompt you for SMTP settings).
>
> Emacs will record your selection and will use it thereafter.
> To change it later, customize the option ‘send-mail-function’.
>
>
> and
> Wrong type argument; listp, mailclient-send-it
> --------------------------------------------------------------
>
> My gnus.el:
>
> Reply to mails with matching email address
> (setq gnus-posting-styles
> '((address "gottfried <gottfried@posteo.de>")
> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
> gottfried@posteo.de")))
>
>
> in the gnus manual it says:
> ;(setq message-send-mail-function 'smtpmail-send-it
> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de 465
> gottfried@posteo.de")
>
> but it doesn´t work as well.
>
> I guess there is some code missing.
>
> thanks for help
>
> Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 13:22 sending mail with gnus gfp
2025-01-08 14:03 ` gfp
@ 2025-01-08 16:17 ` Leo Butler
2025-01-08 20:46 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2025-01-08 20:53 ` Arash Esbati
3 siblings, 0 replies; 31+ messages in thread
From: Leo Butler @ 2025-01-08 16:17 UTC (permalink / raw)
To: gfp; +Cc: help-gnu-emacs@gnu.org
On Wed, Jan 08 2025, gfp <gfp@posteo.at> wrote:
> Hi,
>
> now I tried to send an email with gnus:
> ------------------------------------------------------------
> The debugger said:
>
> Emacs is about to send an email message, but it has not been
> configured for sending email. To tell Emacs how to send email:
>
> - Type ‘mail client’ to start your default email client and
> pass it the message text.
>
> - Type ‘smtp’ to send mail directly to an "outgoing mail" server.
> (Emacs may prompt you for SMTP settings).
>
> Emacs will record your selection and will use it thereafter.
> To change it later, customize the option ‘send-mail-function’.
>
>
> and
> Wrong type argument; listp, mailclient-send-it
> --------------------------------------------------------------
>
> My gnus.el:
>
> Reply to mails with matching email address
> (setq gnus-posting-styles
> '((address "gottfried <gottfried@posteo.de>")
> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
> gottfried@posteo.de")))
I don't think that this is correct. See the examples in the Gnus manual:
(info "(gnus) Posting Styles")
[You can evaluate that sexp in Gnus/Emacs by placing point at the right
and typing the keychords C-x C-e. It will take you to the appropriate
part of the Gnus manual.]
Leo
>
>
> in the gnus manual it says:
> ;(setq message-send-mail-function 'smtpmail-send-it
> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
> 465 gottfried@posteo.de")
>
> but it doesn´t work as well.
>
> I guess there is some code missing.
>
> thanks for help
>
> Gottfried
>
>
--
---
Best regards,
Dr Butler
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 13:22 sending mail with gnus gfp
2025-01-08 14:03 ` gfp
2025-01-08 16:17 ` Leo Butler
@ 2025-01-08 20:46 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2025-01-08 20:53 ` Arash Esbati
3 siblings, 0 replies; 31+ messages in thread
From: Michael Heerdegen via Users list for the GNU Emacs text editor @ 2025-01-08 20:46 UTC (permalink / raw)
To: help-gnu-emacs
gfp <gfp@posteo.at> writes:
> in the gnus manual it says:
> ;(setq message-send-mail-function 'smtpmail-send-it
> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
> 465 gottfried@posteo.de")
Really? How comes that your private mail address appears in the Gnus
manual? ;-)
To be more honest, I think something's wrong there. Should the
`smtpmail-default-smtp-server' not be bound to a, well, a server name
like "smtp.yourProvider.net"? Port and user name should be specified
using `smtpmail-smtp-service' and `smtpmail-smtp-user' as far as I
understand.
Michael.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 13:22 sending mail with gnus gfp
` (2 preceding siblings ...)
2025-01-08 20:46 ` Michael Heerdegen via Users list for the GNU Emacs text editor
@ 2025-01-08 20:53 ` Arash Esbati
2025-01-08 22:11 ` gfp
3 siblings, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-08 20:53 UTC (permalink / raw)
To: gfp; +Cc: help-gnu-emacs@gnu.org
gfp <gfp@posteo.at> writes:
> My gnus.el:
>
> Reply to mails with matching email address
> (setq gnus-posting-styles
> '((address "gottfried <gottfried@posteo.de>")
> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
> gottfried@posteo.de")))
>
>
> in the gnus manual it says:
> ;(setq message-send-mail-function 'smtpmail-send-it
> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
> 465 gottfried@posteo.de")
>
> but it doesn´t work as well.
I don't use posteo, but I think the following snippets should get you
going:
--8<---------------cut here---------------start------------->8---
;; ~/.gnus
(setq gnus-parameters
'((".*"
(posting-style
(name "gfp")
(address "gottfried@posteo.de")
;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
))))
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-server "posteo.de"
smtpmail-smtp-service 465)
;; ~/.authinfo
machine posteo.de port 465 login gottfried@posteo.de password PASSWORD
--8<---------------cut here---------------end--------------->8---
Note that I like to use `gnus-parameters' as one-stop shop for setting
all parameters for my groups, incl. the posting style.
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 20:53 ` Arash Esbati
@ 2025-01-08 22:11 ` gfp
2025-01-08 22:36 ` Arash Esbati
` (2 more replies)
0 siblings, 3 replies; 31+ messages in thread
From: gfp @ 2025-01-08 22:11 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 2722 bytes --]
Hi Arash,
thanks for your help.
I appreciate that very much.
1.
How do you do this? to get this line:
--8<---------------cut here---------------start------------->8---
2.
I fiddled around for many hours today to get gnus SMTP working
and to my own great astonishment
I just managed it some seconds before I got your email.
my gnus.el:
;; get emails
(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
'((nnimap "posteo"
(nnimap-address "posteo.de")
(nnnimap-user "gottfried@posteo.de")
(nnimap-authenticator login)
(nnimap-stream ssl)
(nnimap-server-port 993))))
;; Reply emails
(setq gnus-posting-styles
'((smtpmail-smtp-service)
(smtpmail-smtp-server "smtp.posteo.de")
(smtpmail-smtp-user "gottfried@posteo.de")
(smtpmail-smtp-port 465)))
So I don´t need your help at the moment. But I will keep it as record,
in case I need it.
Interestingly even I changed my /.authinfo file into /.authinfo.gpg
it worked.
I am happy,
but unfortunately it takes many hours
to set up every small step in Emacs and Gnus.
Further questions will arise...
Kind regards
Gottfried
Am 08.01.25 um 21:53 schrieb Arash Esbati:
> gfp <gfp@posteo.at> writes:
>
>> My gnus.el:
>>
>> Reply to mails with matching email address
>> (setq gnus-posting-styles
>> '((address "gottfried <gottfried@posteo.de>")
>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
>> gottfried@posteo.de")))
>>
>>
>> in the gnus manual it says:
>> ;(setq message-send-mail-function 'smtpmail-send-it
>> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
>> 465 gottfried@posteo.de")
>>
>> but it doesn´t work as well.
>
> I don't use posteo, but I think the following snippets should get you
> going:
>
> --8<---------------cut here---------------start------------->8---
> ;; ~/.gnus
> (setq gnus-parameters
> '((".*"
> (posting-style
> (name "gfp")
> (address "gottfried@posteo.de")
> ;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
> ))))
>
> (setq message-send-mail-function 'smtpmail-send-it
> smtpmail-smtp-server "posteo.de"
> smtpmail-smtp-service 465)
>
> ;; ~/.authinfo
> machine posteo.de port 465 login gottfried@posteo.de password PASSWORD
> --8<---------------cut here---------------end--------------->8---
>
> Note that I like to use `gnus-parameters' as one-stop shop for setting
> all parameters for my groups, incl. the posting style.
>
> Best, Arash
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 22:11 ` gfp
@ 2025-01-08 22:36 ` Arash Esbati
2025-01-09 3:30 ` Leo Butler
2025-01-10 11:59 ` gfp
2 siblings, 0 replies; 31+ messages in thread
From: Arash Esbati @ 2025-01-08 22:36 UTC (permalink / raw)
To: gfp; +Cc: help-gnu-emacs@gnu.org
gfp <gfp@posteo.at> writes:
> thanks for your help.
> I appreciate that very much.
You're welcome.
> 1.
> How do you do this? to get this line:
> --8<---------------cut here---------------start------------->8---
I mark a region when writing a message and hit 'C-c M-m':
,----[ C-h k C-c M-m ]
| C-c M-m runs the command message-mark-inserted-region (found in
| message-mode-map), which is an interactive native-comp-function in
| ‘message.el’.
|
| It is bound to C-c M-m.
|
| (message-mark-inserted-region BEG END &optional VERBATIM)
|
| Inferred type: (function (t t &optional t) t)
|
| Mark some region in the current article with enclosing tags.
| See ‘message-mark-insert-begin’ and ‘message-mark-insert-end’.
| If VERBATIM, use slrn style verbatim marks ("#v+" and "#v-").
|
`----
> 2.
> I fiddled around for many hours today to get gnus SMTP working
> and to my own great astonishment
> I just managed it some seconds before I got your email.
>
> my gnus.el:
> ;; get emails
> (setq gnus-select-method '(nnnil ""))
> (setq gnus-secondary-select-methods
> '((nnimap "posteo"
> (nnimap-address "posteo.de")
> (nnnimap-user "gottfried@posteo.de")
> (nnimap-authenticator login)
> (nnimap-stream ssl)
> (nnimap-server-port 993))))
>
> ;; Reply emails
> (setq gnus-posting-styles
> '((smtpmail-smtp-service)
> (smtpmail-smtp-server "smtp.posteo.de")
> (smtpmail-smtp-user "gottfried@posteo.de")
> (smtpmail-smtp-port 465)))
And I'm astonished that it works with the code above for
`gnus-posting-styles', compare your code with the description in the
manual[1]. Well, when it works for you, it works.
> So I don´t need your help at the moment. But I will keep it as record,
> in case I need it.
>
> Interestingly even I changed my /.authinfo file into /.authinfo.gpg
> it worked.
>
> I am happy,
> but unfortunately it takes many hours
> to set up every small step in Emacs and Gnus.
I agree, it takes time at the beginning, so I can urge you to read the
manuals carefully and try to solve one issue after the other.
Best, Arash
Footnotes:
[1] https://www.gnu.org/software/emacs/manual/html_mono/gnus.html#Posting-Styles
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 22:11 ` gfp
2025-01-08 22:36 ` Arash Esbati
@ 2025-01-09 3:30 ` Leo Butler
2025-01-09 9:16 ` gfp
2025-01-10 11:59 ` gfp
2 siblings, 1 reply; 31+ messages in thread
From: Leo Butler @ 2025-01-09 3:30 UTC (permalink / raw)
To: gfp; +Cc: Arash Esbati, help-gnu-emacs@gnu.org
On Wed, Jan 08 2025, gfp <gfp@posteo.at> wrote:
> Hi Arash,
>
> thanks for your help.
> I appreciate that very much.
>
> 1.
> How do you do this? to get this line:
> --8<---------------cut here---------------start------------->8---
>
> 2.
> I fiddled around for many hours today to get gnus SMTP working
> and to my own great astonishment
> I just managed it some seconds before I got your email.
How did you send this email? This email that I am replying to does not
have a User-Agent set in the headers. You can check the headers of the
other emails, they all have some variation on:
User-Agent: Gnus/5.13 (Gnus v5.13)
(In Gnus, in the message buffer, type t to show the headers).
Leo
>
> my gnus.el:
> ;; get emails
> (setq gnus-select-method '(nnnil ""))
> (setq gnus-secondary-select-methods
> '((nnimap "posteo"
> (nnimap-address "posteo.de")
> (nnnimap-user "gottfried@posteo.de")
> (nnimap-authenticator login)
> (nnimap-stream ssl)
> (nnimap-server-port 993))))
>
> ;; Reply emails
> (setq gnus-posting-styles
> '((smtpmail-smtp-service)
> (smtpmail-smtp-server "smtp.posteo.de")
> (smtpmail-smtp-user "gottfried@posteo.de")
> (smtpmail-smtp-port 465)))
>
>
> So I don´t need your help at the moment. But I will keep it as record,
> in case I need it.
>
> Interestingly even I changed my /.authinfo file into /.authinfo.gpg
> it worked.
>
> I am happy,
> but unfortunately it takes many hours
> to set up every small step in Emacs and Gnus.
>
> Further questions will arise...
>
>
> Kind regards
>
> Gottfried
>
>
>
> Am 08.01.25 um 21:53 schrieb Arash Esbati:
>> gfp <gfp@posteo.at> writes:
>>
>>> My gnus.el:
>>>
>>> Reply to mails with matching email address
>>> (setq gnus-posting-styles
>>> '((address "gottfried <gottfried@posteo.de>")
>>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
>>> gottfried@posteo.de")))
>>>
>>>
>>> in the gnus manual it says:
>>> ;(setq message-send-mail-function 'smtpmail-send-it
>>> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
>>> 465 gottfried@posteo.de")
>>>
>>> but it doesn´t work as well.
>> I don't use posteo, but I think the following snippets should get
>> you
>> going:
>> --8<---------------cut here---------------start------------->8---
>> ;; ~/.gnus
>> (setq gnus-parameters
>> '((".*"
>> (posting-style
>> (name "gfp")
>> (address "gottfried@posteo.de")
>> ;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
>> ))))
>> (setq message-send-mail-function 'smtpmail-send-it
>> smtpmail-smtp-server "posteo.de"
>> smtpmail-smtp-service 465)
>> ;; ~/.authinfo
>> machine posteo.de port 465 login gottfried@posteo.de password PASSWORD
>> --8<---------------cut here---------------end--------------->8---
>> Note that I like to use `gnus-parameters' as one-stop shop for
>> setting
>> all parameters for my groups, incl. the posting style.
>> Best, Arash
>
>
--
---
Best regards,
Dr Butler
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-09 3:30 ` Leo Butler
@ 2025-01-09 9:16 ` gfp
0 siblings, 0 replies; 31+ messages in thread
From: gfp @ 2025-01-09 9:16 UTC (permalink / raw)
To: Leo Butler; +Cc: Arash Esbati, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 3846 bytes --]
Hi Leo,
> How did you send this email? This email that I am replying to does not
>> have a User-Agent set in the headers. You can check the headers of the
>> other emails, they all have some variation on:
>>
>> User-Agent: Gnus/5.13 (Gnus v5.13)
>>
>> (In Gnus, in the message buffer, type t to show the headers).
I am not sure what you mean exactly.
I didn´t send this email with gnus
but with Thunderbird.
May be that solves the question.
Gottfried
Am 09.01.25 um 04:30 schrieb Leo Butler:
> On Wed, Jan 08 2025, gfp <gfp@posteo.at> wrote:
>
>> Hi Arash,
>>
>> thanks for your help.
>> I appreciate that very much.
>>
>> 1.
>> How do you do this? to get this line:
>> --8<---------------cut here---------------start------------->8---
>>
>> 2.
>> I fiddled around for many hours today to get gnus SMTP working
>> and to my own great astonishment
>> I just managed it some seconds before I got your email.
>
> How did you send this email? This email that I am replying to does not
> have a User-Agent set in the headers. You can check the headers of the
> other emails, they all have some variation on:
>
> User-Agent: Gnus/5.13 (Gnus v5.13)
>
> (In Gnus, in the message buffer, type t to show the headers).
>
> Leo
>
>>
>> my gnus.el:
>> ;; get emails
>> (setq gnus-select-method '(nnnil ""))
>> (setq gnus-secondary-select-methods
>> '((nnimap "posteo"
>> (nnimap-address "posteo.de")
>> (nnnimap-user "gottfried@posteo.de")
>> (nnimap-authenticator login)
>> (nnimap-stream ssl)
>> (nnimap-server-port 993))))
>>
>> ;; Reply emails
>> (setq gnus-posting-styles
>> '((smtpmail-smtp-service)
>> (smtpmail-smtp-server "smtp.posteo.de")
>> (smtpmail-smtp-user "gottfried@posteo.de")
>> (smtpmail-smtp-port 465)))
>>
>>
>> So I don´t need your help at the moment. But I will keep it as record,
>> in case I need it.
>>
>> Interestingly even I changed my /.authinfo file into /.authinfo.gpg
>> it worked.
>>
>> I am happy,
>> but unfortunately it takes many hours
>> to set up every small step in Emacs and Gnus.
>>
>> Further questions will arise...
>>
>>
>> Kind regards
>>
>> Gottfried
>>
>>
>>
>> Am 08.01.25 um 21:53 schrieb Arash Esbati:
>>> gfp <gfp@posteo.at> writes:
>>>
>>>> My gnus.el:
>>>>
>>>> Reply to mails with matching email address
>>>> (setq gnus-posting-styles
>>>> '((address "gottfried <gottfried@posteo.de>")
>>>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
>>>> gottfried@posteo.de")))
>>>>
>>>>
>>>> in the gnus manual it says:
>>>> ;(setq message-send-mail-function 'smtpmail-send-it
>>>> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
>>>> 465 gottfried@posteo.de")
>>>>
>>>> but it doesn´t work as well.
>>> I don't use posteo, but I think the following snippets should get
>>> you
>>> going:
>>> --8<---------------cut here---------------start------------->8---
>>> ;; ~/.gnus
>>> (setq gnus-parameters
>>> '((".*"
>>> (posting-style
>>> (name "gfp")
>>> (address "gottfried@posteo.de")
>>> ;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
>>> ))))
>>> (setq message-send-mail-function 'smtpmail-send-it
>>> smtpmail-smtp-server "posteo.de"
>>> smtpmail-smtp-service 465)
>>> ;; ~/.authinfo
>>> machine posteo.de port 465 login gottfried@posteo.de password PASSWORD
>>> --8<---------------cut here---------------end--------------->8---
>>> Note that I like to use `gnus-parameters' as one-stop shop for
>>> setting
>>> all parameters for my groups, incl. the posting style.
>>> Best, Arash
>>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-08 22:11 ` gfp
2025-01-08 22:36 ` Arash Esbati
2025-01-09 3:30 ` Leo Butler
@ 2025-01-10 11:59 ` gfp
2025-01-10 12:28 ` Eric S Fraga
2025-01-10 12:47 ` Arash Esbati
2 siblings, 2 replies; 31+ messages in thread
From: gfp @ 2025-01-10 11:59 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 4828 bytes --]
Hi Arash,
I put your gnus.el proposals in my gnus.el
(because mine didn´t work today in sending emails).
when sending emails from gnus there was a problem with your proposal:
opening Emacs the scratch buffer said:
Debugger entered--Lisp error: (void-variable machine)
load-with-code-conversion("/home/gfp/.config/emacs/gnus.el"
"/home/gfp/.config/emacs/gnus.el" nil nil)
load-file("/home/gfp/.config/emacs/gnus.el")
load-with-code-conversion("/home/gfp/.config/emacs/init.el"
"/home/gfp/.config/emacs/init.el" t t)
load("/home/gfp/.config/emacs/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode
0x1287f5b7c48bb0da>) #f(compiled-function () #<bytecode
0x4d131ce0e73e6cb>) t)
command-line()
normal-top-level()
my gnus.el:
;; get emails
(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
'((nnimap "posteo"
(nnimap-address "posteo.de")
(nnnimap-user "gottfried@posteo.de")
(nnimap-authenticator login)
(nnimap-stream ssl)
(nnimap-server-port 993))))
;; send emails according to Arash Esbati
(setq gnus-parameters
'((".*"
(posting-style
(name "gfp")
(address "gottfried@posteo.de")
;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
))))
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-server "posteo.de"
smtpmail-smtp-service 465)
;; ~/.authinfo
machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD.
Am 08.01.25 um 23:11 schrieb gfp:
> Hi Arash,
>
> thanks for your help.
> I appreciate that very much.
>
> 1.
> How do you do this? to get this line:
> --8<---------------cut here---------------start------------->8---
>
> 2.
> I fiddled around for many hours today to get gnus SMTP working
> and to my own great astonishment
> I just managed it some seconds before I got your email.
>
> my gnus.el:
> ;; get emails
> (setq gnus-select-method '(nnnil ""))
> (setq gnus-secondary-select-methods
> '((nnimap "posteo"
> (nnimap-address "posteo.de")
> (nnnimap-user "gottfried@posteo.de")
> (nnimap-authenticator login)
> (nnimap-stream ssl)
> (nnimap-server-port 993))))
>
> ;; Reply emails
> (setq gnus-posting-styles
> '((smtpmail-smtp-service)
> (smtpmail-smtp-server "smtp.posteo.de")
> (smtpmail-smtp-user "gottfried@posteo.de")
> (smtpmail-smtp-port 465)))
>
>
> So I don´t need your help at the moment. But I will keep it as record,
> in case I need it.
>
> Interestingly even I changed my /.authinfo file into /.authinfo.gpg
> it worked.
>
> I am happy,
> but unfortunately it takes many hours
> to set up every small step in Emacs and Gnus.
>
> Further questions will arise...
>
>
> Kind regards
>
> Gottfried
>
>
>
> Am 08.01.25 um 21:53 schrieb Arash Esbati:
>> gfp <gfp@posteo.at> writes:
>>
>>> My gnus.el:
>>>
>>> Reply to mails with matching email address
>>> (setq gnus-posting-styles
>>> '((address "gottfried <gottfried@posteo.de>")
>>> ("X-Message-SMTP-Method" "smtp Posteo-posteo.de 465
>>> gottfried@posteo.de")))
>>>
>>>
>>> in the gnus manual it says:
>>> ;(setq message-send-mail-function 'smtpmail-send-it
>>> ; smtpmail-default-smtp-server "smtp Posteo-posteo.de
>>> 465 gottfried@posteo.de")
>>>
>>> but it doesn´t work as well.
>>
>> I don't use posteo, but I think the following snippets should get you
>> going:
>>
>> --8<---------------cut here---------------start------------->8---
>> ;; ~/.gnus
>> (setq gnus-parameters
>> '((".*"
>> (posting-style
>> (name "gfp")
>> (address "gottfried@posteo.de")
>> ;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
>> ))))
>>
>> (setq message-send-mail-function 'smtpmail-send-it
>> smtpmail-smtp-server "posteo.de"
>> smtpmail-smtp-service 465)
>>
>> ;; ~/.authinfo
>> machine posteo.de port 465 login gottfried@posteo.de password PASSWORD
>> --8<---------------cut here---------------end--------------->8---
>>
>> Note that I like to use `gnus-parameters' as one-stop shop for setting
>> all parameters for my groups, incl. the posting style.
>>
>> Best, Arash
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 11:59 ` gfp
@ 2025-01-10 12:28 ` Eric S Fraga
2025-01-10 12:47 ` Arash Esbati
1 sibling, 0 replies; 31+ messages in thread
From: Eric S Fraga @ 2025-01-10 12:28 UTC (permalink / raw)
To: help-gnu-emacs
Response below/inline for email gfp wrote:
> (original email sent 10 Jan 2025 at 11:59)
>
> Debugger entered--Lisp error: (void-variable machine)
[...]
> ;; ~/.authinfo
> machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD.
These last two lines do not belong in your gnus.el file. They indicate
that you need the "machine" line in your .authinfo file.
--
Eric S Fraga via gnus (Emacs 31.0.50 2025-01-06) on Debian 12.8
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 11:59 ` gfp
2025-01-10 12:28 ` Eric S Fraga
@ 2025-01-10 12:47 ` Arash Esbati
2025-01-10 21:07 ` Gottfried
1 sibling, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-10 12:47 UTC (permalink / raw)
To: gfp; +Cc: help-gnu-emacs@gnu.org
gfp <gfp@posteo.at> writes:
> I put your gnus.el proposals in my gnus.el
> (because mine didn´t work today in sending emails).
>
> when sending emails from gnus there was a problem with your proposal:
>
> opening Emacs the scratch buffer said:
>
> Debugger entered--Lisp error: (void-variable machine)
> load-with-code-conversion("/home/gfp/.config/emacs/gnus.el"
> "/home/gfp/.config/emacs/gnus.el" nil nil)
> load-file("/home/gfp/.config/emacs/gnus.el")
> load-with-code-conversion("/home/gfp/.config/emacs/init.el"
> "/home/gfp/.config/emacs/init.el" t t)
> load("/home/gfp/.config/emacs/init" noerror nomessage)
> startup--load-user-init-file(#f(compiled-function () #<bytecode
> 0x1287f5b7c48bb0da>) #f(compiled-function () #<bytecode
> 0x4d131ce0e73e6cb>) t)
> command-line()
> normal-top-level()
This is expected if you have this line also in your ~/.gnus:
machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD
My proposal was more to have this part in your ~/.gnus:
--8<---------------cut here---------------start------------->8---
;; get emails
(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
'((nnimap "posteo"
(nnimap-address "posteo.de")
(nnnimap-user "gottfried@posteo.de")
(nnimap-authenticator login)
(nnimap-stream ssl)
(nnimap-server-port 993))))
;; send emails according to Arash Esbati
(setq gnus-parameters
'((".*"
(posting-style
(name "gfp")
(address "gottfried@posteo.de")
;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
))))
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-server "posteo.de"
smtpmail-smtp-service 465)
--8<---------------cut here---------------end--------------->8---
and add this single line to your ~/.authinfo:
--8<---------------cut here---------------start------------->8---
machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD
--8<---------------cut here---------------end--------------->8---
I admit I didn't spell it out as I did now. I thought you would parse
the ;; ~/.authinfo in my last message.
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 12:47 ` Arash Esbati
@ 2025-01-10 21:07 ` Gottfried
2025-01-10 21:10 ` Gottfried
2025-01-11 7:45 ` Eli Zaretskii
0 siblings, 2 replies; 31+ messages in thread
From: Gottfried @ 2025-01-10 21:07 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati
[-- Attachment #1.1.1: Type: text/plain, Size: 2749 bytes --]
Hi,
it occurs a problem in sending mails with gnus regularly.
Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
connection broken by remote peer\n")
What does that mean?
thanks
Gottfried
Am 10.01.25 um 13:47 schrieb Arash Esbati:
> gfp <gfp@posteo.at> writes:
>
>> I put your gnus.el proposals in my gnus.el
>> (because mine didn´t work today in sending emails).
>>
>> when sending emails from gnus there was a problem with your proposal:
>>
>> opening Emacs the scratch buffer said:
>>
>> Debugger entered--Lisp error: (void-variable machine)
>> load-with-code-conversion("/home/gfp/.config/emacs/gnus.el"
>> "/home/gfp/.config/emacs/gnus.el" nil nil)
>> load-file("/home/gfp/.config/emacs/gnus.el")
>> load-with-code-conversion("/home/gfp/.config/emacs/init.el"
>> "/home/gfp/.config/emacs/init.el" t t)
>> load("/home/gfp/.config/emacs/init" noerror nomessage)
>> startup--load-user-init-file(#f(compiled-function () #<bytecode
>> 0x1287f5b7c48bb0da>) #f(compiled-function () #<bytecode
>> 0x4d131ce0e73e6cb>) t)
>> command-line()
>> normal-top-level()
>
> This is expected if you have this line also in your ~/.gnus:
>
> machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD
>
> My proposal was more to have this part in your ~/.gnus:
>
> --8<---------------cut here---------------start------------->8---
> ;; get emails
> (setq gnus-select-method '(nnnil ""))
> (setq gnus-secondary-select-methods
> '((nnimap "posteo"
> (nnimap-address "posteo.de")
> (nnnimap-user "gottfried@posteo.de")
> (nnimap-authenticator login)
> (nnimap-stream ssl)
> (nnimap-server-port 993))))
>
>
> ;; send emails according to Arash Esbati
> (setq gnus-parameters
> '((".*"
> (posting-style
> (name "gfp")
> (address "gottfried@posteo.de")
> ;; ("X-Message-SMTP-Method" "smtp posteo.de 465")
> ))))
>
> (setq message-send-mail-function 'smtpmail-send-it
> smtpmail-smtp-server "posteo.de"
> smtpmail-smtp-service 465)
> --8<---------------cut here---------------end--------------->8---
>
> and add this single line to your ~/.authinfo:
>
> --8<---------------cut here---------------start------------->8---
> machine posteo.de port 465 login gottfried@posteo.de password MYPASSWORD
> --8<---------------cut here---------------end--------------->8---
>
> I admit I didn't spell it out as I did now. I thought you would parse
> the ;; ~/.authinfo in my last message.
>
> Best, Arash
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 21:07 ` Gottfried
@ 2025-01-10 21:10 ` Gottfried
2025-01-11 9:07 ` Arash Esbati
2025-01-11 11:05 ` Michel Verdier
2025-01-11 7:45 ` Eli Zaretskii
1 sibling, 2 replies; 31+ messages in thread
From: Gottfried @ 2025-01-10 21:10 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati
[-- Attachment #1.1.1: Type: text/plain, Size: 1866 bytes --]
Hi,
sorry
this is the whole debugger info:
Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
connection broken by remote peer\n")
network-stream-command(#<process smtpmail<2>> "EHLO Tuxedo\15\n"
"^[0-9]+ .*\15\n")
network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP
session to posteo.de*> "posteo.de" 465 (:type nil :return-list t
:warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
:end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
:always-query-capabilities t :starttls-function #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
:client-certificate t :use-starttls-if-possible t))
open-network-stream("smtpmail" #<buffer *trace of SMTP session to
posteo.de*> "posteo.de" 465 :type nil :return-list t
:warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
:end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
:always-query-capabilities t :starttls-function #<subr
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
:client-certificate t :use-starttls-if-possible t)
smtpmail-via-smtp(("gfp@posteo.at") #<buffer smtpmail temp>)
smtpmail-send-it()
message-multi-smtp-send-mail()
gnus-agent-send-mail()
message--send-mail-maybe-partially()
message-send-mail(nil)
message-send-via-mail(nil)
message-send(nil)
message-send-and-exit(nil)
funcall-interactively(message-send-and-exit nil)
call-interactively(message-send-and-exit nil nil)
command-execute(message-send-and-exit)
Gottfried
Am 10.01.25 um 22:07 schrieb Gottfried:
> Hi,
>
> it occurs a problem in sending mails with gnus regularly.
>
> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
> connection broken by remote peer\n")
>
> What does that mean?
>
> thanks
>
> Gottfried
>
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 21:07 ` Gottfried
2025-01-10 21:10 ` Gottfried
@ 2025-01-11 7:45 ` Eli Zaretskii
2025-01-11 9:49 ` Gottfried
1 sibling, 1 reply; 31+ messages in thread
From: Eli Zaretskii @ 2025-01-11 7:45 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Fri, 10 Jan 2025 21:07:58 +0000
> From: Gottfried <gottfried@posteo.de>
>
> it occurs a problem in sending mails with gnus regularly.
>
> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
> connection broken by remote peer\n")
>
> What does that mean?
It means the SMTP server with which you are communicating to send
email broke the connection in the middle of the session. Usually, the
reason is unstable Internet connection.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 21:10 ` Gottfried
@ 2025-01-11 9:07 ` Arash Esbati
2025-01-11 9:47 ` Gottfried
2025-01-11 11:05 ` Michel Verdier
1 sibling, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-11 9:07 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> this is the whole debugger info:
>
> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
> connection broken by remote peer\n")
> network-stream-command(#<process smtpmail<2>> "EHLO Tuxedo\15\n"
> "^[0-9]+ .*\15\n")
> network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP
> session to posteo.de*> "posteo.de" 465 (:type nil :return-list t
> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
> :always-query-capabilities t :starttls-function #<subr
> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
> :client-certificate t :use-starttls-if-possible t))
> open-network-stream("smtpmail" #<buffer *trace of SMTP session to
> posteo.de*> "posteo.de" 465 :type nil :return-list t
> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
> :always-query-capabilities t :starttls-function #<subr
> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
> :client-certificate t :use-starttls-if-possible t)
> smtpmail-via-smtp(("gfp@posteo.at") #<buffer smtpmail temp>)
I can't tell what's going wrong, sorry. I just saw this line
smtpmail-via-smtp(("gfp@posteo.at")
and the setup until now was about another mail address. Not sure if
this is relevant, though.
You can set `smtpmail-debug-info' to t, trigger the issue again and
inspect the buffer *trace of SMTP session to <server>*. Maybe that
helps.
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 9:07 ` Arash Esbati
@ 2025-01-11 9:47 ` Gottfried
2025-01-11 10:21 ` Gottfried
2025-01-11 10:25 ` Arash Esbati
0 siblings, 2 replies; 31+ messages in thread
From: Gottfried @ 2025-01-11 9:47 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati
[-- Attachment #1.1.1: Type: text/plain, Size: 2005 bytes --]
Hi,
> You can set `smtpmail-debug-info' to t, trigger the issue again and
>> inspect the buffer *trace of SMTP session to <server>*. Maybe that
>> helps.
>>
Sorry, but how can I do this?
Where can I set ´smtpmail-debug-info´ to t?
thanks for help
Gottfried
Am 11.01.25 um 10:07 schrieb Arash Esbati:
> Gottfried <gottfried@posteo.de> writes:
>
>> this is the whole debugger info:
>>
>> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
>> connection broken by remote peer\n")
>> network-stream-command(#<process smtpmail<2>> "EHLO Tuxedo\15\n"
>> "^[0-9]+ .*\15\n")
>> network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP
>> session to posteo.de*> "posteo.de" 465 (:type nil :return-list t
>> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
>> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
>> :always-query-capabilities t :starttls-function #<subr
>> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
>> :client-certificate t :use-starttls-if-possible t))
>> open-network-stream("smtpmail" #<buffer *trace of SMTP session to
>> posteo.de*> "posteo.de" 465 :type nil :return-list t
>> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
>> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
>> :always-query-capabilities t :starttls-function #<subr
>> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
>> :client-certificate t :use-starttls-if-possible t)
>> smtpmail-via-smtp(("gfp@posteo.at") #<buffer smtpmail temp>)
>
> I can't tell what's going wrong, sorry. I just saw this line
>
> smtpmail-via-smtp(("gfp@posteo.at")
>
> and the setup until now was about another mail address. Not sure if
> this is relevant, though.
>
> You can set `smtpmail-debug-info' to t, trigger the issue again and
> inspect the buffer *trace of SMTP session to <server>*. Maybe that
> helps.
>
> Best, Arash
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 7:45 ` Eli Zaretskii
@ 2025-01-11 9:49 ` Gottfried
0 siblings, 0 replies; 31+ messages in thread
From: Gottfried @ 2025-01-11 9:49 UTC (permalink / raw)
To: Eli Zaretskii, help-gnu-emacs@gnu.org
[-- Attachment #1.1.1: Type: text/plain, Size: 744 bytes --]
Hi,
thanks for help
Interestingly this happens in Emacs, but with Thunderbird I don´t have
this problem.
So there must be a problem with Emacs or my settings in Emacs, I guess
Gottfried
Am 11.01.25 um 08:45 schrieb Eli Zaretskii:
>> Date: Fri, 10 Jan 2025 21:07:58 +0000
>> From: Gottfried <gottfried@posteo.de>
>>
>> it occurs a problem in sending mails with gnus regularly.
>>
>> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
>> connection broken by remote peer\n")
>>
>> What does that mean?
>
> It means the SMTP server with which you are communicating to send
> email broke the connection in the middle of the session. Usually, the
> reason is unstable Internet connection.
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 9:47 ` Gottfried
@ 2025-01-11 10:21 ` Gottfried
2025-01-11 10:37 ` Arash Esbati
2025-01-11 10:25 ` Arash Esbati
1 sibling, 1 reply; 31+ messages in thread
From: Gottfried @ 2025-01-11 10:21 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati
[-- Attachment #1.1.1: Type: text/plain, Size: 2805 bytes --]
Hi,
I have set up
gottfried@posteo.de
as the main Email Address, through which I can use the Posteo Email Provider
.
But I have a second Email address in Posteo, which is an Alias
and I use this mainly.
This address is:
gfp@posteo.at
In Thunderbird I can use both. I can send emails with both addresses.
May be that´s the problem in Emacs Gnus.
But sometimes both addresses work in Gnus, I sent emails from both mail
addresses.
It that is not the problem, than what else?
Thanks for your thoughts
I appreciate the GNU Emacs community/family and am thankfully for it.
Team work brings always the best results.
Gottfried
Am 11.01.25 um 10:47 schrieb Gottfried:
> Hi,
>
>
>> You can set `smtpmail-debug-info' to t, trigger the issue again and
>>> inspect the buffer *trace of SMTP session to <server>*. Maybe that
>>> helps.
>>>
>
> Sorry, but how can I do this?
> Where can I set ´smtpmail-debug-info´ to t?
>
> thanks for help
>
> Gottfried
>
>
> Am 11.01.25 um 10:07 schrieb Arash Esbati:
>> Gottfried <gottfried@posteo.de> writes:
>>
>>> this is the whole debugger info:
>>>
>>> Debugger entered--Lisp error: (error "Process smtpmail<2> not running:
>>> connection broken by remote peer\n")
>>> network-stream-command(#<process smtpmail<2>> "EHLO Tuxedo\15\n"
>>> "^[0-9]+ .*\15\n")
>>> network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP
>>> session to posteo.de*> "posteo.de" 465 (:type nil :return-list t
>>> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
>>> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
>>> :always-query-capabilities t :starttls-function #<subr
>>> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
>>> :client-certificate t :use-starttls-if-possible t))
>>> open-network-stream("smtpmail" #<buffer *trace of SMTP session to
>>> posteo.de*> "posteo.de" 465 :type nil :return-list t
>>> :warn-unless-encrypted nil :capability-command "EHLO Tuxedo\15\n"
>>> :end-of-command "^[0-9]+ .*\15\n" :success "^2.*\n"
>>> :always-query-capabilities t :starttls-function #<subr
>>> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45>
>>> :client-certificate t :use-starttls-if-possible t)
>>> smtpmail-via-smtp(("gfp@posteo.at") #<buffer smtpmail temp>)
>>
>> I can't tell what's going wrong, sorry. I just saw this line
>>
>> smtpmail-via-smtp(("gfp@posteo.at")
>>
>> and the setup until now was about another mail address. Not sure if
>> this is relevant, though.
>>
>> You can set `smtpmail-debug-info' to t, trigger the issue again and
>> inspect the buffer *trace of SMTP session to <server>*. Maybe that
>> helps.
>>
>> Best, Arash
>>
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 9:47 ` Gottfried
2025-01-11 10:21 ` Gottfried
@ 2025-01-11 10:25 ` Arash Esbati
2025-01-11 10:59 ` Gottfried
1 sibling, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-11 10:25 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> Sorry, but how can I do this?
> Where can I set ´smtpmail-debug-info´ to t?
Append this form to your .gnus file and restart Emacs.
(setq smtpmail-debug-info t)
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 10:21 ` Gottfried
@ 2025-01-11 10:37 ` Arash Esbati
0 siblings, 0 replies; 31+ messages in thread
From: Arash Esbati @ 2025-01-11 10:37 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> I have set up gottfried@posteo.de as the main Email Address, through
> which I can use the Posteo Email Provider.
Does the setup for this address work, i.e., receiving and sending mails
with Gnus?
> But I have a second Email address in Posteo, which is an Alias
> and I use this mainly.
> This address is:
> gfp@posteo.at
>
> In Thunderbird I can use both. I can send emails with both addresses.
> May be that´s the problem in Emacs Gnus.
You can teach Gnus this as well. In my setup, I'm using more than 2
mail addresses, and it works.
> But sometimes both addresses work in Gnus, I sent emails from both
> mail addresses.
I urge to solve one issue after the other. Try to set up one address
correctly, and once it really works, then go on to next thing.
> Thanks for your thoughts
See above.
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 10:25 ` Arash Esbati
@ 2025-01-11 10:59 ` Gottfried
2025-01-11 11:16 ` Arash Esbati
0 siblings, 1 reply; 31+ messages in thread
From: Gottfried @ 2025-01-11 10:59 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs
[-- Attachment #1.1.1: Type: text/plain, Size: 814 bytes --]
Hi,
When opening gnus and sending a mail the debbugger showed again the same
problems.
> You can set `smtpmail-debug-info' to t, trigger the issue again and
> inspect the buffer *trace of SMTP session to <server>*. Maybe that
> helps.
So I checked the buffer ´trace of SMTP session to <server>´
and it opened the file:
smtpmail.el.gz
and
network-stream.el.gz
I scrolled through it, but those are set .el files for gnus.
I don´t have enough knowledge to deal with those.
Gottfried
Am 11.01.25 um 11:25 schrieb Arash Esbati:
> Gottfried <gottfried@posteo.de> writes:
>
>> Sorry, but how can I do this?
>> Where can I set ´smtpmail-debug-info´ to t?
>
> Append this form to your .gnus file and restart Emacs.
>
> (setq smtpmail-debug-info t)
>
> Best, Arash
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-10 21:10 ` Gottfried
2025-01-11 9:07 ` Arash Esbati
@ 2025-01-11 11:05 ` Michel Verdier
2025-01-11 11:45 ` Gottfried
1 sibling, 1 reply; 31+ messages in thread
From: Michel Verdier @ 2025-01-11 11:05 UTC (permalink / raw)
To: help-gnu-emacs
On 2025-01-10, Gottfried wrote:
> network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP session to
> posteo.de*> "posteo.de" 465 (:type nil :return-list t :warn-unless-encrypted
> nil :capability-command "EHLO Tuxedo\15\n" :end-of-command "^[0-9]+ .*\15\n"
> :success "^2.*\n" :always-query-capabilities t :starttls-function #<subr
> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45> :client-certificate t
> :use-starttls-if-possible t))
Do you use SSL or STARTTLS ? posteo.de SSL is on 465 but STARTTLS is on
587. Check thunderbird parameters against gnus.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 10:59 ` Gottfried
@ 2025-01-11 11:16 ` Arash Esbati
2025-01-11 12:07 ` Gottfried
0 siblings, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-11 11:16 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> So I checked the buffer ´trace of SMTP session to <server>´
> and it opened the file:
> smtpmail.el.gz
> and
> network-stream.el.gz
What does this mean? The trace buffer is empty? What is exactly the
name of the buffer you checked? And how did you select that buffer?
In theory, the buffer should be called
*trace of SMTP session to posteo.de*
or something similar. Note the '*' at both ends.
> I scrolled through it, but those are set .el files for gnus.
> I don´t have enough knowledge to deal with those.
I admit I don't understand the 2 lines above.
I don't use smtpmail.el myself, so maybe other users can chime in and
help.
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 11:05 ` Michel Verdier
@ 2025-01-11 11:45 ` Gottfried
2025-01-11 17:49 ` Ralf Doering
0 siblings, 1 reply; 31+ messages in thread
From: Gottfried @ 2025-01-11 11:45 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati, mv524
[-- Attachment #1.1.1: Type: text/plain, Size: 1725 bytes --]
Am 11.01.25 um 12:05 schrieb Michel Verdier:
> On 2025-01-10, Gottfried wrote:
>
>> network-stream-open-starttls("smtpmail" #<buffer *trace of SMTP session to
>> posteo.de*> "posteo.de" 465 (:type nil :return-list t :warn-unless-encrypted
>> nil :capability-command "EHLO Tuxedo\15\n" :end-of-command "^[0-9]+ .*\15\n"
>> :success "^2.*\n" :always-query-capabilities t :starttls-function #<subr
>> F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_45> :client-certificate t
>> :use-starttls-if-possible t))
>
> Do you use SSL or STARTTLS ? posteo.de SSL is on 465 but STARTTLS is on
> 587. Check thunderbird parameters against gnus.
>
Hi,
thanks for bringing this to my attention.
this is an interesting thing.
I thought about this already, but I didn´t follow it up because my emacs
knowledge is too little. Sorry.
Thunderbird uses SSL and not STARTTLS.
The Posteo Provider encourages to use SSL and not STARTTLS, so I put the
SSL 465 and not the STARTTLS 587 into my gnus.el and authinfo file.
I took the Thunderbird settings SSL 465 and put it into /gnus.el and
/.authinfo.
but gnus shows the STARTTLS problems.
In the
smtpmail.el.gz file
(defun smtpmail-query-mtp-server ()...)
it speaks about STARTTLS, and uses 587
So gnus uses STARTTLS
and that´s why problems in sending mails come up.
-> I changed the settings in my gnus.el and /.authinfo file
to 587 and really it works.
I sent emails and it went through.
This was the problem.
This means that Emacs Gnus doesn´t use SSL, but the (older?) STARTTLS type.
Thanks very much for bringing this point to my attention.
Next problem solved.
Kind regards
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 11:16 ` Arash Esbati
@ 2025-01-11 12:07 ` Gottfried
2025-01-11 14:07 ` Arash Esbati
2025-01-11 14:07 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 2 replies; 31+ messages in thread
From: Gottfried @ 2025-01-11 12:07 UTC (permalink / raw)
To: Arash Esbati; +Cc: help-gnu-emacs
[-- Attachment #1.1.1: Type: text/plain, Size: 1135 bytes --]
Hi,
thanks very much for your help.
The buffer
*trace of SMTP session to posteo.de*
opens
smtpmail.el.gz
and in this file there are the gnus smtp settings which are used.
In there, I found that STARTTLS is mentioned with 587
and not SSL with 465
hopefully I made it clear.
Gottfried
Am 11.01.25 um 12:16 schrieb Arash Esbati:
> Gottfried <gottfried@posteo.de> writes:
>
>> So I checked the buffer ´trace of SMTP session to <server>´
>> and it opened the file:
>> smtpmail.el.gz
>> and
>> network-stream.el.gz
>
> What does this mean? The trace buffer is empty? What is exactly the
> name of the buffer you checked? And how did you select that buffer?
>
> In theory, the buffer should be called
>
> *trace of SMTP session to posteo.de*
>
> or something similar. Note the '*' at both ends.
>
>> I scrolled through it, but those are set .el files for gnus.
>> I don´t have enough knowledge to deal with those.
>
> I admit I don't understand the 2 lines above.
>
> I don't use smtpmail.el myself, so maybe other users can chime in and
> help.
>
> Best, Arash
-
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 12:07 ` Gottfried
@ 2025-01-11 14:07 ` Arash Esbati
2025-01-11 14:56 ` Gottfried
2025-01-11 14:07 ` Stefan Monnier via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 31+ messages in thread
From: Arash Esbati @ 2025-01-11 14:07 UTC (permalink / raw)
To: Gottfried; +Cc: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> The buffer
> *trace of SMTP session to posteo.de*
> opens
> smtpmail.el.gz
> and in this file there are the gnus smtp settings which are used.
Ok, I would have expected a trace file where one can see the
communication between Emacs and the server, but well ...
> In there, I found that STARTTLS is mentioned with 587
> and not SSL with 465
>
> hopefully I made it clear.
I have the impression that I should have come up with the right port in
the first place. So this in .gnus:
(setq gnus-parameters
'((".*"
(posting-style
(name "gfp")
(address "gottfried@posteo.de")))))
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-server "posteo.de"
smtpmail-smtp-service 587)
and this in .authinfo:
machine posteo.de port 587 login gottfried@posteo.de password MYPASSWORD
Right? If so, sorry the hassle (The lesson learned is to not give
advice for packages which I don't use myself).
Best, Arash
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 12:07 ` Gottfried
2025-01-11 14:07 ` Arash Esbati
@ 2025-01-11 14:07 ` Stefan Monnier via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 31+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2025-01-11 14:07 UTC (permalink / raw)
To: help-gnu-emacs
> The buffer
> *trace of SMTP session to posteo.de*
> opens
> smtpmail.el.gz
Buffers don't/can't open files, so the above sentence doesn't make sense
to me. The question is what does the buffer *contain*?
Stefan
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 14:07 ` Arash Esbati
@ 2025-01-11 14:56 ` Gottfried
0 siblings, 0 replies; 31+ messages in thread
From: Gottfried @ 2025-01-11 14:56 UTC (permalink / raw)
To: help-gnu-emacs, Arash Esbati
[-- Attachment #1.1.1: Type: text/plain, Size: 1865 bytes --]
Hi,
> Right? If so, sorry the hassle (The lesson learned is to not give
>> advice for packages which I don't use myself).
right, it works, I checked it again.
I am very happy and thankful for your help, even if it took time, but
that was my fault/little knowledge of Gnus/Lisp.
I appreciate every little help, because it points to different things
which are all necessary to consider.
I have learned a lot, and that´s why I would not say you shouldn´t have
given advice for packages which you don´t use yourself.
Your help helped me a lot.
It gave me a starting point to use Gnus and to learn about Emacs/Gnus.
Kind regards
Gottfried
Am 11.01.25 um 15:07 schrieb Arash Esbati:
> Gottfried <gottfried@posteo.de> writes:
>
>> The buffer
>> *trace of SMTP session to posteo.de*
>> opens
>> smtpmail.el.gz
>> and in this file there are the gnus smtp settings which are used.
>
> Ok, I would have expected a trace file where one can see the
> communication between Emacs and the server, but well ...
>
>> In there, I found that STARTTLS is mentioned with 587
>> and not SSL with 465
>>
>> hopefully I made it clear.
>
> I have the impression that I should have come up with the right port in
> the first place. So this in .gnus:
>
> (setq gnus-parameters
> '((".*"
> (posting-style
> (name "gfp")
> (address "gottfried@posteo.de")))))
>
> (setq message-send-mail-function 'smtpmail-send-it
> smtpmail-smtp-server "posteo.de"
> smtpmail-smtp-service 587)
>
> and this in .authinfo:
>
> machine posteo.de port 587 login gottfried@posteo.de password MYPASSWORD
>
> Right? If so, sorry the hassle (The lesson learned is to not give
> advice for packages which I don't use myself).
>
> Best, Arash
>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 11:45 ` Gottfried
@ 2025-01-11 17:49 ` Ralf Doering
2025-01-14 9:07 ` Robert Pluim
0 siblings, 1 reply; 31+ messages in thread
From: Ralf Doering @ 2025-01-11 17:49 UTC (permalink / raw)
To: help-gnu-emacs
Gottfried <gottfried@posteo.de> writes:
> This means that Emacs Gnus doesn´t use SSL, but the (older?) STARTTLS type.
SSL is the older, STARTTLS the more modern one.
Emacs SMTP Library defaults to STARTTLS, see
(info "(smtpmail) Encryption").
You can switch to SSL by setting
(setq smtpmail-stream-type 'ssl).
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: sending mail with gnus
2025-01-11 17:49 ` Ralf Doering
@ 2025-01-14 9:07 ` Robert Pluim
0 siblings, 0 replies; 31+ messages in thread
From: Robert Pluim @ 2025-01-14 9:07 UTC (permalink / raw)
To: Ralf Doering; +Cc: help-gnu-emacs
>>>>> On Sat, 11 Jan 2025 18:49:50 +0100, Ralf Doering <ralf@rdoering.de> said:
Ralf> Gottfried <gottfried@posteo.de> writes:
>> This means that Emacs Gnus doesn´t use SSL, but the (older?) STARTTLS type.
Ralf> SSL is the older, STARTTLS the more modern one.
Ralf> Emacs SMTP Library defaults to STARTTLS, see
Ralf> (info "(smtpmail) Encryption").
Ralf> You can switch to SSL by setting
Ralf> (setq smtpmail-stream-type 'ssl).
Aaagh. No, no, no. SSL is the old name for the more modern TLS, and in
Emacs theyʼre equivalent. STARTTLS refers to first opening a cleartext
connection, and then "upgrading" it to TLS afterwards. For 99.9% of
the population, that makes no difference, but for those with
adverserial governments it allows man-in-the-middle attacks allowing
them to read your email. I strongly recommend using 'tls.
Robert
--
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2025-01-14 9:07 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 13:22 sending mail with gnus gfp
2025-01-08 14:03 ` gfp
2025-01-08 16:17 ` Leo Butler
2025-01-08 20:46 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2025-01-08 20:53 ` Arash Esbati
2025-01-08 22:11 ` gfp
2025-01-08 22:36 ` Arash Esbati
2025-01-09 3:30 ` Leo Butler
2025-01-09 9:16 ` gfp
2025-01-10 11:59 ` gfp
2025-01-10 12:28 ` Eric S Fraga
2025-01-10 12:47 ` Arash Esbati
2025-01-10 21:07 ` Gottfried
2025-01-10 21:10 ` Gottfried
2025-01-11 9:07 ` Arash Esbati
2025-01-11 9:47 ` Gottfried
2025-01-11 10:21 ` Gottfried
2025-01-11 10:37 ` Arash Esbati
2025-01-11 10:25 ` Arash Esbati
2025-01-11 10:59 ` Gottfried
2025-01-11 11:16 ` Arash Esbati
2025-01-11 12:07 ` Gottfried
2025-01-11 14:07 ` Arash Esbati
2025-01-11 14:56 ` Gottfried
2025-01-11 14:07 ` Stefan Monnier via Users list for the GNU Emacs text editor
2025-01-11 11:05 ` Michel Verdier
2025-01-11 11:45 ` Gottfried
2025-01-11 17:49 ` Ralf Doering
2025-01-14 9:07 ` Robert Pluim
2025-01-11 7:45 ` Eli Zaretskii
2025-01-11 9:49 ` Gottfried
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).