On Sunday 05 Oct 2003 18:49, Marianne Taylor wrote:
> On October 5, 2003 07:44, Jason Stubbs wrote:
> > On Sunday 05 October 2003 22:02, Peter Ruskin wrote:
> > > /etc/hosts:
> > > 192.168.0.3 peter.ruskin peter # Peter's linux/Windows box
> > > 192.168.0.5 kroh.ruskin kroh # Liese's linux/Windows box
> > >
> > > /etc/nsswitch.conf: (never looked at this one)
> > > hosts:       files dns
> > >
> > > from mail.log:
> > > Oct  3 01:28:13 kroh postfix/qmgr[2084]: D2C2F90F9A:
> > > from=<[EMAIL PROTECTED]>, size=316, nrcpt=1 (queue active)
> > > Oct  3 01:28:24 kroh postfix/smtp[4250]: D2C2F90F9A:
> > > to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=none,
> > > delay=11, status=bounced (Name service error for
> > > name=peter.ruskin type=A: Host not found)
> >
> > That's quite strange. Postfix has correctly resolved the machine
> > name peter to peter.ruskin through the use of /etc/hosts - probably
> > through a glibc call. My guess is that postfix is configured to
> > specifically get the A record from DNS for security (rather than
> > simply asking for an IP) which /etc/hosts does not provide. I
> > haven't got time right now so I can't do it myself, but check
> > postfix to see if you can turn off DNS checks. I think there's some
> > sort of option to turn off canonifacation (or however you spell it
> > ;-) which may fix your problem.
> >
> > Jason
>
> I solved the same problem on my home network by appending the
> following line to the main.cf in /etc/postfix directory.
>
> disable_dns_lookups = yes
>
> Hope this helps.
>
Bingo!!
Thanks Marianne.  I had just tried that but it didn't work (mail from 
[EMAIL PROTECTED] to [EMAIL PROTECTED] ended up in my postbox at A) because I'd added 
hostnames 
to mydestination.  When I commented the mydestination entries it works 
as expected with "disable_dns_lookups = yes"

Peter
-- 
======================================================================
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 
2.4.22_pre2-gss)
i686 AMD Athlon(tm) XP 3200+
======================================================================


--
[EMAIL PROTECTED] mailing list

Reply via email to