Re: [OpenIndiana-discuss] Sendmail logging
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
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. John groenv...@acm.org ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Sendmail logging
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
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 gary_mi...@fastmail.fm 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
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 t12nsloo...@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_mi...@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@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
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 gary_mi...@fastmail.fm 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
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
Re: [OpenIndiana-discuss] Sendmail logging
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] Virtualbox on hipster
On 22/07/2015 3:24 PM, Jim Klimov wrote: Essentially, the changes are needed to have the script install/uninstall usb drivers (you can force networking by a touchfile). If you never used these - you can probably get away with default packages. So if it's been just working for the last forever, it will probably continue to do so without breaking anything? Instructions are in the readme on github project. Thanks Jim! -- Typos courtesy of K-9 Mail on my Samsung Android ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Sendmail logging
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
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 sun.mail.lis...@oryx.us 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
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
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 t12nsloo...@gmail.com 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 gary_mi...@fastmail.fm 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