Re: mysql lookup table and utf8

2016-09-18 Thread Wietse Venema
John Fawcett: > > 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 g

Re: mysql lookup table and utf8

2016-09-18 Thread John Fawcett
On 09/19/2016 12:13 AM, Viktor Dukhovni wrote: >> On Sep 18, 2016, at 6:03 PM, John Fawcett 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(&m

Re: mysql lookup table and utf8

2016-09-18 Thread Viktor Dukhovni
> On Sep 18, 2016, at 6:03 PM, John Fawcett 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"); >

Re: mysql lookup table and utf8

2016-09-18 Thread John Fawcett
On 09/15/2016 05:35 PM, Phil Stracchino wrote: > On 09/15/16 06:49, Wietse Venema wrote: >> Phil Stracchino: >>> Well, it's supposed to Just Work if they're using libmysqlclient. I'm >>> not sure where to get the information of NOT using libmysqlclient, other >>> than just searching likely locatio

Re: cosmetics: authentication success not logged

2016-09-18 Thread A. Schulze
Am 18.09.2016 um 14:39 schrieb Wietse Venema: As in the patch below. ups, you'r so fast... thanks! I'll try and report. Andreas

Re: cosmetics: authentication success not logged

2016-09-18 Thread A. Schulze
Am 18.09.2016 um 14:31 schrieb Wietse Venema: No, that would log it too often in normal sessions. Instead it can be logged for rejected commands. reject: from host[addr] ...; from=, to=, proto=SMTP, helo=, sasl_username= Hello Wietse, that would be OK, too. It requires a code change

Re: cosmetics: authentication success not logged

2016-09-18 Thread Wietse Venema
Wietse Venema: > No, that would log it too often in normal sessions. Instead it can > be logged for rejected commands. > > reject: from host[addr] ...; from=, to=, proto=SMTP, > helo=, sasl_username= As in the patch below. Wietse diff -u /var/tmp/postfix-3.2-20160917/src/smtpd/s

Re: cosmetics: authentication success not logged

2016-09-18 Thread Wietse Venema
A. Schulze: > > Hello, > > we implemented a submission server with SASL authentication. nothing > special... > also we use to grep for "sasl_username=$customer_with_trouble". > > today I noticed, the successful authentication was not logged > because a sender address was rejected. Looks like s

cosmetics: authentication success not logged

2016-09-18 Thread A. Schulze
Hello, we implemented a submission server with SASL authentication. nothing special... also we use to grep for "sasl_username=$customer_with_trouble". today I noticed, the successful authentication was not logged because a sender address was rejected. Looks like sasl_username logging happen on