Getting a Home Mail Server to Work with Verizon

It was only a matter of time and I finally decided to take the plunge. I didn’t get a smartphone for the today, but I did get a phone that allows me to check email. As phones go, well, it’s pretty basic as it’s just an LG Octane. To be honest, I can barely type on the damn thing because the keyboard keys are so small and my fingers aren’t. But the next step up is a smartphone and Verizon requires one of their expensive data plans with those.

Enough of that. The point of this post is that I had to modify my home mail server in order to get the crappy limited little email client that Verizon offers to retrieve and send mail with it. Following are the mods I made.

First, my home server has a dovecot server configured for IMAP and exim4 configured as my sendmail program via a debian setup. Also, my home server is protected by a Netgear firewall/router.

The easiest thing to configure is dovecot, which as long as it’s configured for IMAP, should pretty much be good to go. The default configuration listens on port 993 for SSL connections, which is important for security reasons. There are plenty of other guides out there for getting dovecot working.

Exim, it turns out, is a little more difficult to configure. There are 2 things it must be setup to handle: ssmtp over port 465 and relaying from the Verizon servers.

Setting up ssmtp is not difficult, but it’s also non-trivial. First, a signed certificate is required. A while back, I setup my own certificate authority for just such a situation. I followed these instructions to setup the CA (that was awhile ago) and I followed the portion about requests and signing tonight to setup my new certificates for exim and SMTP over SSL. Alternatively, exim has files to generate the certificate and key file.

The two files should be named exim.crt and exim.key and placed in the /etc/exim4/ directory. Change the permissions as follows:

$ chown root:Debian-exim exim.crt exim.key
$ chmod 640 exim.crt exim.key

That will lock them down so only exim and root can access the files.

Next, I added the following settings to my exim4.conf.template file (I put them near the beginning of the file):

tls_on_connect_ports = 465
MAIN_TLS_ENABLE = true

Save that and exit. The first line will make exim listen on port 465 for SSL connections. The second line enables other configuration settings needed by exim to make SSL work. The nice thing here is, if exim was configured to listen on the local network on port 25, operation there will be unaffected. So there’s no need to go running around reconfiguring other clients.

Next up, the update-exim4.conf.conf file must be modified. The Verizon client requires a working SMTP server. In order for the server to be considered “working” it has to act as a relay for the email host Verizon uses. The only way I could figure out the host name was to attempt to setup the account and then check the exim logs to see what host tried to connect. In my case, the hostname was sjc002-egress-a.seven.com. This hostname (it may end up being different on other setups) must be added as a relay net. Open up the update-exim4.conf.conf and add it as a semi-colon separated entry (if there are other entries) to the dc_relay_nets parameter.

To finish the exim modifications, modify the SMTPLISTENEROPTIONS entry in /etc/default/exim4 as follows:

SMTPLISTENEROPTIONS='-oX 465:25 -oP /var/run/exim4/exim.pid'

Finally, enter the following commands as root:

$ update-exim4.conf
$ /etc/init.d/exim4 restart

Actually, only use those commands if you’ve got a debian setup. Basically, the first command regenerates the live configuration file located in /var/lib/exim4/config.autogenerated. The second one restarts the exim daemons. Perform whatever the equivalent is for your system accordingly.

Last, setup port forwarding on the router. This consists of telling the router to listen for connections on certain ports and then forward those requests to a specific IP address for processing. This has to be done for port 993 for IMAPS and port 465 for SSMTP. Chances are you’ll be using web utility on your router. If you’re more security conscious, I suppose you could configure special ports on the router side that forward to the appropriate ports on the LAN side to make it less obvious to interlopers what’s going on.

Once all that’s done, the server should be good to go. Once I had everything setup properly, my phone was able to “activate” my account without any special settings on the phone.

Learning to Cut Losses

In our continuing attempts to instill some semblance of table manners into the kids, the Wife and I have been using “penalty minutes.” Basically, a violation of our etiquette rules results in 15 minutes subtracted from there bed time.

Our efforts worked initially, but over time our discipline slips a bit. Naturally, the kids discipline follows.

So tonight at dinner when the boy violated one of the rules, I asked the Wife “What’s the penalty for rudeness at the dinner table again, Mom?”

“I believe it’s 15 minutes off the offender’s bedtime,” she replied.

“Huh? I thought it was 10!” the boy blurted, somewhat incredulous.

“It could be 20,” I told him.

He didn’t argue it any further.

There were no further violations either.

Courage and Maps

