The Accidental Rubyist

invalid byte sequence in UTF-8

OSX Lion and postfix … broken

leave a comment »

Upgrading to Lion has broken postfix completely. Different errors being reported all over the internet but none seems to answer my issue. I rebuilt the password file, rehashed it, created the certs which had vanished, and got the earlier postfix errors to go away, but postfix still complains about gmail’s domain.

status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again

I’ve tried all combinations, including smtp.gmail.com:587 or whatever, and they all give the same error. Strangely enough, sometimes alpine is able to send a mail using my gmail account, although mostly it talks about unable to connect. I downloaded something called sendMail (a perl program) and that works fine.
Quite embarassing that a small perl program can send mails and attachments but nothing else should be able to.

XCode requires Apple Store to download. Macports requires the full blown Xcode it seems, not the minimal 273 MB version (https://github.com/kennethreitz/osx-gcc-installer). But this was enough to install Homebrew, so maybe I’ll just move over to Homebrew. Hopefully nothing else will ask for Xcode.

It also seems that /etc/hosts is consulted after some delay. I’ve just now added my host name to it, and gethostbyname immediately picks it, whereas getaddrinfo takes 5-7 seconds to hit it. Now alpine and fetchmail are taking 5-7 seconds to load (earlier 30-60 seconds and then a host of errors). Fetchmail is not fetching any mails, though.


"UNIX is basically a simple OS, but you have to be a genius to understand the simplicity." ~ Dennis Ritchie

R.I.P

Advertisements

Written by totalrecall

October 15, 2011 at 4:47 pm

Posted in ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: