#!/bin/sh
#
# maybe-recordio
# John Simpson 2007-08-01
#
# 2008-07-30 jms1 - adding DENY_TLS and note about why it's there
#
###############################################################################
#
# Copyright (C) 2007,2008 John Simpson.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 or version 3 of the
# license, at your option.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
###############################################################################
if [ -n "$USE_RECORDIO" ]
then
# STARTTLS prevents recordio from working correctly, this causes
# qmail-smtpd (with my combined patch) to not advertise or allow
# the STARTTLS command.
export DENY_TLS=1
exec /usr/local/bin/recordio "$@"
else
exec "$@"
fi