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 DF3E1158083 for ; Sat, 31 Aug 2024 20:57:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C5A8E2A75; Sat, 31 Aug 2024 20:57:16 +0000 (UTC) Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7FDEE2A62 for ; Sat, 31 Aug 2024 20:57:15 +0000 (UTC) Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-498d6d67390so1098535137.0 for ; Sat, 31 Aug 2024 13:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725137835; x=1725742635; darn=lists.gentoo.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=TrFWPCx7xLK0nzOpcD5gnXVbpMzmnhSjHcWGtNr9wk8=; b=EAGwsDT5cm4fLQ/liwspOw0zQr6YQkoAq1DAUqFc9JSjDbRTp6U8TaRgSBvnG5oIIg +CU3G+7gVEzBOd7EBfahoLXOvPOH1z02ldvbVDQAcMgN2f+ieyOnWqJD632/rSYuF/Ti QWfwYRfeN7HKsLA+8zBwqpZ0UbJ8JPdX3B5LgWapawesLmyS4dr/2QoW++UN6wEGYP5D 0vdWUFx49Ak+TLIGqSJMEz3OKXltGqmt2/05Mth36xOLNlYWWtFSJCPFOXzXsUnKXETQ 7EkIcfi0M0mqd+qmXpqXx2xrnEit+y367oYd9rXkWxiZQNhLxmQ/Xy3gYB6hMKt3ul2o BJrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725137835; x=1725742635; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TrFWPCx7xLK0nzOpcD5gnXVbpMzmnhSjHcWGtNr9wk8=; b=Qek6FxLQp2RBjcGLvQdXU4X0v/DrpVtomACwS1TVlDR+Eix5twhxMP14QKxjMbHGiB fiZ82C99kWnywpIo0zao/7s1cHPLpHBzoilDz1kt/NR/bhsW7cJLTjN0JuOE9PpCgHB4 poLUi/ZybWgHLHFfLDlOm3SyZSHG8K9juqy1Pd4jkL0O7w/IIZkvge4n2Od+8YoeJeq3 THmT1i8eSdvGetMLwKrAc5OKi8UVK9aL/ERgQw8jw3hgifU4YlxdPt8MmTNcJNO21CeU L97qykncv3GM4gPI+ZsB3XZR1y3qLQ2QwdamnZQhENExOEF8uLbsnEntdtIUPbW3UXCr 5e8Q== X-Gm-Message-State: AOJu0Ywzp6afTtkDMDF3CxIFz9Tsu5i7mbMGFCnJT/tsglEI+MGDxWY/ 8rxL1MosdBLcXulhdwDSUT1qTdIktbsEZ4z+4yN0up0cXI5vwplfTntjnm7kN4ieuWLXx4YpUu8 4qohQU0Nupx7rzbHm1MYYT1Pk15ie9fYnOhQ= X-Google-Smtp-Source: AGHT+IEuQohBDvgPF1+wTMNd9Dw5weq9hVg7KT+mMFr47WvySgptTtGmyWv+SRpP1iOocXMmd9xJkzYkyrWK8Uw51Dw= X-Received: by 2002:a05:6102:3e8e:b0:48f:380a:ca90 with SMTP id ada2fe7eead31-49a5ae9e93dmr13042903137.18.1725137834498; Sat, 31 Aug 2024 13:57:14 -0700 (PDT) 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 References: <1872482.atdPhlSkOF@rogueboard> <5499518.Sb9uPGUboI@rogueboard> In-Reply-To: <5499518.Sb9uPGUboI@rogueboard> From: syscon edm Date: Sat, 31 Aug 2024 14:56:59 -0600 Message-ID: Subject: Re: [gentoo-user] /etc/crontab - sending notification to a different user To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000d063bb062100f3a6" X-Archives-Salt: 002d1217-fa70-44a6-9391-b93ceec4ba55 X-Archives-Hash: ae934105d5d59ebcdb16c6a6b5d527d5 --000000000000d063bb062100f3a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In /etc/postfix/main.cf I only have: myorigin =3D gmail.com If I use: myorigin =3D syscon8@gmail.com I get an error message; Aug 31 14:28:02 i5 postfix/smtp[25841]: 1A31217E00EC: to=3D, relay=3Dsmtp.gmail.com[142.250.99.109]:587, delay=3D0.54, delays=3D0.01/0/0.5/0.03, dsn=3D5.1.3, status=3Dbounced (host smtp.gmail.com[142.250.99.109] said: 553-5.1.3 The recipient address is not a valid RFC 553-5.1.3 5321 address. my /etc/postfix/sender_canonical /^root@gmail\.com$/ syscon8@gmail.com On Sat, Aug 31, 2024 at 2:17=E2=80=AFPM Michael = wrote: > On Saturday, 31 August 2024 20:34:49 BST syscon edm wrote: > > Sorry, the cron entry should be: > > 55 12 * * * mv /var/spool/asterisk/monitor/* /home/thelma/mon/ > > 1-5 is Monday to Friday > > > > mail.log: > > > > Aug 31 13:24:01 i5 postfix/qmgr[32301]: 0880F17E00EB: from=3D< > > syscon8@gmail.com>, size=3D699, nrcpt=3D1 (queue active) > > Aug 31 13:24:02 i5 postfix/smtp[9110]: 0880F17E00EB: to=3D >, > > orig_to=3D, > > You probably have in your /etc/postfix/main.cf: > > myorigin =3D $some_user@some_domain.com > > where some_user@some_domain.com is not syscon8@gmail.com, but root@*? > > > > relay=3Dsmtp.gmail.com[142.250.99.108]:587, delay=3D1.3, > > delays=3D0.02/0.01/0.55/0.68, dsn=3D2.0.0, status=3Dsent (250 2.0.0 OK > > 1725132231 98e67ed59e1d1-2d85b0fdf44sm6088797a91.6 - gsmtp) > > Aug 31 13:24:02 i5 postfix/qmgr[32301]: 0880F17E00EB: removed > > > > Gmail is accepting the mail but it is sending to "root" instead of > "syscon8" > > > > My cat /etc/mail/aliases > > # Basic system aliases -- these MUST be present. > > MAILER-DAEMON: postmaster > > postmaster: root > > > > # General redirections for pseudo accounts. > > adm: root > > bin: root > > daemon: root > > exim: root > > lp: root > > mail: root > > named: root > > nobody: root > > postfix: root > > > > # Well-known aliases -- these should be filled in! > > root: syscon8@gmail.com > > fd: syscon8@gmail.com > > # operator: > > > > # Standard RFC2142 aliases > > abuse: postmaster > > ftp: root > > hostmaster: root > > news: usenet > > noc: root > > security: root > > usenet: root > > uucp: root > > webmaster: root > > www: webmaster > > You can grep your postfix files for root and root@ to find the culprit. > It > seems your postfix configuration is rewriting the 'Send As' name, if not > whole > address. My Postfix knowledge is rather out of date, but current users > should > be able to advise with a specific fix for this problem. > --000000000000d063bb062100f3a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In=C2=A0/etc/postfix/main.cf I only have:


