Skip to content


Postfix SMTP error: smd.smtp.com

A few updates ago, I started getting this error message on a Mac OS X 10.5.8 Server in the SMTP logs:

fatal: can’t open com file: /var/spool/postfix/pid/.smd.smtp.com

As outlined in master.h, “smd.smtp.com” is the “SRVR_MGR_COM_FILE”, i.e. a config file created by and for Server Manager (a command and control daemon on port 311 which uses XML to send and receive commands and report status). According to Apple OS X Server Manager Daemon Communication Library┬áit monitors and automatically restarts OS X server services such as mail.

The codes in master_sig.c will tell you when it should throw this error message:

file_fd = open( SRVR_MGR_COM_FILE, O_CREAT|O_TRUNC|O_RDWR, 0600 );
if( file_fd == -1 )
{
msg_fatal( “can’t open com file: %s (%m)”, SRVR_MGR_COM_FILE );
}

So, if the file doesn’t exist or if the permissions are not correct, postfix will throw this error message at you. Check that this file exists. If so, it may be corrupted. It is a simple XML file that is generated automatically, so you can regenerate it by doing the following (courtesy of Alex from Topic Desk).

Make sure Server Admin is closed

sudo serveradmin stop mail

sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist

sudo rm /var/spool/postfix/pid/.smd.smtp.com

sudo /bin/launchctl load -w /System/Library/LaunchDaemons/org.postfix.master.plist

sudo serveradmin start mail

If the problem still persists, we’ll just call it a bug in 10.5.8 Server, and learn to ignore it.

Posted in Apple, English.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.