Hi,

I had a problem with sendmail not honoring /etc/hosts, and after some googeling I found my way back to the Fine FAQ of ours, stating the following:

  [ http://www.openbsd.org/faq/faq10.html#SendmailDNS ]

  If you wish to query the hosts file before DNS servers,
  create a /etc/mail/service.switch file which contains
  the following line:

  hosts       files dns

  If you wish to query ONLY the hosts file, use the following:

  hosts       files

Now I happily created that file and HUP'd sendmail, but did not notice any change in behaviour. Looking further I noted this:

  $ fgrep service.switch /etc/mail/*.cf
  /etc/mail/localhost.cf:#O ServiceSwitchFile=/etc/mail/service.switch
  /etc/mail/sendmail.cf:#O ServiceSwitchFile=/etc/mail/service.switch
  /etc/mail/submit.cf:#O ServiceSwitchFile=/etc/mail/service.switch

So, I thus wonder; is FAQ entry 10.6 simply outdated? Considering it has not been changed in 10+ years, I would not be surprised. :)

Since smtpd is coming really soon,

/Alexander

Sidenote: The obvious solution was to spend 5 minutes configuring smtpd on the machine instead. :-)

Reply via email to