Am 21.05.2011 06:38, schrieb Jesse Norell:
> On Sat, 2011-05-21 at 02:30 +0200, Reindl Harald wrote:
>> i am a little bit confused
>>
>> driver          = mysql
>> authdriver      = sql
>> host            = localhost
>> sqlsocket       = /var/lib/mysql/mysqld_dbmail.sock
>>
>> dbmail-postfix-policyd does not like the "host"-line
>> if it should connect to a non-default "sqlsocket"
>>
>> dbmail-lmtpd needs the "host"-line on the same machine
>> but it does not need with default-socket /var/lib/mysql/mysql.sock
>>
>> should this line not be ignored and/or left out generally
>> if there is a socket-path defined, not real a problem
>> this time because seperated configs but i am a little
>> bit afraid of updates in the future
>>
>> "does not like" means connect to default-instance instead
>> the specified socket
>>
>> Regards
>> Harry
> 
> I can make an exception for host=localhost.  Right now it check if
> host= is set .. if so, it additionally checks for a port number
> specified, and uses those for the connection; if not set, it uses the
> sqlsocket (if set).  If both host= and sqlsocket= are set, it seems
> you'd have to prefer one or the other; perhaps it should prefer the
> socket over host?  In any case, host=localhost should be safe to ignore

yes the socket should be preferred i think because it is faster
or normally "localhost" means socket in every case for mysql
(mysql-cli, php) and if you want to use TCP you have to configure
"127.0.0.1" (or a socket)
____________________________

mysql --socket=/var/lib/mysql/mysqld_dbmail.sock -u root -p
using the socket and the second mysqld-instance

mysql --socket=/var/lib/mysql/mysqld_dbmail.sock -h localhost -u root -p
does the same and -h localhost is nice but useless

mysql --socket=/var/lib/mysql/mysqld_dbmail.sock -h 127.0.0.1 -u root -p
ignores the socket because 127.0.0.1 switches to TCP
____________________________

dbmail himself perefers the second version or is falling back to the
default mysqld (default-socket or TCP is not clear for me) if
"sqlsocket" has a non-default-value and "host = localhost" is missing

in my optinion this is a small bug in dbmail and both should act
like the official client-software or if there is a good reason
for a difference you and paul could make clear what way to go
so that a config-file can be used for both in all setups

Regards
Harry





Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to