From: mikea on 29 Jul 2010 10:07 swangdb <swangdb(a)gmail.com> wrote in <f16f4d30-87f3-4a37-a83b-6b99dacbebc7(a)f33g2000yqe.googlegroups.com>: > On Jul 28, 4:36?pm, bon...(a)host122.r-bonomi.com (Robert Bonomi) wrote: > >> The problem is obvious. ?sendmail is only listening on 127.0.0.1. >> >> Check the DAEMON_OPTIONS in your .mc file > > Thanks. I've listed the .mc file I've been using. I tried a > DAEMON_OPTIONS (seen below) but it didn't work so I have it commented > out. > > ----- > divert(0)dnl > VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro > Exp $') > OSTYPE(solaris2)dnl > DOMAIN(auburn.edu)dnl > ##DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl In a .mc file, a comment line begins with "dnl", not "##". If you leave out the "Addr=a.b.c.d" pair and its comma, then (according to the Bat book 3d Edition) the default address becomes INADDR_ANY, which allows connections to any address on the local machine. That's in section 24.9.24.1, if you care to look it up. > MAILER(local)dnl > MAILER(smtp)dnl > ----- > > When I use this DAEMON_OPTIONS, rebuild/install sendmail.cf and > restart sendmail, ps shows the following, that it's still listening to > 127.0.0.1. How can I fix this? > > # ps | grep sendmail > root 7496 2029 0 07:13:19 pts/4 0:00 grep sendmail > root 7487 1 0 07:11:31 ? 0:00 /usr/lib/sendmail - > bd -ODaemonPortOptions=Addr=127.0.0.1 -q15m > root 7461 1 0 07:10:03 ? 0:00 /usr/lib/sendmail - > bd -ODaemonPortOptions=Addr=127.0.0.1 -q15m > smmsp 7491 1 0 07:11:31 ? 0:00 /usr/lib/sendmail - > Ac -q15m Are you _starting_ sendmail with "-ODaemonPortOptions=Addr=127.0.0.1"? It sure looks like it, but your `ps` may do things differently from mine. -- Mike Andrews, W5EGO mikea(a)mikea.ath.cx Tired old sysadmin
From: swangdb on 29 Jul 2010 11:16 On Jul 29, 9:07 am, mikea <mi...(a)mikea.ath.cx> wrote: > swangdb <swan...(a)gmail.com> wrote in <f16f4d30-87f3-4a37-a83b-6b99dacbe....(a)f33g2000yqe.googlegroups.com>: > > Thanks. I've listed the .mc file I've been using. I tried a > > DAEMON_OPTIONS (seen below) but it didn't work so I have it commented > > out. > > > ----- > > divert(0)dnl > > VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro > > Exp $') > > OSTYPE(solaris2)dnl > > DOMAIN(auburn.edu)dnl > > ##DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl > In a .mc file, a comment line begins with "dnl", not "##". Thanks, I'm definitely a sendmail rookie. I saw the comments above that began with "#" and I thought this would work within the statement section. I used two "#" just so I'd remember it was my comment. > If you leave out the "Addr=a.b.c.d" pair and its comma, then (according > to the Bat book 3d Edition) the default address becomes INADDR_ANY, > which allows connections to any address on the local machine. That's in > section 24.9.24.1, if you care to look it up. I do not have this book, thanks for the tip, I'll look for one. > Are you _starting_ sendmail with "-ODaemonPortOptions=Addr=127.0.0.1"? > It sure looks like it, but your `ps` may do things differently from > mine. The following line is in submit.cf: O DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E The submit.mc file contains: ---- divert(0)dnl VERSIONID(`$Id: submit.mc,v 8.14 2006/04/05 05:54:41 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 ---- Is this causing the problem? If so, how would I fix this? Thanks!
From: swangdb on 30 Jul 2010 16:57 On Jul 29, 10:16 am, swangdb <swan...(a)gmail.com> wrote: > On Jul 29, 9:07 am, mikea <mi...(a)mikea.ath.cx> wrote: > > > If you leave out the "Addr=a.b.c.d" pair and its comma, then (according > > to the Bat book 3d Edition) the default address becomes INADDR_ANY, > > which allows connections to any address on the local machine. That's in > > section 24.9.24.1, if you care to look it up. > > I do not have this book, thanks for the tip, I'll look for one. I found the 2nd edition of the bat book. Some stuff was missing. I broke down and ordered a copy of the 4th edition (newest). Thanks for the help!
|
Pages: 1 Prev: Sendmail Testing Next: Extracting lines from the Sendmail log |