I have a server which only sends mail out, as follows:
django/python --> postfix -----> smtp-relay.gmail.com -----> destination
When I open a gmail client that received the email, and check the details it says:
security: Standard encryption (TLS) Learn more
Now I suspect its saying from
smtp-relay.gmail.com --> gmail destination was TLS, but I am concerned I am sending email in plain text from postfix to
My postfix configuration file has:
relayhost = smtp-relay.gmail.com:587
However if I set it to:
relayhost = smtp-relay.gmail.com:25
It also works.
If I set django settings to
EMAIL_USE_TLS = True and try to send an email, it fails with:
File "/usr/lib/python3.8/smtplib.py", line 755, in starttls raise SMTPNotSupportedError( smtplib.SMTPNotSupportedError: STARTTLS extension not supported by server.
This makes me think its not using TLS, but I don't know how to verify.