sendmail & Verizon

Robert Nichols rnicholsNOSPAM at comcast.net
Wed Mar 6 14:34:56 UTC 2013


On 03/05/2013 10:22 PM, Kevin J. Cummings wrote:
> On 03/05/2013 05:45 PM, Robert Nichols wrote:
>>    https://fedoraproject.org/wiki/Configure_sendmail_as_a_client_for_SMTPs
>
> Yeah, I read that.  It looks like a start.  I already have stunnel
> installed (for what I can't remember, I thought it was my IPv6 tunnel,
> but I'm no longer sure), and I have no stunnel process running atm.
>
>> That's basically what I had running back in 2007 when Comcast didn't
>> allow global access to port 587. I'd post the whole setup that I used,
>> but my old sysVinit script for starting an stunnel service wouldn't be
>> worth much these days
>
> Try me, my mail server is still running F14....

OK.  I've attached the init.d script for a "mailtunnel" service and the
"mailtunnel.conf" file that goes in /etc/mail/.  You'll need to adjust
the parameters to match the sendmail config that I see you've already
got running.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.
-------------- next part --------------
#!/bin/bash
#
#	/etc/rc.d/init.d/mailtunnel
#
# Starts the SSL tunnel for sendmail
#
# chkconfig: 2345 79 31
# description: SSL tunnel for sendmail
# processname: stunnel
# Source function library.
. /etc/init.d/functions

prog="mailtunnel"
configfile=/etc/mail/mailtunnel.conf
pidfile="/var/run/$prog.pid"

test -x /usr/sbin/stunnel -a -f $configfile || exit 0

RETVAL=0

start() {
        echo -n $"Starting $prog: "
	params=$(egrep '^[[:space:]]*(accept|connect)[[:space:]]*=' $configfile)
	daemon --pidfile=$pidfile /usr/sbin/stunnel -fd 0 <<EOF
client = yes
pid=$pidfile
[rev-smtps]
$params
EOF
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
	echo
}

stop() {
	echo -n $"Stopping $prog: "
	killproc -p $pidfile $prog
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
	echo
}

#
#	See how we were called.
#
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  reload|restart)
	stop
	start
	RETVAL=$?
	;;
  condrestart)
	if [ -f /var/lock/subsys/$prog ]; then
	    stop
	    start
	fi
	;;
  status)
	status -p $pidfile $prog
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"
	exit 1
esac

exit $RETVAL
-------------- next part --------------
# Configuration file for mailtunnel.  Only the "accept" and "connect" options
# will be taken from this file.  Everything else is ignored.

# Provide an SSL tunnel for sendmail to smtp.comcast.net port 465 (smtps).
accept = 127.0.0.25:465
connect = smtp.comcast.net:465


More information about the users mailing list