Re: sendmail & Verizon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
#!/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
# 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
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux