On Thu Feb 14, 2008 at 17:14:48 +0100, Peter J. Holzer wrote:

> > I'm not asking how to fudge Solaris config to return the FQDN, or how to 
> > write a function that can return a FQDN (I can figure that out from 
> > /etc/hosts), but how to get qpsmtpd to return the value I'd expect from 
> > config(me).
> 
> I'm quite sure that used to work (I did override the local hostname with
> config/me on some hosts). I'll have a look at it.

  I've tested this with qpsmtpd 0.40:

rt:/# rm /etc/qpsmtpd/me 
rt:/# /etc/init.d/qpsmtpd restart
rt:/# nc localhost 25
220 rt.test.xen ESMTP qpsmtpd 0.40 ready; send us your mail, but not your spam.

  Now with a config file in place I see it:

rt:~# echo 'test.steve.me' > /etc/qpsmtpd/me
rt:~# /etc/init.d/qpsmtpd restart
rt:~# nc localhost 25
220 test.steve.me ESMTP qpsmtpd 0.40 ready; send us your mail, but not your 
spam.

  Now looking at /usr/share/perl5/Qpsmtpd.pm I can see that 'sub config'
 is trying to read the file, via the functions get_qmail_config +
 _config_from_file.  There you can see that there are items logged
 if you configure logging to LOGDEBUG level - I'd suggest you try that
 and see what is shown.

  Certainly if things fail for some reason, e.g. if permissions are
 wrong on the 'me' file you'll get the defaults:

  my %defaults = (
          me      => hostname,
          timeout => 1200,
          );

  I hope that helps.
  

Steve
--

Reply via email to