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 as follows:

--------------------
# main.cf
my_instance_name = postfix-queue1
syslog_name = $my_instance_name


# master.cf
smtp      inet  n       -       n       -       -       smtpd
   -o syslog_name=$my_instance_name
cleanup   unix  n       -       n       -       0       cleanup
   -o syslog_name=$my_instance_name
bounce    unix  -       -       n       -       0       bounce
   -o syslog_name=$my_instance_name
smtp      unix  -       -       n       -       -       smtp
   -o syslog_name=$my_instance_name
--------------------

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 $my_instance_name 7755 ? S 0:00 cleanup -z -t unix -u -o syslog_name $my_instance_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 $my_instance_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.

--
Justin Pasher

Reply via email to