I’ve been a den leader for the boy’s Cub Scout Pack for the past 2 years. As a courtesy to the parents of the kids in our Den, I send out a recap so that those not in attendance know what went on at the meeting. Since boys are so forth coming with information (sarcasm!), I figured this was the best way to make everyone feel comfortable with what their boys were learning. I’ve decided to start posting the recaps (minus names of course) because planning the meetings is not as easy as it would seem. Accordingly, I thought other leaders perusing the interwebs might find them useful should they stumble upon them. I’ll be slowly adding the previous meetings to the blog as I go to fill out the repertoire.

Finally, I’m adding it because Scouts has been a worthwhile experience for the boy. It’s an extra chance to get together with his friends, but it’s also a chance for parents to have a direct impact on what they learn since we choose the curriculum. As such, it has probably belonged on the blog all along as a memento of formative years. There’s wisdom in here. Somewhere.

We opened the meeting, as always, with a simple flag ceremony where we recited the Pledge of Allegiance and then the Cub Scout promise. The Scouts still haven’t mastered the skill of unfolding the Flag and then raising it on the pole, but it hasn’t been for lack of trying. We’ll continue to do it through the remainder of our meetings.

I then took care of some old business and handed out some awards for our Popcorn fundraiser. From there, I started the new business with a discussion on what “courage” is. All of the Scouts had their own thoughts on what it meant, mostly centering around being brave and doing exciting things. I tried to explain that courage is a little more than that: it’s a willingness to do something even though they might be scared or uncertain. They quickly grasped the idea and started offering a range of examples from fighting in wars to going into haunted houses.

When we finished this, I assigned Activity 12 from the Wolf Handbook. There are a series of scenarios that are listed in this activity and the Scouts have to pick 2 of them and explain how they think they should act given the conditions described. I then walked them through an example: What if you’re alone at the house and a stranger calls and asks if their parent’s are home. What should they do?

All the boys realized they should either lie and say that their parent’s are home but unavailable or simply hang-up the phone. I tried to point out that this is one case where lying was OK because they were protecting themselves- but don’t tell their parents that I said it was OK to lie.

After a quick break, we moved on to the main event: learning how to read maps. I brought a map of a local state park as well as a road map. We talked about what the different lines on the map mean, what the “legend” is used for, and how to properly orient the map using the North indicator that all maps have.

That led into a discussion about how to use a compass and how a compass works. Most of the boys thought a compass tells what direction it’s pointing in. I explained that a compass actually only tells one direction: it always points North. But once we know which direction North was, it’s easy to figure out the other directions. I also explained a little about magnetism and why the compass always points North and even used a magnet on the compass to control the needle to demonstrate. When they saw the compass moving around with the magnet, they all wanted a turn trying that.

Afterwards, we practiced orienting the maps properly since we now knew where North was and then all the Scouts took turns finding there homes on the road map. The Dads present also got involved at this point helping them find where they lived. The road map was gridded, to help locate things quicker on the map, and I explained that concept to them as well. As a final, somewhat humorous, note I also explained that maps are the reason that Men never ask for directions.

I wrapped up the evening by telling them if they drew a map of their neighborhood and brought it to the next Den meeting, they would then have earned a Map and Compass belt loop. To offer them a little direction, I told them their map should include their house, their street, a “compass” so it could be oriented, and any important buildings or landmarks near their house. Obviously, they don’t need to worry about scale too much.

That activity concluded our night and I let them play on the foos ball table that our meeting room features until parents arrived to take them home.

Publishers Should Solve Their Own Problem

John Gruber has had a lot to say lately about the recent iBooks EULA as well as the motives of Apple and their new iBooks software (just follow the link and scroll for all the posts he’s written.) His posts were initially his thoughts about Apple and iBooks, but more recently he’s been defending Apple from all comers, more or less.

I think he could more succinctly answer Apple critics using the following rather simple argument: Apple is solving a publishing industry problem because they see something that’s in it for them (Apple), namely money. Apple is increasing the value of their product line by lowering the barrier for content creation and they’re doing it for their customers’ (and therefore Apple’s) benefit. If the publishing industry wants to keep customers (authors) then they should figure out a way to compete with Apple’s iBooks and stop whining about the deal with the devil they made.

Because that’s exactly what the publishing industry is doing by pinning their hopes on Apple: making a deal with the devil. Apple isn’t going to do something out of some sense of altruism or helping someone out. Apple is in the business of staying in business and they play for keeps. Did publishers really expect they’d get a solution that didn’t benefit Apple in some way?

There are tons of programmers and technical people out there that could be put to work on some kind of solution. These various publishing houses would be much smarter to scrap current business plans and start hiring technical people to figure out how to make electronic media work for them. Create their own electronic book stores with their own publishing formats and deals and the like.

In others words, stop griping that Apple gave them a solution they don’t like and start solving the problem of electronic publishing for themselves. Because if they don’t, Apple won’t be a partner or a savior for publishers. Apple will become the publisher’s replacement.

