0

I'm trying to put Postfix behind inetd. The idea is to configure inetd to listen to inet smtp port and make Postfix listen to a unix-domain one.

Is it possible to make inetd pass connection over to a unix-domain socket?

yaugenka
  • 115
  • 4

1 Answers1

0

Try creating a service in inetd with

server = /usr/bin/socat
server_args = socat STDIO UNIX-CONNECT:/path/to/unix/socket

This will connect the service I/O to the socket. See man socat.

Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47