From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: rameiko87@posteo.net Newsgroups: gmane.emacs.bugs Subject: bug#68686: [Bug] smtpmail-send-queued-mail ignores some headers of the message it's sending! Date: Wed, 24 Jan 2024 17:25:27 +0000 Message-ID: <435ab85bfa3b3fbc9e923a14c3b3e260@posteo.net> References: <87v87i7mb1.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4730"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68686@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 24 18:26:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSh0s-0000w6-Ha for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Jan 2024 18:26:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSh0g-00079R-G6; Wed, 24 Jan 2024 12:25:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSh0f-00078h-5P for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 12:25:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSh0e-0007cq-TV for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 12:25:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSh0k-0006At-7l for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 12:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: rameiko87@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jan 2024 17:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68686 X-GNU-PR-Package: emacs Original-Received: via spool by 68686-submit@debbugs.gnu.org id=B68686.170611714623707 (code B ref 68686); Wed, 24 Jan 2024 17:26:02 +0000 Original-Received: (at 68686) by debbugs.gnu.org; 24 Jan 2024 17:25:46 +0000 Original-Received: from localhost ([127.0.0.1]:46520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSh0U-0006AJ-2v for submit@debbugs.gnu.org; Wed, 24 Jan 2024 12:25:46 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:51727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSh0R-00069y-Fp for 68686@debbugs.gnu.org; Wed, 24 Jan 2024 12:25:44 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8B010240027 for <68686@debbugs.gnu.org>; Wed, 24 Jan 2024 18:25:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706117131; bh=BrS/AL1GCyBafKu6ULQGsad/dkRDBA+smhoEoHJc8Tk=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=BTIVsknKSGZr4SrMPl3qsdrUFAdhZoOEm2IMTLthDp4AsrINeHSthb7lHy6ktEvLh u7nJOJC0Pcjn7hTBbwXltid4wqkXXtq3HPnkZ+VvQtjHbt+kDIqVVxkwWeFb37I0jP bCoULMnLflNMdkj35K9rnH3oOo1sgbe0kpzX4J6ldJxpo/Pr6Zdqac9fmWj/Rv1UY0 os130UcdSzcPPkzaSKQGpVBlAt3QR7yoUfzBX0s6iefxnGxm4oPSLe3CJi2jkM9jK8 x9nbUXAp7Hk/bTmGxBRlP9NJeNfUN7yy/HVJJJi3rn2Cnwc7WOP7EK1KHSmDA1EpEz X+Z3fLJk0ClCw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TKrSl6F5Tz6twP; Wed, 24 Jan 2024 18:25:27 +0100 (CET) In-Reply-To: <87v87i7mb1.fsf@ledu-giraud.fr> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278806 Archived-At: Try the following to reproduce the core of the bug which I'm talking about on GNU Emacs 29.1: Open emacs as follows: emacs -Q For each of the following lines, do M-: and then paste the line, press enter. (setq message-mail-user-agent t) BUT I THINK EVEN IF YOU SKIP THIS, THE SAME RESULT OCCURS (setq send-mail-function 'smtpmail-send-it) (setq smtpmail-queue-mail t) (setq smtpmail-smtp-server "INSERT YOUR SMTP SERVER HERE") (setq smtpmail-smtp-service 465) (setq smtpmail-stream-type 'ssl) Now generate a new message: C-x m Now fill in the headers To: to one of your addresses, From: to another of your addresses (mine have different domain, and the To: is the same domain as the smtp server), Subject: test, Body: test C-c C-s M-x smtpmail-send-queued-mail Press enter, and I get the following message: smtpmail-send-queued-mail: Sending failed: 504 5.5.2 : Sender address rejected: need fully-qualified address >> Bug Part 1: >> >> The From: header is ignored (from the message as saved in 'queued >> email folder') when sending with smtpmail-send-queued-mail, and takes >> the value of user-mail-address when this wasn't previously customized >> by the user. This is really worrisome! What else is ignored and >> rewritten without warning when invoking smtpmail-send-queued-mail? >> >> Followup to Bug Part 1: >> >> It would be interesting to figure out whether this happens also when >> user-mail-address had been previously customized by the user. >> >> Bug Part 2: >> >> This discrepancy between the behaviour of queued-sending and immediate >> sending (I use the default functions for the most current version of >> Emacs as of today) I consider to be a bug on itself. Because not doing >> things consistently confuses the user (even not doing the *wrong* >> thing consistently confuses the user. In this case the wrong thing is >> rewriting the From: header of every email).