3

Problem: I've set up a mail server using SASL authentication, and have given Mail.app (on Mac Os 10.4) the login information it needs to connect. I wrote a test message for it to deliver to my server: the Activity window shows that it tries to deliver the message, but then it simply stops, with no indication of error, except that the test message is left in the Outbox.

How can I find out what went wrong? Is there some log file I don't know about?

2 Answers 2

4

Your first step could be try the Connection Doctor (I think it's available in Tiger, I don't have a copy, so not 100% sure?), under Mail's Window menu. Click the Show Detail button then check again to see a log of connection attempts.

Unfortunately, all connections - IMAP, POP and SMTP are interspersed in one log. So it's not the best of logs, but will at least show you if Mail at least connected to the server successfully; it won't test sending mail though.

Also, this http://blogs.oracle.com/chienr/entry/debugging_os_x_mail_app might help for a bit more logging.

4
  • FWIW, the Connection Doctor is available in Tiger. It was also Window > Connection Doctor. It has no Detail button though. This is still a good first step. May 30, 2010 at 18:55
  • It says "Could not connect to this SMTP server" - which is information! Since I can connect by hand using openssl s_client, that tells me that Mail must be misconfigured. May 31, 2010 at 10:28
  • Checking the logs on Mojave, SMTP and IMAP are no longer interspersed in one log, but in separate log files. Location is ~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail
    – not2savvy
    Jun 7, 2020 at 20:49
  • The link destination has vanished. That's why it's recommended to at least quote the essence from external sources rather than just link to them. :-(
    – not2savvy
    Aug 17, 2022 at 9:00
3

Stop Mail, find the file /Library/Scripts/Mail Scripts/Turn on Logging.scpt and double-click it to open AppleScript Editor. Next, press Command-R to run it, and select what you want to capture. And then use Applications, Utilities, Console to see the output.

(When done, restart Mail to stop logging, as it will log a lot.)

(This works on 10.5 and 10.6; not sure about 10.4. If you cannot find the script, here is a copy.)

3
  • The script is available under the same pathname in 10.4. May 30, 2010 at 18:57
  • Hmm. I get most of the SMTP session for another SMTP/SSL account, but the only feedback from trying to deliver to the SASL account is that it has loaded the keys from my .ssh account, followed immediately by "All identities removed". May 31, 2010 at 10:28
  • On Yosemite I get the error "Can’t make «class port» of «class dact» of item 1 of every «class mact» of application "Mail" into type string." from this script. May 21, 2015 at 16:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .