Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Justin Pasher (justinpdistribion.com)
Date: Tue Aug 31 2010 - 13:02:28 CDT
Noel Jones wrote:
> The only bone I have to throw will reduce the number of places to
> change it.
> # main.cf
> my_syslog_name = instanceX
> syslog_name = $my_syslog_name
> # master.cf
> foo .... foo
> -o syslog_name=$my_syslog_name
Well, it sounded like a good idea when I read it, but it looks like in
practice it doesn't work out. I set up some of the more common services
my_instance_name = postfix-queue1
syslog_name = $my_instance_name
smtp inet n - n - - smtpd
cleanup unix n - n - 0 cleanup
bounce unix - - n - 0 bounce
smtp unix - - n - - smtp
Turns out, the macro doesn't get expanded in the process name.
4894 ? S 0:00 smtpd -n smtp -t inet -u -o syslog_name
7755 ? S 0:00 cleanup -z -t unix -u -o syslog_name
7758 ? S 0:00 smtp -t unix -u -o syslog_name $my_instance_name
8468 ? S 0:00 smtpd -n smtp -t inet -u -o syslog_name
8491 ? S 0:00 smtp -t unix -u -o syslog_name $my_instance_name
Hmph. Unless there's a specific option within Postfix to do this, I'm
guessing I'll just have to resort to hard-coding the name in master.cf.
Thanks for the help.