If I use:=C2=A0=C2=A0
myorigin =3D syscon8@gmail.com

I get an error message;
Aug 31 14:28:0= 2 i5 postfix/smtp[25841]: 1A31217E00EC: to=3D<root@syscon8@gmail.com>, relay=3Dsmtp.gmail.com[142.250.99.109]:587, delay=3D0.54, delays=3D0.01/0/0.5= /0.03, dsn=3D5.1.3, status=3Dbounced (host smtp.gmail.com[142.250.99.109] said: 553-5.1.3 The recipient address = <root@syscon8@gmail.com> is not a va= lid RFC 553-5.1.3 5321 address.

my /etc/postfix/se= nder_canonical=C2=A0
/^root@gmail\.com$/ syscon8@gmail.com

<= div dir=3D"ltr" class=3D"gmail_attr">On Sat, Aug 31, 2024 at 2:17=E2=80=AFP= M Michael <confabulate@kintz= ios.com> wrote:
On Saturday, 31 August 2024 20:34:49 BST syscon edm wrote:
> Sorry, the cron entry should be:
> 55 12 * * * mv /var/spool/asterisk/monitor/* /home/thelma/mon/
> 1-5 is Monday to Friday
>
> mail.log:
>
> Aug 31 13:24:01 i5 postfix/qmgr[32301]: 0880F17E00EB: from=3D<
> syscon8@gmail.c= om>, size=3D699, nrcpt=3D1 (queue active)
> Aug 31 13:24:02 i5 postfix/smtp[9110]: 0880F17E00EB: to=3D<root@gmail.com>,
> orig_to=3D<root>,

You probably have in your /etc/postfix/main.cf:

myorigin =3D $some_user@some_domain.com

where some_u= ser@some_domain.com is not syscon8@gmail.com, but root@*?


> relay=3Dsmtp.gmail.com[142.250.99.108]:587, delay=3D1.3,
> delays=3D0.02/0.01/0.55/0.68, dsn=3D2.0.0, status=3Dsent (250 2.0.0 OK=
>=C2=A0 1725132231 98e67ed59e1d1-2d85b0fdf44sm6088797a91.6 - gsmtp)
> Aug 31 13:24:02 i5 postfix/qmgr[32301]: 0880F17E00EB: removed
>
> Gmail is accepting the mail but it is sending to "root" inst= ead of "syscon8"
>
> My cat /etc/mail/aliases
> # Basic system aliases -- these MUST be present.
> MAILER-DAEMON:=C2=A0 =C2=A0 =C2=A0 postmaster
> postmaster:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
>
> # General redirections for pseudo accounts.
> adm:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> bin:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> daemon:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> exim:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> lp:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root<= br> > mail:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> named:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> nobody:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> postfix:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
>
> # Well-known aliases -- these should be filled in!
> root:=C2=A0 =C2=A0syscon8@gmail.com
> fd:=C2=A0 =C2=A0syscon8@gmail.com
> # operator:
>
> # Standard RFC2142 aliases
> abuse:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 postmaster
> ftp:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> hostmaster:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> news:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0usenet
> noc:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> security:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> usenet:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> uucp:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root
> webmaster:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root
> www:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 webmaster<= br>
You can grep your postfix files for root and root@ to find the culprit.=C2= =A0 It
seems your postfix configuration is rewriting the 'Send As' name, i= f not whole
address.=C2=A0 My Postfix knowledge is rather out of date, but current user= s should
be able to advise with a specific fix for this problem.
--000000000000d063bb062100f3a6--