[OpenIndiana-discuss] Sendmail logging
Jonathan Adams
t12nslookup at gmail.com
Wed Jul 22 12:25:55 UTC 2015
cr*p ... I edited syslog to log _everything_
sendmail is logging to "daemon.info", not "mail.info" ... at least I can
get it fixed.
I'm not sure if anyone else even uses sendmail nowadays, but that adding "
daemon.info" to the mail.info/debug line should get it working for you.
Jon
On 22 July 2015 at 13:00, Jonathan Adams <t12nslookup at gmail.com> wrote:
> okay, I worked with the global zone, using the standard sendmail.cf,
> modified the props in smtp:sendmail to set config/local_only to false,
> telnet'd in from a box on our internal network and there is no address
> logging.
>
> sendmail does log to syslog with "gethostbyaddr" errors (until I fixed
> hosts), and /var/adm/messages has logs of unknown users, or messages about
> "relaying denied", or to tell me I hadn't created aliases/access.db ... but
> there is no successful "from= ... to=" messages anywhere.
>
> can anyone else try this, and see if it's just something I'm doing?!?
>
> Ta
>
> Jon
>
> On 21 July 2015 at 21:35, Jonathan Adams <t12nslookup at gmail.com> wrote:
>
>> Yeah logging is set to 9, I set it to 10 just in case but it made no
>> difference. I have mail.info instead of mail.debug because on Solaris
>> 10 the LDAP output takes up too much space.
>>
>> I was wondering if anyone else has the same issue, especially since this
>> happened on two different OI servers set up by 2 different people, although
>> according to the same internal wiki page. We just didn't notice until I
>> was building the latest replacement that it hadn't been logging. I had
>> almost noticed before but thought it was just a one off type of thing.
>>
>> Do other people use sendmail in zones in production, and do they have the
>> same issues?
>> On 21 Jul 2015 19:40, "Gary Mills" <gary_mills at fastmail.fm> wrote:
>>
>>> On Tue, Jul 21, 2015 at 02:46:13PM +0100, Jonathan Adams wrote:
>>> >
>>> > When I truss the sendmail daemon, there is nothing in the output that
>>> seems
>>> > to mention "log" ...
>>>
>>> That's normal. You might be able to identify them by content,
>>> although sendmail won't produce them if its log level is too low.
>>>
>>> > root at mailgate2:~# grep -i mail /etc/syslog.conf
>>> > *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
>>> > mail.info ifdef(`LOGHOST', /var/log/syslog,
>>> @loghost)
>>> > #mail.debug ifdef(`LOGHOST', /var/log/syslog,
>>> @loghost)
>>>
>>> All my entries in /var/log/syslog are `mail.info', so that's probably
>>> okay. You should still try syslog debugging, just in case sendmail's
>>> log message are being sent with a different facility or level.
>>>
>>> Sendmail's internal log level, not related to syslog's level, should
>>> default to 9. It's documented in cf/README this way:
>>>
>>> confLOG_LEVEL LogLevel [9] Log level.
>>>
>>> I assume it's unchanged.
>>>
>>> --
>>> -Gary Mills- -refurb- -Winnipeg, Manitoba,
>>> Canada-
>>>
>>> _______________________________________________
>>> openindiana-discuss mailing list
>>> openindiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>
>>
>
More information about the openindiana-discuss
mailing list