From nobody Tue Nov 05 19:25:17 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xjdbk1qr1z5cTX4 for ; Tue, 05 Nov 2024 19:25:54 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjdbj6bFLz4Ppg for ; Tue, 5 Nov 2024 19:25:53 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-5eb67d926c4so67638eaf.0 for ; Tue, 05 Nov 2024 11:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730834752; x=1731439552; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bs/nB1xxnfu1HR46DVt/JnyGe6Xi8sGwdkjaMRZWIII=; b=F2uAL8FwR/SCoSRbxetylyJrihKb9iDyd1plSVHlv8jDuDwI7uxXia5sUhpnnj41E+ ihn0JWs5SwJIpkU39jQ63ZKWh1rlhTsDS6AM4qEEKwGe2HvS/k6YPHOLbMbB9TegIDI+ Un5edhvPNag1/3TZT1hQ2e/QmP2g5vCoDd1O1n4asdn7I+wojLELSE8eZT9SfIC2z+mJ b/zgskmgzKiX0UaJUvSdMVOIOgrEdP4leVDWRexADuOA8BNwUiD9nx+b1LxZjDcaOFVr h9FXGFmDKERRVR5stPRKcAPvUhPv3s4lw8qKE6N+8yJpNTODI8Ucono1ByiopW6lcdBd eXMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730834752; x=1731439552; h=cc: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=Bs/nB1xxnfu1HR46DVt/JnyGe6Xi8sGwdkjaMRZWIII=; b=Ozz9jErgoLDOd9EXhciihSkP+0SbWWTw7Tlf/PXnS+dmJq//gfBHByGBizdJaxW3sH FLEAmwsLnavEY2b0LGODtRbCtSjls/BOm1Mkgudz+Gljr4Jt3v/4LbbOFL29nWBk42kZ poC/jihONLDV0sfS3laQdwVb1fiz2XkH29VoR5XZ5ddDdcFRnLK7VL83zi6r0+174IBe x0OMohSJxskYqLY6CRYr87QHOCyHK/WbE8iJBmQ3ZgXCNJQONrSADLH/ofARuiqUo2r5 G3/QNUJ0GGDJtmxgu3qw9pZiACP1IQ9hkfGi+t8VdXMxPcaFNpkokia13Kyn/bL3tOey qPaA== X-Gm-Message-State: AOJu0YxtBzPq7IKn8bvtqve4uW0WuOl3CTxg4BP1ientlj1JvvTZ3Qh1 TiCgKhOUELUaVKfl3HwM+XTcaNZFbGjM61ybTddgVCcM8GVGjXyJNtq8jZxl+MSxqJS5v1cWOfK I1hlvRR2LBqkudyzE+xrr32pBHYjiOgCXRWc= X-Google-Smtp-Source: AGHT+IEy3d9JZw+Vv+D3SH+1KRVSzVa1uhk8ZnAsd7r1m/Gphm+xQbCxi1sQLTNoS1gjFl43U2pbiw9o+LluaWH58eg= X-Received: by 2002:a05:6820:1b85:b0:5d6:ab0:b9a6 with SMTP id 006d021491bc7-5edeaed48c4mr8342930eaf.4.1730834752564; Tue, 05 Nov 2024 11:25:52 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com> In-Reply-To: From: Odhiambo Washington Date: Tue, 5 Nov 2024 22:25:17 +0300 Message-ID: Subject: Re: Name resolution in FreeBSD/Postfix To: freebsd-questions@freebsd.org Cc: "Paul M. Foster" Content-Type: multipart/alternative; boundary="0000000000009779fd06262f5e54" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Xjdbj6bFLz4Ppg X-Spamd-Bar: ---- --0000000000009779fd06262f5e54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 5, 2024 at 9:42=E2=80=AFPM Paul M. Foster wrote: > > On 11/5/24 12:08, Paul Procacci wrote: > > On Tue, Nov 5, 2024 at 12:02=E2=80=AFPM Paul M. Foster > wrote: > >> Folks: > >> > >> Trying to configure Postfix to route local mail (internet is later). > >> During a telnet conversation with Postfix to send it mail for a local > >> user, it chokes on paulf@localhost recipient, with a 451 4.3.0 error. > >> This is my user, and it's in the /etc/passwd file. So I don't understa= nd > >> why it doesn't understand the recipient email address. And yes, > >> localhost is 127.0.0.1 in the /etc/hosts file. > >> > >> Can anyone enlighten me? > >> > >> Paul > >> > >> ou should probably include your config. > >> My guess is postfix needs to be told explicitly that localhost is a > >> domain it's servicing yet hasn't been told that. > >> > >> ~Paul > > > Contents of /usr/local/etc/mail/mailer.conf: > > =3D=3D=3D > > sendmail /usr/local/sbin/sendmail > > send-mail /usr/local/sbin/sendmail > > mailq /usr/local/sbin/sendmail > > newaliases /usr/local/sbin/sendmail > That should be the end of mailer.conf! > > myhostname =3D banzai > > mydomain =3D mars.lan > > mydestination =3D $myhostname, localhost.$mydomain, localhost > > inet_interfaces =3D $myhostname, localhost > > mynetworks_style =3D hosts > > default_transport =3D error: outside mail is not deliverable > Postfix reads /usr/local/etc/postfix/main.conf and other files in that directory. You should read more about Postfix. I doubt it cares about mailer.conf. Those config params up there should me in main.conf for them to make sense to Postfix. --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --0000000000009779fd06262f5e54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Nov 5, 2024 at 9:42=E2=80=AFP= M Paul M. Foster <paulf@quill= andmouse.com> wrote:

On 11/5/24 12:08, Paul Procacci wrote:
> On Tue, Nov 5, 2024 at 12:02=E2=80=AFPM Paul M. Foster <paulf@quillandmouse.com> wrote:
>> Folks:
>>
>> Trying to configure Postfix to route local mail (internet is later= ).
>> During a telnet conversation with Postfix to send it mail for a lo= cal
>> user, it chokes on paulf@localhost recipient, with a 451 4.3.0 err= or.
>> This is my user, and it's in the /etc/passwd file. So I don= 9;t understand
>> why it doesn't understand the recipient email address. And yes= ,
>> localhost is 127.0.0.1 in the /etc/hosts file.
>>
>> Can anyone enlighten me?
>>
>> Paul
>>
>> ou should probably include your config.
>> My guess is postfix needs to be told explicitly that localhost is = a
>> domain it's servicing yet hasn't been told that.
>>
>> ~Paul


Contents of /usr/local/etc/mail/mailer.conf:

=3D=3D=3D

sendmail /usr/local/sbin/sendmail

send-mail /usr/local/sbin/sendmail

mailq /usr/local/sbin/sendmail

newaliases /usr/local/sbin/sendmail



myhostname =3D banzai

mydomain =3D mars.lan

mydestination =3D $myhostname, localhost.$mydomain, localhost

inet_interfaces =3D $myhostname, localhost

mynetworks_style =3D hosts

default_transport =3D error: outside mail is not deliverable

Postfix reads /usr/local/etc/postfix/main.conf and ot= her files in that directory. You should read more about Postfix.
= I doubt it cares about mailer.conf.=C2=A0
Those config params up = there should me in main.conf for them to make sense to Postfix.
<= br>

--
--0000000000009779fd06262f5e54--