Fixing 441 invalid header error in Pine on OS X

Fixing 441 invalid header error in Pine on OS X

I finally figured out how to fix Pine on my Leopard box! For, well, ever, it hasn’t let me post any news messages to my local leafnode server. Every time I tried, I’d get an error stating my post was rejected due to error 441, which is an invalid error.

I eventually tracked down that the actual invalid header was the message-id header, which was being generated as something like:

Message-ID: Pine.OSX.4.64.098263998623986.75543@myimac

Which is wrong. The bit after the @ needs to be a valid fully-qualified domain name (FQDN), which Pine picks up as the iMac’s hostname. Which isn’t a FQDN.

The solution, then, was to change the hostname. Like this from a terminal:

sudo scutil --set HostName myimac.mydomain.com

That isn’t quite enough, however. In Pine, you need to change another setting too. So, from the main menu (M) go into Setup (S), Config (C), and set “use-only-domain-name” (it’s near the bottom of the page) to No.

And that’s it! Almost!

The hostname changes straight away, but it doesn’t apply to your terminal session until you log out of it and back in. So do that, and then cross your fingers before trying to post with Pine again.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.