Addiction Satisfied

I finished Angry Birds HD yesterday. All 18 levels, 3 star destruction, 27 Golden Eggs. Even the Facebook levels.

I feel relieved and disgusted at the same time. Relieved that it’s done, disgusted that I couldn’t finish it quicker manage my addiction.

I guess we all need our silly indulgences from time to time. Perhaps I should keep that in mind where the kids are concerned.

The Toilet Bowl

BAH!

This was my nightmare scenario, arguably my 2 least favorite teams in the playoffs, making it to the Super Bowl. Naturally, it comes to fruition. Crap.

My instant reaction is we’ll be looking at the Giants as Super Bowl champs in a couple weeks. They’re the kind of team that gives the Patriots fits: elite QB with just enough of a run game and a defense that can get pressure from its front 4. Plus, the Giants are hot and feeling it at this point: in consecutive weeks they beat the best offense (Packers) and the best defense (49ers) in the league.

I can’t think about it anymore. Even if the Pats win, there’s not much in it for me. More later.

Maybe.

Checking Out iBooks

There are a bunch of informative articles about the new iBooks software that Apple introduced today. I have to say the general concept is a good one- moving all those textbooks from there current form to a digital one. Apple claims to have solved some of the technical problems and has a bunch of the big publishing houses for textbooks on board.

In addition to what the textbook publishing industry moves to the digital format, Apple is also supplying software to enable anyone create a textbook.

Overall, pretty impressive stuff and with the publishers onboard, it’s quite likely a significant coup for Apple on the order of what iTunes did for music. I suppose one big question is “What will be the adoption rate?” Although, it may not matter if Apple is committing itself for the long haul.

The only criticism that comes to mind is it’s an “only Apple” solution. But then, it’s not clear to me that anyone else could possibly have stepped up to pull this off like Apple.

SOPA and PIPA Primer

For those wondering what all the hub-bub is about regarding SOPA and PIPA, Wired has a pretty good rundown on what’s at stake. They’ve “blacked” themselves out along with several other websites to protest the bills. Here’s their rundown on what the legislation is all about.

The bottom line is powerful interests don’t like the freedom the Internet provides and rather than addressing the problem themselves, they’re trying to muscle lawmakers into enacting a series of laws that can be abused endlessly.

Lastly, here’s a link where you can tell your Congressman your opinion.

And Then There Were None

Well, with the Giants dispatching the Packers earlier this evening, there are officially no teams left I have any enthusiasm for; let alone interest in seeing win a Super Bowl. The closest of those left would be the Patriots, but I have no special love for them. In fact, I have a sinking feeling that a Pats-Giants rematch is in our future. Minus any undefeated glory.

One observation- for all the talk of the great offense during the regular season, the teams with the best defense are the ones remaining. Yes, even the Patriots, whose D stepped up to throttle the Bronco’s O. Defense still wins championships.

Start the Game Already!

For criminy’s sake Fox, I want to see the game- not your talking head idiots.

UPDATE:
Well, that couldn’t have gone much better for the Niners. Actually, this game is a textbook example of the ol’ saw “That’s why they play the game.” The Saints are clearly the better team, but no one gets away with that many turnovers in a playoff game. So far, the Niners O can’t do much. The Saints’, on the other hand, have stopped themselves. If they stop doing that, I expect them to pull it out.

Also, is there a QB in the league more accurate than Brees? The second touchdown pass and the deep out he threw for a first down earlier in the drive were absolutely perfect throws. Reminds me of Dan Marino, whom I thought had the most accurate arm I’d ever see. Brees is just as good I’d say. Just awesome.

UPDATE2:
WOW!

I stand corrected. The Niners were the better team. No team deserves to win after giving up a lead twice in the last 3 minutes.

That is why we watch these games. Even the Wife was yelling at the TV during that one.

Today’s Playoff Games

First up, the Niners and Saints. I’m giving the Saints the nod in this one. I think they’re offense is too potent for the Niners’ D, while their offense is not potent enough to keep the Saints O off the field. Brees will get too many chances and, while they likely won’t score 40 plus, they’ll score enough to make the difference.

The more interesting game is clearly the Broncos and Patriots. Most everyone just remembers the final score of the regular season match-up. What I’ve only seen talked about a couple of times, is the fact that the Broncos gave that game away with 3 2nd quarter turnovers, all of which were freakish. More importantly, the Pats’ D couldn’t stop the Denver running game. If the Denver O asserts itself like they did in the first game and eliminates the turnovers, then I think Denver wins the game. So I see 2 possibilities: a general replay of the 1st game where the Pats get a lead early and limit Denver’s options offensively as a result; or a closer game that favors Denver because their offense keeps the Pats’ O off the field, while scoring points of their own.