unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: rameiko87@posteo.net
Cc: help-gnu-emacs@gnu.org
Subject: Re: smtpmail-send-queued-mail fails with error 504 5.5.2
Date: Wed, 24 Jan 2024 14:02:24 +0100	[thread overview]
Message-ID: <87mssu995r.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <0808c961e67ac0a8e0295f7cf123755f@posteo.net> (rameiko's message of "Wed, 24 Jan 2024 10:57:39 +0000")

rameiko87@posteo.net writes:

[...]

> when user-mail-address is not set and therefore defaults to
> user@hostmachine (in my case user@fedora), as the description of the
> variable user-mail-address explicitly spells out, then the default
> email address qhen composing a new message somehow ignores this and
> uses user@message-user-fqdn (first thing to fix),

Ok, so I've done the following:
    - emacs -Q
    - M-: (setq message-user-fqdn "elsewhere")
    - M-x message-mail

The "From:" is set to "user@elsewhere" as you, too, observed, right?
This is what you considered to be a bug.  I don't know if it is one but
you're right that this is not documented in 'message-user-fqdn' nor
'user-mail-address'.

> which should instead only be reserved for message-id's (as the
> description of this variable says. Does it happen somewhere else too?
> this is the second thing to fix).

How to fix something that we don't know about?

>>> The second question is why the From header is ignored (from the
>>> message as saved in 'queued email folder') when sending with
>>> smtpmail-send-queued-mail. This is really worrisome!
>
> This looks like another bug.
>
>> Yes, this is something else but I imagine that
>> 'smtpmail-send-queued-mail' respect 'user-mail-address'.
>
> so first of all, it probably does, in the sense that in my case it
> uses user@fedora, so message-user-fqdn does not intervene (silver
> lining). But it should use what I decided to set as header, not
> rewrite the headers without warning!

Yes, probably.  I'm not queuing mail so I should try it first.

>>>  By the way because you ask, the reason why I change the From header
>>>  is that I use a variety of different email addresses for the
>>>  different affiliations which I have.
>> I do this too and it is just a matter of changing
>> 'user-mail-address'
>> and 'smtpmail-smtp-server'.
>
> No, I don't want to change the variable every time!!

It could be just a command away ;-) but…

> I want to keep that variable for the default address, and change the
> headers as I need.

…fair enough too.

> And anyway, why this discrepancy between queued-sending and
> immediate sending? This I consider another bug, because not doing
> things consistently confuses the user (even not doing the *wrong*
> thing consistently confuses the user)

Yes, this is your second bug then.  I'll also try to test with queuing
message.

> smtpmail-smtp-server can stay always the same because mine allows
> spoofing.

Ok.

> I think I will file a few bug reports today

Yes, please do so!
-- 
Manuel Giraud



  reply	other threads:[~2024-01-24 13:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 18:01 smtpmail-send-queued-mail fails with error 504 5.5.2 rameiko87
2024-01-22 13:39 ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-23 16:51   ` rameiko87
2024-01-24  9:07     ` Manuel Giraud via Users list for the GNU Emacs text editor
2024-01-24 10:57       ` rameiko87
2024-01-24 13:02         ` Manuel Giraud via Users list for the GNU Emacs text editor [this message]
2024-01-24 14:26           ` rameiko87
2024-01-24 16:46             ` Manuel Giraud via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mssu995r.fsf@ledu-giraud.fr \
    --to=help-gnu-emacs@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    --cc=rameiko87@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).