On 09/19/2016 12:13 AM, Viktor Dukhovni wrote:
>> On Sep 18, 2016, at 6:03 PM, John Fawcett <j...@voipsupport.it> wrote:
>> In order to get libmysqlclient to read the standard options file
>> you have to specifically define the group name to read from that file
>> for example "your_prog_name".
>> This must be called prior to mysql_real_connect.
>> When you specify this option, then the [client] section
>> and the [your_prog_name] section of the default my.cnf file
>> are read.
> Care to post a patch for src/global/dict_mysql.c? Do you
> think that the "prog_name" should be configurable? Perhaps
> allowing different Postfix instances to run with different
> settings? Or would a fixed name like "postfix" be better?
ok I can do that. I would go for a fixed name. It seems to
be the standard in my.cnf and it simplifies things. If needed
there is always the possibility to specify a different group or
a different file in the postfix mysql config file as supported by
the current dict_mysql.c:
/* .IP option_file
/* Read options from the given file instead of the default my.cnf
/* .IP option_group
/* Read options from the given group