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.

Mountain Lion Server reject outgoing mail after upgrade

hi guys,


yesterday i upgraded my working Lion Server to Mountain Lion Server...


....today I can`t send Emails out. where is the Problem??

I hope anyone can Help me *goingcrazy* ^^ Sorry for my bad english... my german is better 🙂


greetz Martin 😉


here is my postconf - n output:



alias_maps = hash:/etc/aliases

biff = no

command_directory = /usr/sbin

config_directory = /Library/Server/Mail/Config/postfix

content_filter = smtp-amavis:[127.0.0.1]:10024

daemon_directory = /usr/libexec/postfix

data_directory = /Library/Server/Mail/Data/mta

debug_peer_level = 2

debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5

dovecot_destination_recipient_limit = 1

enable_server_options = yes

header_checks = pcre:/etc/postfix/custom_header_checks

html_directory = /usr/share/doc/postfix/html

imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred

inet_interfaces = all

inet_protocols = all

local_recipient_maps =

mail_owner = _postfix

mailbox_size_limit = 0

mailbox_transport = dovecot

mailq_path = /usr/bin/mailq

manpage_directory = /usr/share/man

maps_rbl_domains =

message_size_limit = 52428800

mydestination = $myhostname, localhost.$mydomain, XXX.de

mydomain = mail.XXXX.de

mydomain_fallback = localhost

myhostname = XXXX.de

mynetworks = 127.0.0.0/8, [::1]/128

newaliases_path = /usr/bin/newaliases

owner_request_special = no

postscreen_dnsbl_sites = zen.spamhaus.org*2

queue_directory = /Library/Server/Mail/Data/spool

readme_directory = /usr/share/doc/postfix

recipient_canonical_maps = hash:/etc/postfix/system_user_maps

recipient_delimiter = +

relayhost = smtp.XXX.de

sample_directory = /usr/share/doc/postfix/examples

sendmail_path = /usr/sbin/sendmail

setgid_group = _postdrop

smtp_sasl_auth_enable = yes

smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd

smtp_sasl_security_options = noanonymous

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit

smtpd_enforce_tls = no

smtpd_helo_required = yes

smtpd_helo_restrictions = reject_invalid_helo_hostname

smtpd_pw_server_security_options = cram-md5,gssapi,login,plain

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit

smtpd_sasl_auth_enable = yes

smtpd_tls_CAfile = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.chain.pe m

smtpd_tls_cert_file = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.cert.pem

smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

smtpd_tls_key_file = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.key.pem

smtpd_tls_loglevel = 0

smtpd_use_pw_server = yes

smtpd_use_tls = yes

tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 550

use_sacl_cache = yes

virtual_alias_domains = $virtual_alias_maps hash:/etc/postfix/virtual_domains

virtual_alias_maps = $virtual_maps hash:/etc/postfix/virtual_users

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

OS X Server

Posted on Jul 26, 2012 1:21 PM

Reply
26 replies

Jul 29, 2012 2:12 PM in response to FlorianLeo

Hi FlorianLeo,


IMHO your server does not miss anything ...


Please, look up the main.cf in /Library/Server/Mail/Config/postfix and check where the for smtp_sasl_password_maps andvirtual_alias_domains andvirtual_alias_maps point to ...

it has to point to /Library/Server/Mail/Config/postfix


reload postfix and try again, this has solved my problem ...

Jul 30, 2012 5:36 AM in response to chickenpellet

Hey Chickenpellet


trust me - I have as much knowledge of postfix (peace of software that does email on your server) as you have - you have read through a lot of material and spend a lot of thinking, comparing, reading through all kinds of materials again - then again thinking....


Take this URL for example:

http://www.postfix.org/postconf.5.html


The Logs (use programm Console and use filter in the right top corner: postfix) showed that postfix had an issue with usernames, specifically with aliases - yeah - where is the mentioned, complained about, "aliases.db"?! It's just not in the directories flying around in postings these days. The directories I figured out are:

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

where the latter is the "one and only" to be used with 10.8 - as I was told.


The same ist true with the cli-programm newaliases - it didn't help at all in my case. The URL above showed me a "new" command "postaliases" followed by the path, which turns out to be:

/Library/Server/Mail/Config/postfix/aliases - so the whole command is:

postaliases /Library/Server/Mail/Config/postfix/aliases



Resumé:

I gues you have to dig into - like everybody else did.

Sorry 😟

Aug 1, 2012 12:06 AM in response to FlorianLeo

I had the same problem. I resolved by altering the following line in main.cf


virtual_alias_maps = $virtual_maps hash:/Library/Server/Mail/Config/postfix/virtual_users


to


virtual_alias_maps = $virtual_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains


The file virtual_users does not exist in either the old or new postfix directories. However, what a mess: there are numerous references to old and new directories in the configuration files. Looks like it's all been done in rather a hurry.

Aug 1, 2012 2:28 AM in response to dingbell

The thing with the hurry - I have the very same feeling about it. I am not an Postfix-Pro - I am not even a beginner - but I think I should delve into it, the sooner the better. 😮

Is it coinsidence that ever since Stevens Dead I see more and more sloppyness arising?

I have Snow Leo on my Macbooks (fantastic), I got a Lion Macmini-Server (terrible - I've been through **** with it). Since the experience with Lion I will beware to upgrade the SnowLeos to Lion - the same is true with Mountain Lion. I will not upgrade the Macbooks. Not only is there too much Software, I have to rely on, installed, but I have absolutely no interest in fixing things. One of Stevens most famous sentence: "We do not ship junk!" Well people - this is something you should post-it to your screens again, and live by it.

Mountain Lion Server reject outgoing mail after upgrade

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