if [ ! -f /etc/xinetd.d/smtpproxy ]; then cat < /etc/xinetd.d/smtpproxy service smtpproxy { disable = no type = UNLISTED port = 24 socket_type = stream protocol = tcp wait = no user = clamav server = /opt/local/sbin/smtp.proxy server_args = -c /opt/local/sbin/smtp.proxy.ccp.clamav localhost:11025 groups = yes flags = REUSE only_from = 127.0.0.1 only_from += 192.168.0.0/24 219.166.94.168/29 only_from += 192.168.1.0/24 210.154.62.64/29 only_from += 192.168.2.0/24 only_from += 192.168.5.0/24 } EOF fi