From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26D9A15808B for ; Fri, 27 Sep 2024 13:47:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DFCAE2A1B; Fri, 27 Sep 2024 13:47:35 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10529E2A09 for ; Fri, 27 Sep 2024 13:47:35 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1suBJl-0006YJ-MA for gentoo-user@lists.gentoo.org; Fri, 27 Sep 2024 15:47:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: Computer system email no not working since gmail change. Date: Fri, 27 Sep 2024 13:47:26 -0000 (UTC) Message-ID: References: <2284374.iZASKD2KPV@rogueboard> <61ae6f8b-c889-5c7d-1e4a-2ab493f9bfb6@gmail.com> <4624142.cEBGB3zze1@rogueboard> <7f24b60f-b7bd-1a3f-83ca-722f34dcfd65@gmail.com> <7e93df09-d3a9-0710-a9e1-796815d64b83@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (Linux) X-Archives-Salt: 94cbe22d-4908-44c4-8371-14bf332a4d1d X-Archives-Hash: 1415f539ae84228cf4c4fe06f461847c On 2024-09-27, Dale wrote: >>> Sep 26 19:04:26 Gentoo-1 smartd[18737]: Executing test of to root ... >>> Sep 26 19:04:36 Gentoo-1 msmtp[18815]: host=smtp.gmail.com tls=on >>> auth=off from=rdalek1967gmail.com recipients=root errormsg='the >>> server sent an empty reply' exitcode=EX_PROTOCOL >> According to that message, the msmtp auth option is off. It needs to >> be on. > This is what I copied from yours, with obvious bits changed.  I'll put > "noneya" in those, so you know that isn't the real info.  > > syslog LOG_MAIL > > account    default > maildomain gmail.org > syslog on > from rdalek1967gmail.com > host smtp.gmail.com > port 465 > tls on > tls_certcheck off > tls_starttls off > auth on > user rdalek1967@gmail.com > password "noneya"  # That is the 16 character thing with spaces in it.  That's not the config that msmtp is using. See in the log where it says "auth=off"? It should say "auth=on". And I think it's also using the wrong port number (or you should turn tls_startls off). Here's what my log looks like: Sep 26 15:57:47 aleph msmtp[21363]: host=smtp.gmail.com tls=on auth=on user=grant.b.edwards@gmail.com from=grant.b.edwards@gmail.com recipients=@.com mailsize=317 smtpstatus=250 smtpmsg='250 2.0.0 OK 1727384267 e9e14a558f8ab-3a344d605d5sm1326875ab.7 - gsmtp' exitcode=EX_OK > I'm by no means a expert on this but I see 'auth on' in there.  I see > what you talking about in the error to tho.  As I mentioned in other > reply, I think something else is amiss somewhere.  If that config works > with gmail for you, it should work here.  msmtp is not using the configuration you showed above. > On the root thing, I have a alias set up in some file that tells it that > root is my gmail address.  It worked before but maybe not now.  File is > here:  /etc/mail/aliases  It has this info about root being my gmail > address.  Msmtp doesn't read an alias file by default. You need to add an alias command to the msmtp config: alias /etc/mail/aliases Then run msmtp from the command line like this so you can see all the settings and the messages exchanged. Pay particular attention to where it's reading the configuration from, port number, and tls_starttls. Also look to see where it's reading aliases from. $ echo foo | msmtp -v bogus msmtp: recipient address bogus not accepted by the server msmtp: server message: 553-5.1.3 The recipient address is not a valid RFC 5321 address. For msmtp: server message: 553-5.1.3 more information, go to msmtp: server message: 553-5.1.3 https://support.google.com/a/answer/3221692 and review RFC 5321 msmtp: server message: 553 5.1.3 specifications. 8926c6da1cb9f-4d8888f9f55sm483180173.166 - gsmtp msmtp: could not send mail (account default from /etc/msmtprc) loaded system configuration file /etc/msmtprc ignoring user configuration file /home/grante/.msmtprc: No such file or directory falling back to default account *** using account default from /etc/msmtprc host = smtp.gmail.com *** port = 465 source ip = (not set) proxy host = (not set) proxy port = 0 socket = (not set) timeout = off protocol = smtp domain = localhost *** auth = choose user = grant.b.edwards@gmail.com password = * passwordeval = (not set) ntlmdomain = (not set) *** tls = on *** tls_starttls = off tls_trust_file = system tls_crl_file = (not set) tls_fingerprint = (not set) tls_key_file = (not set) tls_cert_file = (not set) tls_certcheck = off tls_min_dh_prime_bits = (not set) tls_priorities = (not set) tls_host_override = (not set) auto_from = off maildomain = gmail.org from = grant.b.edwards@gmail.com from_full_name = (not set) allow_from_override = on set_from_header = auto set_date_header = auto remove_bcc_headers = on undisclosed_recipients = off dsn_notify = (not set) dsn_return = (not set) logfile = (not set) logfile_time_format = (not set) syslog = LOG_MAIL *** aliases = (not set) reading recipients from the command line TLS session parameters: (TLS1.3)-(ECDHE-X25519)-(ECDSA-SECP256R1-SHA256)-(AES-256-GCM) TLS certificate information: Subject: CN=smtp.gmail.com Issuer: C=US,O=Google Trust Services,CN=WR2 Validity: Activation time: Mon 26 Aug 2024 02:12:09 AM CDT Expiration time: Mon 18 Nov 2024 01:12:08 AM CST Fingerprints: SHA256: 01:AF:90:6E:FC:06:5C:B5:5D:B9:55:AB:27:07:B0:E7:8C:4F:EA:46:70:67:86:A9:E0:F1:BB:F7:5A:2E:1B:64 SHA1 (deprecated): F2:B7:9C:3C:4C:FD:57:31:37:BB:8D:F6:DD:F7:FB:A2:D7:09:B2:BD <-- 220 smtp.gmail.com ESMTP 8926c6da1cb9f-4d8888f9f55sm483180173.166 - gsmtp --> EHLO localhost <-- 250-smtp.gmail.com at your service, [24.152.157.105] <-- 250-SIZE 35882577 <-- 250-8BITMIME <-- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH <-- 250-ENHANCEDSTATUSCODES <-- 250-PIPELINING <-- 250-CHUNKING <-- 250 SMTPUTF8 --> AUTH PLAIN <**************deleted************************>== <-- 235 2.7.0 Accepted --> MAIL FROM: --> RCPT TO: --> DATA <-- 250 2.1.0 OK 8926c6da1cb9f-4d8888f9f55sm483180173.166 - gsmtp <-- 553-5.1.3 The recipient address is not a valid RFC 5321 address. For <-- 553-5.1.3 more information, go to <-- 553-5.1.3 https://support.google.com/a/answer/3221692 and review RFC 5321 <-- 553 5.1.3 specifications. 8926c6da1cb9f-4d8888f9f55sm483180173.166 - gsmtp