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.help Subject: Re: smtpmail-send-queued-mail fails with error 504 5.5.2 Date: Tue, 23 Jan 2024 16:51:59 +0000 Message-ID: <3aea55e22ae89089d27ced95236956e3@posteo.net> References: <84782f317f0c10702277723d9e50449b@posteo.net> <87bk9dmqr0.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="16074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Manuel Giraud Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 23 17:52:49 2024 Return-path: Envelope-to: geh-help-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 1rSK10-0003tv-VP for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Jan 2024 17:52:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSK0U-0004ru-Sq; Tue, 23 Jan 2024 11:52:15 -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 1rSK0N-0004r0-D8 for help-gnu-emacs@gnu.org; Tue, 23 Jan 2024 11:52:08 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSK0K-00053S-OZ for help-gnu-emacs@gnu.org; Tue, 23 Jan 2024 11:52:06 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AB49B240104 for ; Tue, 23 Jan 2024 17:52:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706028720; bh=n/ALW+uM8Aj6+fcerKATzG6AeMtjAZwjRwYqvL0Evkc=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=mxS59vEwL86AZnbk86aebhU7+Pq1QoT5bYUYSefVcrm7yGZC0y0Anq6E+X4K0Nr4J lR3DdZDA3yTHE2AKdrjDQLIBnjf316ZByMiMjeD2MT9qnczAjsrMFiaSBC1WbIUQbS aLMUvjJ+gr6HWjtPrUMkNLmYnI4HJY83VQviqJNsie5ui2VJsLmk5FHnigPGcRTZ7V m4HPs4w25xO2DYKOY/H9x7You3CXYaLTKONXN5KTfPM1WLH2xBWreDNAMyqTBo9rvw Gf80yLkcX3SnRsoHIe/oHyKczwwKha9s16y/NniLcaAdsEZL4o7jPoVmsiJRwzh7WE 8vx4yvoZ0WHfg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TKCmc0L9hz6tw7; Tue, 23 Jan 2024 17:51:59 +0100 (CET) In-Reply-To: <87bk9dmqr0.fsf@ledu-giraud.fr> Received-SPF: pass client-ip=185.67.36.66; envelope-from=rameiko87@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145789 Archived-At: > > I've never touch 'message-user-fqdn' in years of doing mail into Emacs. > But then your Message-Id is not RFC compliant? This is the reason why I set it. The default address in the From: field is usernameofmymachine@message-user-fqdn. This is already strange because it should use 'user-mail-address' since message-user-fqdn is explicitly reserved for Message-Id as the description of this variable says. I guess this is the first question we need to answer. 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! 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. On 22.01.2024 14:39, Manuel Giraud wrote: > >> Hello, >> >> Could you please kindly help me with this? When I have >> smtpmail-queue-mail set to nil, sending emails works beautifully. I >> then change smtpmail-queue-mail to t: then the text of the email is >> saved in my queued email folder together with another file specifying >> the value of smtpmail-recipient-address-list (it contains the same >> address as in the To: header of my message). When I invoke >> smtpmail-send-queued-mail I get the following error: >> >> Sending failed: 504 5.5.2 : Sender address >> rejected: need fully-qualified address >> >> The strange thing is that usernameofmymachine@fedora would be the >> default address to appear in the From: header of C-x m, but >> 1. I set the variable message-user-fqdn (and it's different from >> "fedora"), so actually when I press C-x m I have >> usernameofmymachine@message-user-fqdn which is already different from >> usernameofmymachine@fedora > > Hi, > > I've never touch 'message-user-fqdn' in years of doing mail into Emacs. > >> 2. Before sending (that is to say, queuing), I do change the From: to >> my email address, and it appears correctly on the text file saved in >> the queued folder! > > Hum, what is your value of 'user-mail-address'? When it is set > correctly, you shouldn't have to manually edit your from header.