[OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Jonathan Adams
Hi I'm looging for some help over sendmail writing to syslog.

I am using oi a9 on a couple of our servers, and they are running sendmail,
using almost the same main.mc compiled from the original servers.

They are all logging to syslog, but on the original servers I get the
"from=" headers and the "to=" headers logged in syslog, and on the new
server I only get "to=" logged to syslog, and then only when the email is
being forwarded to the smart-host, not on receipt.

We grep the syslog to see if an email has been received, before it goes
through our mail scanner system, and the lack of a from makes this
impossible.

has anyone else come across this, or any solution/suggestion on how to get
it to work?

Jon
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Gary Mills
On Tue, Jul 21, 2015 at 09:07:06AM +0100, Jonathan Adams wrote:
> 
> They are all logging to syslog, but on the original servers I get the
> "from=" headers and the "to=" headers logged in syslog, and on the new
> server I only get "to=" logged to syslog, and then only when the email is
> being forwarded to the smart-host, not on receipt.

Can you determine what has changed between the original server and the
new one?  Is /etc/syslog.conf the same, particularly the line that
redirects to /var/log/syslog?  The selector should be `mail.debug',
which handles all log messages with the `mail' facility.  You might
need to disable svc:/system/system-log:default temporarily and start
syslogd in debug mode instead.  This will show you all of the log
messages sent to syslogd.

If it's not syslog that's changed, you should look at how logging is
specified in the sendmail configuration.

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Jonathan Adams
The original was a Solaris 10 box, the new one is Illumos, they use
essentially the same mc file, the "syslog.conf"s are duplicates.

I see sendmail logging when I run /usr/lib/sendmail -oQ, but I
don't see it when it's running as a daemon.

syslog appears to be working fine, MailScanner is writing to it, as are
SpamAssassin and Clam AV (on both localhost, and via the external address)

I've turned off ipfilter in case that was the issue as well, and it doesn't
appear to have changed anything.

When I truss the sendmail daemon, there is nothing in the output that seems
to mention "log" ...

I am running it in an exclusive-ip zone, I'm not sure if that should make a
difference ...

root@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)

root@mailgate2:~# svccfg -s smtp:sendmail listprop | grep -i local
config/local_onlyboolean  false
config-file/entities fmri file://localhost/etc/mail/
sendmail.cf
nsswitch/entitiesfmri
file://localhost/etc/nsswitch.conf

root@mailgate2:~# ps -ef | grep -i [s]endmail
root 25118 19018   0 14:42:11 ?   0:00 /usr/lib/sendmail -bd
   smmsp 17784  9100   0 13:02:06 ?   0:00 /usr/lib/sendmail -Ac
-q15m
root 19018  9100   0 13:21:43 ?   0:00 /usr/lib/sendmail -bd
root 25120 19018   0 14:42:13 ?   0:00 /usr/lib/sendmail -bd

root@mailgate2:~# grep loghost /etc/hosts
127.0.0.1   localhost loghost
::1 localhost loghost

root@mailgate2:~# svcs -a | egrep "sendmail|system-log"
online 13:02:05 svc:/network/sendmail-client:default
online 13:21:43 svc:/network/smtp:sendmail
online 14:03:19 svc:/system/system-log:default

I was wondering if it was due to permissions for it's uid:

root@mailgate2:~# truss -f -p 19018
19018:  *** SGID: rgid/egid/sgid = 0 / 25 / 25  ***
19018:  pollsys(0x08045090, 3, 0x08045148, 0x) (sleeping...)
19018:  pollsys(0x08045090, 3, 0x08045148, 0x)  = 0
19018:  lwp_sigmask(SIG_SETMASK, 0x2000, 0x, 0x,
0x) = 0xFFBFFEFF [0x]

...
^C
root@mailgate2:~# grep 25 /etc/passwd
smmsp:x:25:25:SendMail Message Submission Program:/:

I'd prefer not to compile my own sendmail to check if it was a compile
option, but I will if you think it'd help.

Jon

On 21 July 2015 at 13:52, Gary Mills  wrote:

