Re: Name resolution in FreeBSD/Postfix
- Reply: Paul M. Foster: "Re: Name resolution in FreeBSD/Postfix"
- In reply to: Paul M. Foster: "Re: Name resolution in FreeBSD/Postfix"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Nov 2024 19:25:17 UTC
On Tue, Nov 5, 2024 at 9:42 PM Paul M. Foster <paulf@quillandmouse.com> wrote: > > On 11/5/24 12:08, Paul Procacci wrote: > > On Tue, Nov 5, 2024 at 12:02 PM 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 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 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: > > === > > 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 = banzai > > mydomain = mars.lan > > mydestination = $myhostname, localhost.$mydomain, localhost > > inet_interfaces = $myhostname, localhost > > mynetworks_style = hosts > > default_transport = 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. -- 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 '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]