[OpenIndiana-discuss] sendmail simple setup home lan

Discussion list for OpenIndiana openindiana-discuss at openindiana.org
Wed May 21 15:15:51 UTC 2014


head -1 /etc/release
OpenIndiana Development oi_151.1.9 X86 (powered by illumos)

Having some trouble getting sendmail setup for what is probably one of
the simplest possible configuration.

The goal is to send any outgoing mail to another host on my home lan
that relays it on.  The lan host requires no auth and accepts mail
from my lan.

A further goal is to be able to get mail by means of fetchmail... when
required which will be seldom.

So mostly sendmail is to handle on board mail, and any outbound to
relay host.

Submit.mc/and its .cf are left original... submit.mc looks like this:

divert(-1)
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
-------       -------       ---=---       -------       -------
I suspected that last line but the googling on oracle docs and
elsewhere seems to indicate that is correct...It would be nice to know
that for sure and thereby illiminate submit.cf as a problem.

I'm not sure if sendmail.mc needs anything more but here is the one
I'm testing with the command:

/usr/lib/sendmail -C \
  /etc/mail/cf/cf/oi.cf -v deleteme at newsguy.com </home/reader/.dmrc

  oi.mc:
  
  divert(-1)
  divert(0)dnl
  VERSIONID(`sendmail.mc (Sun)')
  OSTYPE(`solaris8')dnl
  DOMAIN(`solaris-generic')dnl
  dnl define(`SMART_HOST', '[smtp.local.lan]')dnl
  dnl define(`SMART_HOST', '[192.168.1.42]')dnl
  define(`SMART_HOST', '192.168.1.42')dnl
  dnl define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
  FEATURE(`relay_entire_domain')dnl
  DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
  MAILER(`local')dnl
  MAILER(`smtp')dnl
  
The logs indicate there is a problem recognizing the smart host.
You see the several ways I've tried commented out above.

That host does not have dns records... It lives on a tiny home lan and
does appear in loclhosts /etc/hosts file in all the ways you see tried
above.

I was under the impression that having that host in [] told sendmail
NOT to do a dns lookup.... tried both ways and by IP.

So isn't there some way to make sendmail use the host files?

I'm pretty sure nsswitch files all say 'files' first.

Or is this some other problem altogether.

Here are some of the logs produced by the test above:
-------       -------       ---=---       -------       -------
  May 21 10:51:47 oi sendmail[1935]: [ID 801593 mail.info]
  s4LEpkVK001935: from=reader, size=56, class=0, nrcpts=1,
  msgid=<201405211451.s4LEpkVK001935 at oi.local>, relay=root at localhost
  
  May 21 10:51:47 oi sendmail[1935]: [ID 801593 mail.info]
  s4LEpkVK001935: to=deleteme at newsguy.com, ctladdr=reader (1000/1050),
  delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30056,
  relay='192.168.1.42', dsn=5.1.2, stat=Host unknown (Name server:
  '192.168.1.42': host not found)
  
  May 21 10:51:47 oi sendmail[1935]: [ID 801593 mail.info]
  s4LEpkVK001935: s4LEpkVL001935: DSN: Host unknown (Name server:
  '192.168.1.42': host not found)




More information about the openindiana-discuss mailing list