unix_socket

Started by Tom Allisonalmost 22 years ago3 messagesgeneral
Jump to latest
#1Tom Allison
tallison@tacocat.net

I'm trying to configure postfix to use the postgres database for lookups.

Since I have a localhost based server, I was going to use unix_sockets.

The postgres docs call for only a /directory.

unix_socket_directory (string)

Specifies the directory of the Unix-domain socket on which the
server is to listen for connections from client applications. The
default is normally /tmp, but can be changed at build time.

The postfix docs call for a /directory/name.

inet: for TCP connections (default). Example:
hosts = host1.some.domain host2.some.domain
hosts = unix:/file/name

--------------
How do I get this sorted out so that I can make a unix connection?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tom Allison (#1)
Re: unix_socket

Tom Allison <tallison@tacocat.net> writes:

I'm trying to configure postfix to use the postgres database for lookups.
Since I have a localhost based server, I was going to use unix_sockets.

The postfix docs call for a /directory/name.
inet: for TCP connections (default). Example:
hosts = host1.some.domain host2.some.domain
hosts = unix:/file/name

I suspect you want to say unix:/tmp/.s.PGSQL.5432
(adjust if you are using a nonstandard port number)

regards, tom lane

#3Tom Allison
tallison@tacocat.net
In reply to: Tom Allison (#1)
Re: unix_socket

Tom Allison wrote:

I'm trying to configure postfix to use the postgres database for lookups.

Since I have a localhost based server, I was going to use unix_sockets.

The postgres docs call for only a /directory.

unix_socket_directory (string)

Specifies the directory of the Unix-domain socket on which the
server is to listen for connections from client applications. The
default is normally /tmp, but can be changed at build time.

I found that my Debian installation had unix_socket_directory built to
unix_socket_directory=''
and in order to use sockets, you have to explicitly call it out.