5065 comments
2219 subscribers
4799 on Twitter
Subscribe! Feed reader E-mail

I rock! Mail back online

Stymied by the sudden breakage in my mail setup, I racked my brain
for another way to get to the mail server in order to deliver my mail.
None of the shell accounts I had on other systems were active, and
none of the people I pinged were online.

I remembered that /etc/services was a list of well-known ports. If
mail.hosting.qsr.com.ph was listening on another standard port, that
would be a good place to find it. Searching this file for “smtp”
turned up port 25 (smtp) and port 465 (smtp over SSL).

A quick check confirmed that port 465 was accessible from my computer
even without tunneling.

All I had to do, then, was set up my mail system to use the new port.

I tried putting the port in directly. I also tried playing around with
the configuration, but I couldn’t find a clear tutorial.

I found stunnel along the way. Stunnel is a generic SSL tunnel for any
network service, and it was really easy to set up. Here’s my
/etc/init.d/stunnel-mail based on
http://www.technovelty.org/linux/tips/exim4ssmtp.html :

#!/bin/sh
case "$1" in
  start)
    echo -n "Starting ssmtp tunnel "
    start-stop-daemon --start --quiet --exec /usr/sbin/stunnel -- -c -d ssmtp -r mail.hosting.qsr.com.ph:ssmtp
    echo "stunnel."
    ;;
  stop)
    echo -n "Stopping ssmtp tunnel "
    start-stop-daemon --stop --quiet --oknodo --retry 2 --exec /usr/sbin/stunnel
    echo "stunnel."
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "Usage: /etc/init.d/ssmtp-tunnel {start|stop|restart|reload|force-reload}"
    exit 1
esac

Then it was just a matter of adding new entries to my sasl_passwd file
and regenerating the map.

Nothing like a good problem solved!

Random Emacs symbol: visible-frame-list – Function: Return a list of all frames now “visible” (being updated).

Short URL: http://sachachua.com/blog/p/3965

Comment, share a thought, ask a question...

Please comment as you, not your organization.





 

On This Day...

  • 2011: Geek travel update: Mostly as planned — I planned my packing for the Oct 5 – Oct 15 trip to the Philippines using several matrices. Life worked [...]
  • 2010: Thinking about getting better at writing — Photo (c) 2009 Markus Rodder – Creative Commons Attribution No Derivatives Licence 2.0 I want to become a more [...]
  • 2009: Happy Bee-Day to me! — I recently celebrated my two-year anniversary with IBM. This is what I posted on my internal blog on October 16, [...]
  • 2006: mencoder rocks for editing movies — I used my Sony Cybershot digital camera to take a video of my presentation at Democamp last night. The file weighed in [...]
  • 2006: Whoops, a little too hasty with the rm there — I accidentally deleted the second half of my workshop recording. Which is a pity, as it turns out you can get [...]
  • 2006: Postfix TLS problems — It looks like my mail authentication has very quietly broken behind the scenes. I’ve been using SSH tunnel to get out [...]
  • 2006: 10 rules for staying young — Via Quinn, who got it from Richard, who got it from Dave Pollard, George Carlin’s 10 rules for Staying Young: Throw [...]
  • 2006: Awww, good karma — You are really becoming an great speaker ;) btw, I was hanging around the back and overheard people asking if you [...]
  • 2006: Not among strangers — It’s amazing, looking out over a crowd of some 70 people and realizing that very few of them are strangers. It [...]
  • 2006: Terrible at remembering names? — Check out this teacher-oriented article What’s Your Name Again? by Mary !McKinney. It starts: “I’m terrible at names,” complained my friend [...]
  • 2006: Democamp a blast! Blew their brains to bits — I set out to geek the heck out of Toronto’s hippest geeks, and I did. I showed them Emacs as they’d [...]
  • 2005: Aha! moment — 43 Emacsen — feel free to steal this idea! =) — Feel free to Make This Happen, or get in touch with me if you want to hack on this with a [...]
  • 2005: In the arms of a stranger — On a whim, I decided to drop by the tango class at the International Student Centre. Although I’d never danced the [...]
  • 2005: Getting along with other geeks — It’s so much fun to hang out with other geeks. (Yes, Marcelle, that includes you. ;) ) Diane Gonzales asks: how do [...]
  • 2005: Let other people help — Said by Benjamin Franklin, quoted by Michael Motta, blogged by Seth Godin: “He that has once done you a kindness will [...]
  • 2003: Ack! No keys! — I have no idea where my keys are. Okay, last time I remember them – I was taking them off in [...]
  • 2003: Things to bring for resta nd recreation — Cross-reference: 2003.10.28#1
  • 2003: Equation — -4*c^3*d^2*e^2 - 27*d^4*e^2 + 16*c^4*e^3 + 144*c*d^2*e^3 - 128*c^2*e^4 + 256*e^5 + 16*c^3*d^3*f + 108*d^5*f - 72*c^4*d*e*f - 630*c*d^3*e*f + [...]
  • 2003: Encyclopedia of Stupid Languages at http://www.kraml.at/stupid/ — “You think Perl is hard to read? You think Pascal is restrictive to the point of uselessness? You ain’t seen nothin [...]