The
Ultimate
Business Machine

Technology, business
and innovation.

And, not least, about
the Mac.

Weblog Archive Cutedge

by: Bernard Teo








Creative Commons License

Copyright © 2003-2012
Bernard Teo
Some Rights Reserved.

The Ultimate Business Machine - Archives

List of Categories : Database * Technology * Commentary * Singapore * Travel *

Tue 07 Aug 2012

MailServe on Upgraded Mountain Lion Macs

Category : Technology/MailServe6dot0dot2.txt

If yours is an upgraded Mountain Lion machine, as opposed to one that has been clean installed, you may see this problem in the log :
Aug  6 07:57:41 iMac.local postfix/postmap[2571]: fatal: bad string length 0 < 1: mydomain_fallback = 
Aug  6 07:56:54 iMac.local postfix/postqueue[2537]: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directory
A clean-installed machine is OK - it doesn't exhibit this problem.

If yours was an upgraded Mountain Lion machine, the problem is that Apple assumes that it is doing a Mountain Lion Server upgrade and gives it the "wrong" main.cf file (meant for Mountain Lion Server).

Don't believe? Look at this in Startup Disk, Systems Preferences :

StartUpDiskAfterMtnLionUpgrade.png

My Lion partition on the left was upgraded to Mountain LIon, as opposed to clean-installed, unlike the partition on the right. The upgraded one shows OS X Server, 10.8, while the clean-installed showed OS X, 10.8, as it should.

I have a new version of MailServe, 6.0.2, that attempts to fix what Apple has wrought.

It attempts to give you a main.cf file in /etc/postfix that is meant for Mountain Lion client. I don't use /etc/postfix (I have my own installation directory in /usr/local/cutedge/postfix) but built-in commands like sendmail, PHP mail, and the mail command line still use the postfix config file in /etc/postfix, and that's the one emitting all these messages.

To fix this, run MailServe 6.0.2 and do a de-install from the Help menu. You must first make sure that Postfix and Dovecot are not running. Option-Click on their respective buttons to stop them. (Note :You may want save the current config from the File menu first). I patch the faulty /etc/postfix/main.cf in the de-install process.

After starting postfix again in MailServe, Mail.app should work with your server, plus all the other command line tools.

Posted at 12:26AM UTC | permalink

Mac@Work
Put your Mac to Work

Sivasothi.com? Now how would you do something like that?

Weblogs. Download and start a weblog of your own.

A Mac Business Toolbox
A survey of the possibilities

A Business Scenario
How we could use Macs in businesses

VPN Enabler for Mavericks

MailServe for Mavericks

DNS Enabler for Mavericks

DNS Agent for Mavericks

WebMon for Mavericks

Luca for Mavericks

Liya for Mountain Lion & Mavericks

Postfix Enabler for Tiger and Panther

Sendmail Enabler for Jaguar

Services running on this server, a Mac Mini running Mac OS X 10.9.2 Mavericks:

  • Apache 2 Web Server
  • Postfix Mail Server
  • Dovecot IMAP Server
  • Fetchmail
  • SpamBayes Spam Filter
  • Procmail
  • BIND DNS Server
  • DNS Agent
  • WebDAV Server
  • VPN Server
  • PHP-based weblog
  • MySQL database
  • PostgreSQL database

all set up using MailServe, WebMon, DNS Enabler, DNS Agent, VPN Enabler, Liya and our SQL installers, all on Mavericks.