bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfengine fails to send email


From: Uwe Zeisberger
Subject: Re: cfengine fails to send email
Date: Fri, 6 Aug 2004 14:31:17 +0200
User-agent: Mutt/1.5.6+20040523i

Thomas Glanzmann wrote:
> Hello Uwe,
> 
> * Uwe Zeisberger <address@hidden> [040805 23:12]:
> >     From: cfengine@<hostname>.
> 
> looks like a missconfiguration of your hostsystem for me. What does
> 
> (faui03) [/var/tmp/cfengine-2.1.8] /var/cfengine/bin/cfagent -d -j classes -q 
> -v 2> /dev/null | grep -i 'fully qualified'
> Fully qualified hostname is: faui03.informatik.uni-erlangen.de
> 
> say for you?
psyche@/home/zeisberg # /opt/sbin/cfagent -d -j classes -q -v | grep -i fully
Fully qualified hostname is: psyche.informatik.uni-freiburg.de
Appending [    root 18274 18269  0 14:22:29 pts/2    0:00 grep -i fully]
Appending [    root 18274 18269  0 14:22:29 pts/2    0:00 grep -i fully]

> see at src/cfexecd.c line 775 (MailResult) for me it looks sane:
> 
> sprintf(VBUFF,"From: address@hidden",VFQNAME);
> sprintf(VBUFF,"MAIL FROM: <address@hidden>\r\n",VFQNAME);
> 
> of course VFQNAME in cfagent and cfexecd could be different, but I don't
> believe so. But if the above command gives you also the FQDN than you
> can add some extra code to src/cfexecd.c to verify it.
for me, it looks sane, too. With version 2.1.6 I wrote VFQNAME to syslog
with the message "Cannot mail to %s", and there was definitly only the
hostname without domain stored in VFQNAME. Even if cfagent -q -v told,
that it adds class psyche_informatik_uni_freiburg_de

I compare the output of the following commands on a host, which fails to
send mail, with one, that succeeds:

- domainname
- hostname
- cat /etc/resolv.conf

Even hosts, which are installed at the same time by the same Jumpstart,
don't behave equal.

Regards,
Uwe

-- 
Uwe Zeisberger

http://www.google.com/search?q=5%2B7

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]