etc xinetd smtp-proxy service smtp-proxy disable no socket_type stream

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
==> /etc/xinetd.d/smtp-proxy <==
service smtp-proxy
{
disable = no
socket_type = stream
wait = no
user = smtp-proxy
type = UNLISTED
protocol = tcp
interface = 127.0.0.1
port = 2525
server = /usr/bin/ssh
server_args = -T smtp-proxy@srv.darkk.net.ru
}
==> /home/smtp-proxy/smtpd <==
#!/bin/sh
exec /usr/bin/nc 127.0.0.1 25