Date: Tue, 5 Nov 2024 22:25:17 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: freebsd-questions@freebsd.org Cc: "Paul M. Foster" <paulf@quillandmouse.com> Subject: Re: Name resolution in FreeBSD/Postfix Message-ID: <CAAdA2WPpoX9-0LdRia76KDeMCZskEpOjqPDCeKoQyryibWggMQ@mail.gmail.com> In-Reply-To: <e20685c6-b3d6-4450-b16e-5977b4382b3a@quillandmouse.com> References: <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com> <CAFbbPuhnuoEucbzMJhfmUCFYfZSTXse8dUOJvYxvSEPaX67xyg@mail.gmail.com> <e20685c6-b3d6-4450-b16e-5977b4382b3a@quillandmouse.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <paulf@quillandmouse.= 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@quillandm= ouse.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 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 <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 5, 2024 at 9:42=E2=80=AFP= M Paul M. Foster <<a href=3D"mailto:paulf@quillandmouse.com">paulf@quill= andmouse.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" styl= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex"><br> On 11/5/24 12:08, Paul Procacci wrote:<br> > On Tue, Nov 5, 2024 at 12:02=E2=80=AFPM Paul M. Foster <<a href=3D"= mailto:paulf@quillandmouse.com" target=3D"_blank">paulf@quillandmouse.com</= a>> wrote:<br> >> Folks:<br> >><br> >> Trying to configure Postfix to route local mail (internet is later= ).<br> >> During a telnet conversation with Postfix to send it mail for a lo= cal<br> >> user, it chokes on paulf@localhost recipient, with a 451 4.3.0 err= or.<br> >> This is my user, and it's in the /etc/passwd file. So I don= 9;t understand<br> >> why it doesn't understand the recipient email address. And yes= ,<br> >> localhost is 127.0.0.1 in the /etc/hosts file.<br> >><br> >> Can anyone enlighten me?<br> >><br> >> Paul<br> >><br> >> ou should probably include your config.<br> >> My guess is postfix needs to be told explicitly that localhost is = a<br> >> domain it's servicing yet hasn't been told that.<br> >><br> >> ~Paul<br> <br> <br> Contents of /usr/local/etc/mail/mailer.conf:<br> <br> =3D=3D=3D<br> <br> sendmail /usr/local/sbin/sendmail<br> <br> send-mail /usr/local/sbin/sendmail<br> <br> mailq /usr/local/sbin/sendmail<br> <br> newaliases /usr/local/sbin/sendmail<br></blockquote><div><br></div><div>Tha= t should be the end of mailer.conf!</div><div><br></div><div>=C2=A0</div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex"> <br> myhostname =3D banzai<br> <br> mydomain =3D mars.lan<br> <br> mydestination =3D $myhostname, localhost.$mydomain, localhost<br> <br> inet_interfaces =3D $myhostname, localhost<br> <br> mynetworks_style =3D hosts<br> <br> default_transport =3D error: outside mail is not deliverable<br></blockquot= e><div><br></div><div>Postfix reads /usr/local/etc/postfix/main.conf and ot= her files in that directory. You should read more about Postfix.</div><div>= I doubt it cares about mailer.conf.=C2=A0</div><div>Those config params up = there should me in main.conf for them to make sense to Postfix.</div><div><= br></div></div><div><br></div><span class=3D"gmail_signature_prefix">-- </s= pan><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div di= r=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 = 7 3200 0004/+254 7 2274 3223</div><div><span style=3D"color:rgb(34,34,34)">= =C2=A0In=C2=A0</span><span style=3D"color:rgb(34,34,34)">an Internet failur= e case, the #1 suspect is a constant: DNS.</span><br>"<span style=3D"f= ont-size:12.8px">Oh, the cruft.</span><span style=3D"font-size:12.8px">&quo= t;,=C2=A0</span><span style=3D"font-size:12.8px">egrep -v '^$|^.*#'= =C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,23= 8,238);font-family:"Lucida Console",Consolas,"Courier New&qu= ot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span sty= le=3D"font-size:12.8px">=C2=A0:-)</span></div><div><span style=3D"font-size= :12.8px">[How to ask smart questions:=C2=A0</span><span style=3D"font-size:= 12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smart-questions.html" targ= et=3D"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span= ></div></div></div></div></div> --0000000000009779fd06262f5e54--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WPpoX9-0LdRia76KDeMCZskEpOjqPDCeKoQyryibWggMQ>