Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail Service is strangely interrupted

Hello everybody,

since the Upgrade from 10.7 to 10.8 the mailservice isn't working like it used to. After the Upgrade Mail-Application on the Apple-Laptops show a green dot when verifying connectivity but the users can't send mails any more 😕



Some interesting output from the CLI

macmini:/ admin$ sudo serveradmin start mail -d

Sending to mail



<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>command</key>

<string>setState</string>

<key>state</key>

<string>START</string>

</dict>

</plist>



2012-07-29 21:02:42.507 serveradmin[16849:a07] Error executing: postfix set-permissions: with error: /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

2012-07-29 21:02:42.970 serveradmin[16849:a07] Error executing: postfix check: with error: /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

mail:state = "STARTING"



Not that I wouldn't understand the words - I can find the variable in the main.cf file - still, what does this message exactly mean?


Shell this variable be set to a different value? What are the values?

Shell this variable be removed?


I wonder if this would solve the issue of not being able to use the SMTP via Mail-Application any more.....


Please, somebody who knows what to do, would you mind and help me out?

OS 10.6 and 10.7

Posted on Jul 29, 2012 12:45 PM

Reply
Question marked as Best reply

Posted on Jul 30, 2012 4:31 AM

I was able to solve the issue myself 🙂


I spent some time figuring out what is written in the file:

/Library/Server/Mail/Config/postfix/main.cf


and took a closer look to the directories:

  • /Library/Server/Mail/Config/postfix
  • /private/etc/postfix.




And then I saw that something was different and so I edited the main.cf in the following ways:


change:

smtpd_client_restrictions = hash:/etc/postfix/smtpdreject cidr:/etc/postfix/smtpdreject.cidr permit_mynetworks

to:

smtpd_client_restrictions = hash:/Library/Server/Mail/Config/postfix/smtpdreject cidr:/Library/Server/Mail/Config/postfix/smtpdreject.cidr permit_mynetworks


change:

alias_maps = hash:/etc/postfix/aliases

to:

alias_maps = hash:/Library/Server/Mail/Config/postfix/aliases


remove (because there's no such file):

virtual_alias_maps = $virtual_map

add:

virtual_alias_domains = hash:/Library/Server/Mail/Config/postfix/virtual_domains



I hope this will help others, too.

18 replies

Aug 11, 2012 1:45 PM in response to Stefan R

Hello Stefan,



Stefan R wrote:


I have created and instered the text into the file. :-)


What character us inbetween "delete ... and ... REJECT"? Speces i guess?



Also... the postmap smtpdreject created the smtpdreject.db but shouldn't it be ".cidr"? Is it just to rename it?



The character used inbetween is TABULATOR 🙂




➖I don't know why some files are available als .db only and others are available as .cidr, too.


⚠The command postmap <path of file> - as far as I know - will produce (depending on your default setting which is usally hash) a .db file. You can change this behavior by explicitly specifieing the datatype at the moment of issuing the postmap-command or by changing the default-behavior of the system - BUT - if you change the default-behavior then this might mean you have to change the values from a lot of variables in the main.cf, too! Details can be found on www.postfix.org.


However, I am happy to hear that you made it!! 😎


Like I said earlier - please - get yourself a book about postfix - you might very well need it if things continue to go on like this with Apple-Servers. I have opened a bugreport-case on this but I don't think that there will be much outcome 😐


I have meanwhile copied both main.cf files to my desktop, deleted ALL comments, alphabetically ordered the variables, and then compared them 😮 what a mess. Some variables are in one file which aren't in the other - some variables have different values then the same variable in the other file - some variables have no value (= so why are they there at all?!)


If some info of mine helped you solving your issue, too, please rate them. Thank you!

Mail Service is strangely interrupted

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.