> 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". > > mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"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? -- Viktor.