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.

Can't connect to OS X Server SMTP?

Ive been trying to fix this for a couple of days now, i'm running OS X Server on an installation of Mountain Lion and am trying to get the Mail server part working.


I can connect to IMAP and login but not the SMTP, ive checked all the ports are forwarded and i'm just stumped at what to do now, my main.cf is:


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

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

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

mail_owner = _postfix

unknown_local_recipient_reject_code = 550

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

sendmail_path = /usr/sbin/sendmail

newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

setgid_group = _postdrop

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

manpage_directory = /usr/share/man

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

readme_directory = /usr/share/doc/postfix

dovecot_destination_recipient_limit = 1

mailbox_size_limit = 0

smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

tls_random_source = dev:/dev/urandom

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

use_sacl_cache = yes

mydomain_fallback = localhost

message_size_limit = 10485760

biff = no

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

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit

recipient_delimiter = +

smtpd_tls_ciphers = medium

inet_protocols = all

inet_interfaces = all

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

smtpd_enforce_tls = no

smtpd_use_pw_server = yes

relayhost =

smtpd_tls_cert_file = /etc/certificates/my.domain.com.CB71CACC46A9C512E4FE3B8986E6956558287A0F.cert.p em

mydomain = my.domain.com

smtpd_pw_server_security_options = cram-md5,gssapi,login,plain

smtpd_sasl_auth_enable = yes

smtpd_helo_required = yes

smtpd_tls_CAfile = /etc/certificates/my.domain.com.CB71CACC46A9C512E4FE3B8986E6956558287A0F.chain. pem

content_filter = smtp-amavis:[127.0.0.1]:10024

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service unix:private/policy permit

header_checks = pcre:/Library/Server/Mail/Config/postfix/custom_header_checks

myhostname = my.domain.com

smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname

smtpd_use_tls = yes

smtpd_tls_key_file = /etc/certificates/my.domain.com.CB71CACC46A9C512E4FE3B8986E6956558287A0F.key.pe m

enable_server_options = yes

recipient_canonical_maps = hash:/Library/Server/Mail/Config/postfix/system_user_maps

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

smtpd_sasl_local_domain = my.domain.com

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

mailbox_transport = dovecot

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

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



and Mail Server Log:

Oct 24 18:06:05 my.domain.com log[20676]: imap(pid 20765 user chloei): ID sent: name=iPhone Mail, version=10A405, os=iOS, os-version=6.0 (10A405)

Oct 24 18:06:06 my.domain.com log[20676]: imap(pid 20765 user chloei): Connection closed bytes=107/452


Sorry If i'm missing something obvious, i'm new to OS X Server

MacBook Pro, OS X Server

Posted on Oct 24, 2012 11:12 AM

Reply
23 replies

Oct 25, 2012 1:00 AM in response to haykong

It's a clean Install.

I havn't downloaded it unless it came with OS X Server.

No firewall, yes i have configured FQDN and got a static IP.


Console logs show:


25/10/2012 08:54:09.729 postfix/smtpd[37843]: warning: hostname 94.197.127.104.threembb.co.uk does not resolve to address 94.197.127.104: nodename nor servname provided, or not known

25/10/2012 08:54:14.144 apsd[65]: <APSConnectionNotificationQueue: 0x7fa299c90760>: outstanding count -1 for com.apple.apsd-queue-port=com.apple.syncdefaultsd.push-user=501-env=production

25/10/2012 08:54:14.152 apsd[65]: <APSConnectionNotificationQueue: 0x7fa299c90760>: outstanding count -1 for com.apple.apsd-queue-port=com.apple.syncdefaultsd.push-user=501-env=production

25/10/2012 08:54:14.158 apsd[65]: <APSConnectionNotificationQueue: 0x7fa299c90760>: outstanding count -1 for com.apple.apsd-queue-port=com.apple.syncdefaultsd.push-user=501-env=production

25/10/2012 08:55:03.636 push_notify[28795]: stream: received error: The operation couldn’t be completed. Operation timed out on: incoming stream: APN to host: gateway.push.apple.com:2195

25/10/2012 08:55:03.649 push_notify[28795]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.e5d09063-5438-4795-a65a-3564ac1b8511: error Operation timed out

25/10/2012 08:55:03.649 push_notify[28795]: will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

25/10/2012 08:56:08.274 WindowServer[114]: CGXRegisterWindowWithSystemStatusBar: window 16 already registered

25/10/2012 08:56:09.209 WindowServer[114]: CGXRegisterWindowWithSystemStatusBar: window 16 already registered

25/10/2012 08:56:10.094 WindowServer[114]: CGXRegisterWindowWithSystemStatusBar: window 16 already registered

25/10/2012 08:56:13.299 WindowServer[114]: CGXRegisterWindowWithSystemStatusBar: window 16 already registered

25/10/2012 08:56:14.452 WindowServer[114]: CGXRegisterWindowWithSystemStatusBar: window 16 already registered

25/10/2012 08:56:46.331 mdworker[37901]: Unable to talk to lsboxd

25/10/2012 08:56:46.337 mdworker[37899]: Unable to talk to lsboxd

25/10/2012 08:56:46.344 mdworker[37900]: Unable to talk to lsboxd

25/10/2012 08:56:46.411 sandboxd[37905]: ([37901]) mdworker(37901) deny mach-lookup com.apple.ls.boxd

25/10/2012 08:56:46.416 sandboxd[37905]: ([37899]) mdworker(37899) deny mach-lookup com.apple.ls.boxd

25/10/2012 08:56:46.423 sandboxd[37905]: ([37900]) mdworker(37900) deny mach-lookup com.apple.ls.boxd

25/10/2012 08:56:46.000 kernel[0]: Sandbox: sandboxd(37905) deny mach-lookup com.apple.coresymbolicationd


That was all i got when i just tried to send an email and recieve an email.

Doesnt look like it even recognised i was trying to send/recieve. I can only see one SMTP line and no IMAP

Oct 25, 2012 3:02 AM in response to cisowden

The console log shows that push notifications are not sent out, but the push notification system is technically not related to smtp. It is triggered by the imap server, dovecot.


As I gather from the previous messages in this thread the server is on a local network with private address space and you use NAT port mapping to connect it to th outside world. I guess you tried telnet on the local network. When using your iPhone, is it also connected to the local network, or are you on 3G or LTE with it? If the latter is the case, are you sure that your provider does not block port 25 (smtp)?

Can't connect to OS X Server SMTP?

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