> On Tue, Jul 21, 2015 at 09:07:06AM +0100, Jonathan Adams wrote:
> >
> > They are all logging to syslog, but on the original servers I get the
> > "from=" headers and the "to=" headers logged in syslog, and on the new
> > server I only get "to=" logged to syslog, and then only when the email is
> > being forwarded to the smart-host, not on receipt.
>
> Can you determine what has changed between the original server and the
> new one?  Is /etc/syslog.conf the same, particularly the line that
> redirects to /var/log/syslog?  The selector should be `mail.debug',
> which handles all log messages with the `mail' facility.  You might
> need to disable svc:/system/system-log:default temporarily and start
> syslogd in debug mode instead.  This will show you all of the log
> messages sent to syslogd.
>
> If it's not syslog that's changed, you should look at how logging is
> specified in the sendmail configuration.
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Jonathan Adams
additionally, our main.mc looks mostly like this:

root@mailgate2:/etc/mail/cf/cf# grep '^[^#]' main.mc
divert(-1)
divert(0)dnl
VERSIONID(`sendmail.mc (Sun)')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
FEATURE(`access_db')
FEATURE(use_cw_file)
FEATURE(`nocanonify')
FEATURE(`dnsbl', `xbl.spamhaus.org')
FEATURE(`dnsbl', `sbl.spamhaus.org')
FEATURE(`dnsbl', `bl.spamcop.net', `"Spam blocked see:
http://spamcop.net/bl.shtml?"$&{client_addr}')dnl
define(`confLDAP_DEFAULT_SPEC', `-h ldap-server -b
ou=Aliases,dc=domain,dc=com -w 3')dnl
define(`confLDAP_CLUSTER', `domain.com')dnl
define(`ALIAS_FILE', `/etc/mail/aliases,ldap: -k
(&(objectClass=nisMailAlias)(cn=%0)) -v rfc822mailmember')dnl
FEATURE(`virtusertable', `ldap:-b ou=Mail,dc=domain,dc=com -1 -k
"(&(objectClass=sendmailMTAMapObject)(sendmailMTAMapName=virtuser)(|(sendmailMTACluster=${sendmailMTACluster})(sendmailMTAHost=$j))(sendmailMTAKey=%0))"
-v sendmailMTAMapValue')
define(`confPRIVACY_FLAGS', `restrictqrun,noreceipts,noetrn,goaway')dnl
define(`confDONT_PRUNE_ROUTES', `True')dnl
define(`confCOPY_ERRORS_TO', `postmaster')dnl
define(`confSEPARATE_PROC', `True')dnl
define(`confQUEUE_SORT_ORDER', `time')dnl
define(`confDELIVERY_MODE', `queue all mail')dnl
define(`confDOMAIN_NAME', `mailgate2.domain.com')
define(`SMART_HOST', `[smart-host]')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*$#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3


On 21 July 2015 at 14:46, Jonathan Adams  wrote:

> The original was a Solaris 10 box, the new one is Illumos, they use
> essentially the same mc file, the "syslog.conf"s are duplicates.
>
> I see sendmail logging when I run /usr/lib/sendmail -oQ, but I
> don't see it when it's running as a daemon.
>
> syslog appears to be working fine, MailScanner is writing to it, as are
> SpamAssassin and Clam AV (on both localhost, and via the external address)
>
> I've turned off ipfilter in case that was the issue as well, and it
> doesn't appear to have changed anything.
>
> When I truss the sendmail daemon, there is nothing in the output that
> seems to mention "log" ...
>
> I am running it in an exclusive-ip zone, I'm not sure if that should make
> a difference ...
>
> root@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)
>
> root@mailgate2:~# svccfg -s smtp:sendmail listprop | grep -i local
> config/local_onlyboolean  false
> config-file/entities fmri file://localhost/etc/mail/
> sendmail.cf
> nsswitch/entitiesfmri
> file://localhost/etc/nsswitch.conf
>
> root@mailgate2:~# ps -ef | grep -i [s]endmail
> root 25118 19018   0 14:42:11 ?   0:00 /usr/lib/sendmail -bd
>smmsp 17784  9100   0 13:02:06 ?   0:00 /usr/lib/sendmail -Ac
> -q15m
> root 19018  9100   0 13:21:43 ?   0:00 /usr/lib/sendmail -bd
> root 25120 19018   0 14:42:13 ?   0:00 /usr/lib/sendmail -bd
>
> root@mailgate2:~# grep loghost /etc/hosts
> 127.0.0.1   localhost loghost
> ::1 localhost loghost
>
> root@mailgate2:~# svcs -a | egrep "sendmail|system-log"
> online 13:02:05 svc:/network/sendmail-client:default
> online 13:21:43 svc:/network/smtp:sendmail
> online 14:03:19 svc:/system/system-log:default
>
> I was wondering if it was due to permissions for it's uid:
>
> root@mailgate2:~# truss -f -p 19018
> 19018:  *** SGID: rgid/egid/sgid = 0 / 25 / 25  ***
> 19018:  pollsys(0x08045090, 3, 0x08045148, 0x) (sleeping...)
> 19018:  pollsys(0x08045090, 3, 0x08045148, 0x)  = 0
> 19018:  lwp_sigmask(SIG_SETMASK, 0x2000, 0x, 0x,
> 0x) = 0xFFBFFEFF [0x]
>
> ...
> ^C
> root@mailgate2:~# grep 25 /etc/passwd
> smmsp:x:25:25:SendMail Message Submission Program:/:
>
> I'd prefer not to compile my own sendmail to check if it was a compile
> option, but I will if you think it'd help.
>
> Jon
>
> On 21 July 2015 at 13:52, Gary Mills  wrote:
>
>> On Tue, Jul 21, 2015 at 09:07:06AM +0100, Jonathan Adams wrote:
>> >
>> > They are all logging to syslog, but on the original servers I get the
>> > "from=" headers and the "to=" headers logged in syslog, and on the new
>> > server I only get "to=" logged to syslog, and then only when the email
>> is
>> > being forwarded to the smart-host, not on receipt.
>>
>> Can you determine what has changed between the original server and the
>> new one?  Is /etc/syslog.conf the same, particularly the line that
>> redirects to /var/log/syslog?  The selector should be `mail.debug',
>> which handles all log messages with the `mail' facility.  You might
>> need to disable svc:/system/system-log:default temporarily and start
>> syslogd in debug mode instead.  This will show you all of the log
>> messages sent to syslogd.
>>
>>

Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread John D Groenveld
In message 
, Jonathan Adams writes:
>I am using oi a9 on a couple of our servers, and they are running sendmail,
>using almost the same main.mc compiled from the original servers.

What main.mc? I don't see it in this thread.

By "compiled" do you mean a main.cf generated from a main.mc?
If so, you're possibly overdue to "make main.cf" in case the
meaning of any of the macros in main.mc have slightly changed
in various OI sendmail updates.

John
groenv...@acm.org

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Jonathan Adams
root@mailgate2:/etc/mail/cf/cf# make
make: Nothing to be done for `all'.
root@mailgate2:/etc/mail/cf/cf# diff sendmail.cf ../..
root@mailgate2:/etc/mail/cf/cf#


On 21 July 2015 at 14:55, John D Groenveld  wrote:

> In message  f...@mail.gmail.com>
> , Jonathan Adams writes:
> >I am using oi a9 on a couple of our servers, and they are running
> sendmail,
> >using almost the same main.mc compiled from the original servers.
>
> What main.mc? I don't see it in this thread.
>
> By "compiled" do you mean a main.cf generated from a main.mc?
> If so, you're possibly overdue to "make main.cf" in case the
> meaning of any of the macros in main.mc have slightly changed
> in various OI sendmail updates.
>
> John
> groenv...@acm.org
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Gary Mills
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@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@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-21 Thread Jonathan Adams
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"  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@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@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
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  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"  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@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@openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
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  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  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"  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@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@openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>
>>
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Gary Mills
On Wed, Jul 22, 2015 at 01:25:55PM +0100, Jonathan Adams wrote:
> cr*p ... I edited syslog to log _everything_

That's part of what syslog debugging does.

> sendmail is logging to "daemon.info", not "mail.info" ... at least I can
> get it fixed.

That's what I suspected.  It shouldn't be doing that.

> 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.

Lots of people use sendmail.  I'm running it under Solaris 11.2, but
using my own build of 8.14.4 because I needed SASLv2.

It sounds as if you are running a bad build of sendmail.  You can
check its version this way:

$ /usr/lib/sendmail -d0.4 -bv root

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
it's the system compiled version :(

root@mailgate2:~# /usr/lib/sendmail -d0.4 -bv root
Version 8.14.4+Sun
 Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT XDEBUG
Canonical name: mailgate2.salltd.co.uk
 UUCP nodename: mailgate2
a.k.a.: mailgate2.domain.com
a.k.a.: [213.210.9.6]
a.k.a.: [127.0.0.1]
a.k.a.: loghost
a.k.a.: [x.x.x.x]
a.k.a.: mansalmail01
a.k.a.: mansalmail01.domain.com
a.k.a.: extmail
a.k.a.: [IPv6:::1]

 SYSTEM IDENTITY (after readcf) 
  (short domain name) $w = mailgate2
  (canonical domain name) $j = mailgate2.domain.com
 (subdomain name) $m = domain.com
  (node name) $k = mailgate2


\root... deliverable: mailer local, user \root

root@mailgate2:~# uname -a
SunOS mailgate2 5.11 oi_151a8 i86pc i386 i86pc
root@mailgate2:~# more /etc/release
 OpenIndiana Development oi_151.1.8 X86 (powered by illumos)
Copyright 2011 Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms.
   Assembled 20 July 2013


On 22 July 2015 at 14:46, Gary Mills  wrote:

> On Wed, Jul 22, 2015 at 01:25:55PM +0100, Jonathan Adams wrote:
> > cr*p ... I edited syslog to log _everything_
>
> That's part of what syslog debugging does.
>
> > sendmail is logging to "daemon.info", not "mail.info" ... at least I can
> > get it fixed.
>
> That's what I suspected.  It shouldn't be doing that.
>
> > 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.
>
> Lots of people use sendmail.  I'm running it under Solaris 11.2, but
> using my own build of 8.14.4 because I needed SASLv2.
>
> It sounds as if you are running a bad build of sendmail.  You can
> check its version this way:
>
> $ /usr/lib/sendmail -d0.4 -bv root
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
I realised that it was calling syslog when I trussed the syslogd on the
parent computer and saw movement when the test email was sent.

after that I added "*.alert;*.crit;*.err;*.warning;*.notice;*.info;*.debug
/var/log/testing" to syslog (log everything except "emerg" which is shoited
out to every display everywhere) and then watched the file when I sent the
test message again ...

anyway, I've got a working system, and I can grep syslog for email
addresses, so that's a win!

Thanks everyone.

Jon

On 22 July 2015 at 14:53, Jonathan Adams  wrote:

> it's the system compiled version :(
>
> root@mailgate2:~# /usr/lib/sendmail -d0.4 -bv root
> Version 8.14.4+Sun
>  Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
> MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
> PIPELINING SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB
> USE_LDAP_INIT XDEBUG
> Canonical name: mailgate2.salltd.co.uk
>  UUCP nodename: mailgate2
> a.k.a.: mailgate2.domain.com
> a.k.a.: [213.210.9.6]
> a.k.a.: [127.0.0.1]
> a.k.a.: loghost
> a.k.a.: [x.x.x.x]
> a.k.a.: mansalmail01
> a.k.a.: mansalmail01.domain.com
> a.k.a.: extmail
> a.k.a.: [IPv6:::1]
>
>  SYSTEM IDENTITY (after readcf) 
>   (short domain name) $w = mailgate2
>   (canonical domain name) $j = mailgate2.domain.com
>  (subdomain name) $m = domain.com
>   (node name) $k = mailgate2
> 
>
> \root... deliverable: mailer local, user \root
>
> root@mailgate2:~# uname -a
> SunOS mailgate2 5.11 oi_151a8 i86pc i386 i86pc
> root@mailgate2:~# more /etc/release
>  OpenIndiana Development oi_151.1.8 X86 (powered by illumos)
> Copyright 2011 Oracle and/or its affiliates. All rights reserved.
> Use is subject to license terms.
>Assembled 20 July 2013
>
>
> On 22 July 2015 at 14:46, Gary Mills  wrote:
>
>> On Wed, Jul 22, 2015 at 01:25:55PM +0100, Jonathan Adams wrote:
>> > cr*p ... I edited syslog to log _everything_
>>
>> That's part of what syslog debugging does.
>>
>> > sendmail is logging to "daemon.info", not "mail.info" ... at least I
>> can
>> > get it fixed.
>>
>> That's what I suspected.  It shouldn't be doing that.
>>
>> > 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.
>>
>> Lots of people use sendmail.  I'm running it under Solaris 11.2, but
>> using my own build of 8.14.4 because I needed SASLv2.
>>
>> It sounds as if you are running a bad build of sendmail.  You can
>> check its version this way:
>>
>> $ /usr/lib/sendmail -d0.4 -bv root
>>
>> --
>> -Gary Mills--refurb--Winnipeg, Manitoba,
>> Canada-
>>
>> ___
>> openindiana-discuss mailing list
>> openindiana-discuss@openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Tim Mooney

In regard to: Re: [OpenIndiana-discuss] Sendmail logging, Jonathan Adams...:


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.


We use it for every bit of our (Linux) email infrastructure, and I'm
certainly using sendmail on OI.  It's still the gold standard, even if
RHEL and other Linux distros are moving away from it.

Tim
--
Tim Mooney tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread John D Groenveld
In message , Tim
 Mooney writes:
>We use it for every bit of our (Linux) email infrastructure, and I'm
>certainly using sendmail on OI.  It's still the gold standard, even if
>RHEL and other Linux distros are moving away from it.

The same version included with the OP's oi_151a8 logs 
fine out of the box with OmniOS.

John
groenv...@acm.org


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Gary Mills
On Wed, Jul 22, 2015 at 04:40:01PM -0400, John D Groenveld wrote:
> In message , 
> Tim
>  Mooney writes:
> >We use it for every bit of our (Linux) email infrastructure, and I'm
> >certainly using sendmail on OI.  It's still the gold standard, even if
> >RHEL and other Linux distros are moving away from it.
> 
> The same version included with the OP's oi_151a8 logs 
> fine out of the box with OmniOS.

I suppose another test would be to use logger to send to the mail
facility, like this:

$ logger -p mail.info -t test 'This is a test message'

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
I used logger early in my tests, it works as expected. Strangely if I run
sendmail manually it love as mail.info
On 22 Jul 2015 22:59, "Gary Mills"  wrote:

> On Wed, Jul 22, 2015 at 04:40:01PM -0400, John D Groenveld wrote:
> > In message <
> alpine.soc.2.11.1507221333470.25...@dogbert.cc.ndsu.nodak.edu>, Tim
> >  Mooney writes:
> > >We use it for every bit of our (Linux) email infrastructure, and I'm
> > >certainly using sendmail on OI.  It's still the gold standard, even if
> > >RHEL and other Linux distros are moving away from it.
> >
> > The same version included with the OP's oi_151a8 logs
> > fine out of the box with OmniOS.
>
> I suppose another test would be to use logger to send to the mail
> facility, like this:
>
> $ logger -p mail.info -t test 'This is a test message'
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Gary Mills
On Wed, Jul 22, 2015 at 11:05:12PM +0100, Jonathan Adams wrote:
> I used logger early in my tests, it works as expected. Strangely if I run
> sendmail manually it love as mail.info

Something's wrong with sendmail's environment.  Here's how mine looks:

# ps -fp 2206,2208
 UID   PID  PPID   CSTIME TTY TIME CMD
root  2206 1   0   Jun 26 ?   0:36 /usr/lib/sendmail -bd -q15m
   smmsp  2208 1   0   Jun 26 ?   0:03 /usr/lib/sendmail -Ac -q15m
# pcred 2206 2208
2206:   e/r/suid=0  egid=25 rgid=0 sgid=25
groups: 25
2208:   e/r/suid=25  e/r/sgid=25
# getent passwd 25
smmsp:x:25:25:SendMail Message Submission Program:/:
# getent group 25 
smmsp::25:

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jerry Kemp

I use sendmail every day on a multitude of hosts.

I would also 2nd the comment made by an earlier poster concerning an in-house 
compile.


For basic, low level apps, it fine to use OS provided packages.

But for more complex and customizable apps (i.e. Apache httpd, Sendmail, 
Proftpd, BIND DNS server, etc), no OS provided package is going to come compiled 
with the specific customizations and compile time options that I want/need for 
my environment.


Jerry



On 07/22/15 07:25 AM, Jonathan Adams wrote:

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



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jonathan Adams
I used to always have hand compiled everything, but my efforts with
managing a large number of servers and workstations made me try to use
maintained packages where possible. Systems are easier to rebuild/replace
if you are relying on standard packages and repositories.

In my opinion the maintained packages should be the best they can be and if
I have to compile things myself it is a failure, so much so that I try to
communicate with the package maintainers when a package needs extra
work/options.

Jon
On 22 Jul 2015 23:57, "Jerry Kemp"  wrote:

> I use sendmail every day on a multitude of hosts.
>
> I would also 2nd the comment made by an earlier poster concerning an
> in-house compile.
>
> For basic, low level apps, it fine to use OS provided packages.
>
> But for more complex and customizable apps (i.e. Apache httpd, Sendmail,
> Proftpd, BIND DNS server, etc), no OS provided package is going to come
> compiled with the specific customizations and compile time options that I
> want/need for my environment.
>
> Jerry
>
>
>
> On 07/22/15 07:25 AM, Jonathan Adams wrote:
>
>> 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
>>
>>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-22 Thread Jerry Kemp
I'm not necessarily recompiling for every box.  Should have made that more clear 
in my earlier note.


I get a good compile, make a package, then stick it on the Jumpstart or AI 
server and I am good to go.


Regardless of the quality of OS provided packages, if compile time options you 
require are not there, its pretty much a necessity to build your own.


Jerry


On 07/22/15 06:08 PM, Jonathan Adams wrote:

I used to always have hand compiled everything, but my efforts with
managing a large number of servers and workstations made me try to use
maintained packages where possible. Systems are easier to rebuild/replace
if you are relying on standard packages and repositories.

In my opinion the maintained packages should be the best they can be and if
I have to compile things myself it is a failure, so much so that I try to
communicate with the package maintainers when a package needs extra
work/options.

Jon


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-23 Thread Gary Mills
On Wed, Jul 22, 2015 at 04:40:01PM -0400, John D Groenveld wrote:
> In message , 
> Tim
>  Mooney writes:
> >We use it for every bit of our (Linux) email infrastructure, and I'm
> >certainly using sendmail on OI.  It's still the gold standard, even if
> >RHEL and other Linux distros are moving away from it.
> 
> The same version included with the OP's oi_151a8 logs 
> fine out of the box with OmniOS.

Does sendmail only misbehave in a non-global zone?  If not, maybe
something else is responsible for the peculiar logging.

I'd recommend filing a bug report at illumos.org for this behavior
that you've noticed.  That way, somebody else can investigate further.

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Sendmail logging

2015-07-24 Thread Jonathan Adams
no it's global as well as non-global, but I've only tested in 151a8, I
don't have a hipster available to check at the moment, and it might well
have been fixed in that.

On 24 July 2015 at 03:00, Gary Mills  wrote:

> On Wed, Jul 22, 2015 at 04:40:01PM -0400, John D Groenveld wrote:
> > In message <
> alpine.soc.2.11.1507221333470.25...@dogbert.cc.ndsu.nodak.edu>, Tim
> >  Mooney writes:
> > >We use it for every bit of our (Linux) email infrastructure, and I'm
> > >certainly using sendmail on OI.  It's still the gold standard, even if
> > >RHEL and other Linux distros are moving away from it.
> >
> > The same version included with the OP's oi_151a8 logs
> > fine out of the box with OmniOS.
>
> Does sendmail only misbehave in a non-global zone?  If not, maybe
> something else is responsible for the peculiar logging.
>
> I'd recommend filing a bug report at illumos.org for this behavior
> that you've noticed.  That way, somebody else can investigate further.
>
> --
> -Gary Mills--refurb--Winnipeg, Manitoba,
> Canada-
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss