Not Logging on OS X

James Gray james at grayonline.id.au
Sat Jul 15 00:13:27 IST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad Irwin wrote:
> I am running MailScanner 4.54.6 on Mac OS X 10.4 with Postfix  2.2.10.
> MailScanner is not logging to my /var/log/mail.log. When I turn debug
> on I get the following error...
> 
> ps: illegal option -- f usage: ps [-aACcehjlmMrSTuvwx] [-O|o fmt] [-p
> pid] [-t tty] [-U user] ps [-L] Starting MailScanner... In Debugging
> mode, not forking... no connection to syslog available - _PATH_LOG not
> available in syslog.h at /opt/MailScanner/lib/MailScanner/Log.pm line
> 143
> 
> My mailscanner.conf file has Syslog Facility = mail

What version of MailScanner are you running?  Does the
"check_mailscanner" script have an entry for "Darwin" at the top
somewhere?  Like this:

...
elif $UNAME | $FGREP "Darwin" >/dev/null ; then # ie Mac OSX
    pid=`$PS -axww |
        $EGREP '[ ]('$msbindir/$process')|'$process'[:]' |
        $AWK '{print $1}'`
...

If not, it will default to attempting to use POSIX options for the
"pid=" line (namely ps -ef) which isn't valid on OSX.  OSX uses
BSD-style syntax for "ps".  Julian patched this in the *current* beta
releases but I don't think it was back-ported to the stable version.

Best bet is either add the "elif" block above to your check_mailscanner
script, or just grab the latest beta.  I'm running it on OSX 10.4.7 on
an Intel MacMini and it's performing wonderfully :)

HTH,

James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuCUXwBHpdJO7b9ERAu13AJ9pyo+SHN7TzQjnShwKPYluxxV+bACeLlF6
3015j4ifo6H6eyJshlJYAqc=
=NZvo
-----END PGP SIGNATURE-----


More information about the MailScanner mailing list