Upgrade from Lion Server to ML 10.8.1 Broke Mail server!

....10.8.1 OD seems to work, files and AFP available, but Mail server not working correctly. Now users don't see mail, postfix issues numerous errors about missing system_user_maps and delivers no mail? Must recover mails! Help! Where should I look, and what to read for Diagnosis ?


After upgrade in place from SL to Lion to ML. most services did not work correctly; except for Mail and DNS and OD. Reinstalled. Now most everything seems to work including Card Services, Calendars, Wiki, Web, DNS, OD. But Mail is off and missing??? No delivery of INcoming mail, No Sending Mail, no IMAP Mail login for users.


On Mail configuration in Server.App: Turned off All Filtering. Have rebooted Server several times, Restarted Mailserver from Server,app and Terninal. Same Results. Somewhere along the line from Server 10.5 to SL to Lion to 10.8 incoming Maill started going to user@PLG1.plg-law.com rather than simply user@plg-law.com.


Is it possible that virtual domains are fuzzing up the works? The error logs use the longer virtual domain (with the sevrer name prefix) rather than the domain name?


Here are some sample Log messages:


From SYStem Log:


Sep 7 19:33:56 plg1.plg-law.com postfix/cleanup[1998]: warning: 8273B199E3F8: recipient_canonical_maps map lookup problem for _mailman@plg1.plg-law.com

Sep 7 19:33:56 plg1.plg-law.com postfix/pickup[1324]: warning: maildrop/ECF3A196A4FE: error writing 8273B199E3F8: queue file write error

Sep 7 19:33:58 plg1.plg-law.com postfix/pickup[1324]: warning: E5AC9199E3F9: message has been queued for 1 days

Sep 7 19:33:58 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps is unavailable. open database /etc/postfix/system_user_maps.db: No such file or directory

Sep 7 19:33:58 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps lookup error for "_mailman@plg1.plg-law.com"

Sep 7 19:33:58 plg1.plg-law.com postfix/cleanup[1998]: warning: E5AC9199E3F9: recipient_canonical_maps map lookup problem for _mailman@plg1.plg-law.com

Sep 7 19:33:58 plg1.plg-law.com postfix/pickup[1324]: warning: maildrop/ED4AB196A4FF: error writing E5AC9199E3F9: queue file write error

Sep 7 19:33:59 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps is unavailable. open database /etc/postfix/system_user_maps.db: No such file or directory

Sep 7 19:33:59 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps lookup error for "_mailman@plg1.plg-law.com"

Sep 7 19:33:59 plg1.plg-law.com postfix/cleanup[1998]: warning: 385DD199E3FB: recipient_canonical_maps map lookup problem for _mailman@plg1.plg-law.com

Sep 7 19:33:59 plg1.plg-law.com postfix/pickup[1324]: warning: maildrop/EE2A9199B211: error writing 385DD199E3FB: queue file write error


From SMTP Log:


Sep 7 19:35:24 plg1.plg-law.com postfix/pickup[1324]: 3652E199E487: uid=78 from=<_mailman>

Sep 7 19:35:24 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps is unavailable. open database /etc/postfix/system_user_maps.db: No such file or directory

Sep 7 19:35:24 plg1.plg-law.com postfix/cleanup[1998]: warning: hash:/etc/postfix/system_user_maps lookup error for "_mailman@plg1.plg-law.com"

Sep 7 19:35:24 plg1.plg-law.com postfix/cleanup[1998]: warning: 3652E199E487: recipient_canonical_maps map lookup problem for _mailman@plg1.plg-law.com

Sep 7 19:35:24 plg1.plg-law.com postfix/pickup[1324]: warning: maildrop/8E82B199AD06: error writing 3652E199E487: queue file write error

Mac mini (Late 2009), OS X Server, 10.8.1

Posted on Sep 7, 2012 4:50 PM

Reply
163 replies

Sep 10, 2012 9:53 AM in response to bpassan2007

actually let's make it easier.. forget the smtpdreject list..... let's just get you back up



change the offending line:


the offending line is:


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


change to:

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit

Sep 10, 2012 9:55 AM in response to haykong

Darn. This new Method for automagically copying from ?config directory to /etc/postfix appears to causing continuing problems...its very fragile. The Aliases.DB was ok earlier....now its issue messages and no incoming mail or outgoimng mail is getting delivered (even though users are connection to the MailServer), although it looks like mail is queing ok, just not being delivered:



New errors types:



Sep 10 12:46:47 plg1.plg-law.com postfix/local[5233]: B10F11A4FF97: to=<_mailman@plg1.plg-law.com>, relay=local, delay=1302, delays=1302/0.02/0/0.01, dsn=4.3.0, status=deferred (alias database unavailable)

Sep 10 12:46:47 plg1.plg-law.com postfix/qmgr[4981]: E9BA11A5036A: from=<_mailman@plg1.plg-law.com>, size=645, nrcpt=1 (queue active)

Sep 10 12:46:47 plg1.plg-law.com postfix/local[5233]: warning: hash:/Library/Server/Mail/Config/postfix/aliases is unavailable. open database /Library/Server/Mail/Config/postfix/aliases.db: No such file or directory

Sep 10 12:46:47 plg1.plg-law.com postfix/local[5233]: warning: hash:/Library/Server/Mail/Config/postfix/aliases: lookup of '_mailman' failed

Sep 10 12:46:47 plg1.plg-law.com postfix/local[5233]: E9BA11A5036A: to=<_mailman@plg1.plg-law.com>, orig_to=<_mailman>, relay=local, delay=407, delays=407/0.02/0/0.07, dsn=4.3.0, status=deferred (alias database unavailable)



And yes there are aliases file (but no Aliaises.db file) in the /Config/postfix directory.....????? But there was earlier, and yesterday. What is the correct command for rebuilding aliases.db file? Thanks

Sep 10, 2012 10:09 AM in response to bpassan2007

I see on on your main.cf file


# smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit



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

# Correction Sep 9 2012

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



why don't we change it to:


smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit



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

# Correction Sep 9 2012

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

Sep 10, 2012 10:56 AM in response to haykong

Here is what is running right now...Just restarted with this new main.cf about 5 minutes ago:




smtpd_enforce_tls = no

smtpd_tls_loglevel = 0

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit



# smtpd_client_restrictions = hash:/Library/Server/Mail/Config/postfix/smtpdreject cidr:/Library/Server/Mail/Config/postfix/$

# Correction Sep 9 2012

# smtpd_client_restrictions = hash:/Library/Server/Mail/Config/postfix/smtpdreject cidr:/Library/Server/Mail/Config/postfix$

# Edited again sept 10 to comment next line in substitution of above

# smtpd_client_restrictions = hash:/Library/Server/Mail/Config/postfix/smtpdreject cidr:/Library/Server/Mail/Config/postfix/$

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Upgrade from Lion Server to ML 10.8.1 Broke Mail server!

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