Getting mail clients to work with domains at Gmail

April 21st, 2014

My work email is Thomas.Haynes@example.org and is actually maintained at gmail.com.

Both Mail.app and mutt have had a hard time configuring for it.

For Mail.app:

  1. Set it up as normal for a Google IMAP account.
  2. Then go to Mail -> Preferences, select the account.
  3. Then on the “Outgoing Mail Server (SMTP):”, select by left click the server
  4. and then “Edit SMTP Server List …”.
  5. Now, select the server again
  6. First you’ll want to change the “Description” to be “Example.org” (this is in the “Account Information”)
  7. Second you will want to select Advanced
  8. Third, change the “User Name:” from “First.Last@gmail.com” to be “First.Last@example.org”

It should work now

For mutt, I followed the directions at Consolify your Gmail with MUTT with the exception of the following line:

set smtp_url = "smtp://yourusername@smtp.gmail.com:587/"

I modified it to be:

set smtp_url = "smtp://First.Last@example.org@smtp.gmail.com:587/"

 

Installing xml2rfc on OSX

April 21st, 2014
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
pip install xml2rfc

yields:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

So try:

curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install xml2rfc

As partially documented here in Ansible Installation -clang: error: unknown argument: ‘-mno-fused-madd’.

And the crowd goes wild!

April 17th, 2014

RFC 7204

Pullme/Pushyou

April 17th, 2014

Different git Push & Pull(fetch) URLs suggests:

[remote "origin"]
 fetch = +refs/heads/*:refs/remotes/origin/*
 url = git://github.com/chief/global.git
 pushurl = git@github.com:User/forked.git

Quick hack to rename all prefixed files in a directory to a new prefix

April 13th, 2014

loghyr:xxx thomas$ ls -1 pnfswars* | sed ‘s/\(pnfswars\)\(.*\)/mv \1\2 lnfsreg\2/’ | sh

And to do this as a script:

loghyr:xxx thomas$ more reprefix.sh
#! /bin/sh
ls -1 ${1}* | sed ‘s/\(‘${1}’\)\(.*\)/mv \1\2 ‘${2}’\2/’ | sh

Configuring no-ip

September 5th, 2012

Working with Dynamic IP Address & Your Server

Can’t install a pkg anymore on Solaris 11

August 18th, 2012

If you get this:

root@reno:~# pkg install header-math
pkg: 0/1 catalogs successfully updated:

Unable to contact valid package repository
Encountered the following error(s):
Unable to contact any configured publishers.
This is likely a network configuration problem.
Framework error: code: 7 reason: Failed to connect to 137.254.56.21: Network is unreachable
URL: ‘http://pkg.oracle.com/solaris/release’. (happened 4 times)

Then go to Building a Solaris 11 repository without network connection which will remind you what to do!

Enable the postfix Mail Transfer Agent

May 7th, 2012

I want to use git’s mailing capabilities on OS X Lion to send out patches. How do I configure the MTA?

This Enable the postfix Mail Transfer Agent looks interesting, but old:

  loghyr:postfix root# head /etc/hostconfig 
  # This file is going away

But I think we can control all of this from the postfix(1).

  loghyr:postfix root# postconf -d | grep etc
  alias_database = hash:/etc/aliases
  alias_maps = hash:/etc/aliases
  config_directory = /etc/postfix
  sample_directory = /etc/postfix

I’m going to need a version for my home network and my vpn network:

loghyr:postfix root# cp main.cf home.cf
loghyr:postfix root# cp main.cf work.cf
loghyr:postfix root# cp main.cf default.cf

Edit the config files and start it:

loghyr:postfix root# cp work.cf main.cf
loghyr:postfix root# postfix start 
postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta
postfix/postfix-script: starting the Postfix mail system

How do I get it to stay launched? What’s the correctly way to make Postfix run permanently on Lion (not server)

I can switch my config files as needed.

Hmm, it works. I can’t show you, but it works.

The main thing I changed from the article I linked in was the relayhost:

relayhost = [mail.internal.excfb.com]

My setup assumes that I am connecting to an already working mail server in the domain. I.e., my iMac isn’t going to be receiving mail, just sending it.

Some cool mutt links to getting it working on OSX

May 3rd, 2012
  1. Using mutt on OS X
  2. Using Mutt with Gmail

Ha, mutting again

May 3rd, 2012

I get tired of Outlook messing with my space alignment when I cut and paste code. I don’t care if I turn off HTML or not, it still does it. And even if I turn off HTML, the Linux-NFS mailing list rejects my posts.

So, back to mutt. The big thing people complain about when I switch back and forth between mutt and something else, is that my “From” flips from “Tom Haynes” and “Haynes, Tom”.

I tried setting gecos_mask in my .muttrc, but no joy.

This worked for me instead:
set realname=”Haynes, Tom”

I don’t care what format it is in, as long as people don’t gripe. :->