|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Paul Hewlett (paul
gccs.co.za)
Date: Mon Dec 03 2007 - 08:54:53 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday 03 December 2007 16:16:05 Wietse Venema wrote:
> Paul Hewlett:
> > I recently upgraded from 2.3.6 to 2.4.5 on my Gentoo master box and
> > postfix is now unable to get the domainname - it insists that it is
> > 'localdomain'.
> >
> Postfix uses the gethostname() system library routine. What is the
> result from that function?
>
> If the result from gethostname() is a fully qualified name
> ("sundown.cpt.gccs.co.za") then Postfix will use that to derive
> the mydomain value ("cpt.gccs.co.za");
>
> If the result from gethostname() is an unqualified name ("sundown")
> then Postfix sets mydomain to "localdomain" unless you specify
> mydomain or myhostname in main.cf.
>
> Wietse
Wietse
I downgraded to 2.3.6 and mail is now sent successfully using the same config
files.
/var/log/messages shows:
Dec 3 16:51:36 sundown postfix/qmgr[24971]: 1F736737D4C:
from=<root
sundown.cpt.gccs.co.za>, size=596, nrcpt=1 (queue active)
Dec 3 16:51:36 sundown postfix/smtp[24977]: 1F736737D4C:
to=<support
cpt.gccs.co.za>, orig_to=<root>,
relay=smtp.cpt.gccs.co.za[192.168.169.1]:25, delay=0.01, delays=0.01/0/0/0,
dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 1D48018E142)
As you can see $mydomain is now 'cpt.gccs.co.za' and the mail is now sent
correctly. It's a bug in 2.4.5 and beyond.
Paul
--
Paul Hewlett Technical Director
Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall
Cnr Loxton & Koeberg Roads, 7435 Milnerton
www.gccs.co.za
Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906
VOIP: 087 750 7474
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]