
The other day, my director asked me to figure out why his brand new Microsoft Surface RT tablet doesn't want to send mail.
Google only confirmed the fact that the Mail App does not work with smtp both in “adult” Windows 8 and on tablets. No solution was found. Chatting with support through a chat with a Microsoft employee led to the fact that I received links to topics on Microsoft forums that I had previously found as Google.
The problem manifested itself in the following way: when I tried to send a letter from the mail app, the message “user@mydomain.com is unavailable” appeared in the upper right corner of the screen.
In the logs of the Postfix mail server, I saw the following:
Nov 15 15:05:11 nanoweb postfix / smtpd [96503]: connect from user.host.ru [ip.ip.ip.ip]
Nov 15 15:05:11 nanoweb postfix / smtpd [96503]: Anonymous TLS connection established from user.host.ru [ip.ip.ip.ip]: TLSv1 with cipher AES128-SHA (128/128 bits)
Nov 15 15:05:11 nanoweb postfix / smtpd [96503]: disconnect from user.host.ru [ip.ip.ip.ip]
')
After reading the MS forums, I found a message from a sapper who confessed that there was a problem with smtp and TLS, and it only remains to wait for the software update. The fact is that if you uncheck the "use TLS" checkbox, the Mail app first tries to connect via TLS, as it sees the declared TLS support in the server's banner, but for some reason, it cannot connect to the TLS server with a self-signed certificate. When working with SSL, it seems like the same thing happens.
And then I thought, “what if I get a separate port in Postfix with TLS disabled?”.
After digging in the manual, the following lines appeared in master.cf:
2567 inet n - n - - smtpd
-o smtpd_sasl_auth_enable = yes
-o smtp_use_tls = no
-o smtpd_use_tls = no
In the Mail app on the tablet, I sent 2567 port for sending, removed the "use SSL" checkbox and it all worked!
This solution is offered as a temporary solution and is intended for mail server administrators.The problem exists for at least two weeks and is still not fixed.