Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango throws this error: SMTPException: STARTTLS extension not supported by server
    primarykey
    data
    text
    <p>Due to limitation of outgoing mail in gmail, I installed exim4 on one of my server with the following settings:</p> <pre><code>dc_eximconfig_configtype='internet' dc_other_hostnames='mydomain.com, localhost, localhost.localdomain, mail.mydomain.com' dc_local_interfaces='' dc_readhost='mydomain.com' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='mydomain.com' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='maildir_home' </code></pre> <p>I also changed my firewall settings to allow SMTP connection. Now I can send mail from this server with some command like this:<br/></p> <pre><code> echo "TEST" | mail -s testing user@example.com </code></pre> <p>Now I want to use this server to send mail for my another remote server say mydomain2.com. I am using django on this second server. The current settings of settings.py file are following:</p> <pre><code>EMAIL_HOST = 'mail.mydomain.com' EMAIL_HOST_USER = 'username' # username of one of my user on the first server EMAIL_HOST_PASSWORD = 'password' EMAIL_PORT = 25 EMAIL_USE_TLS = True </code></pre> <p>When I try to send mail from this server using above settings and the following code:</p> <pre><code>from django.core.mail import send_mail send_mail('testing','test','from@example.com',['to@example.com']) </code></pre> <p>I get the following error:</p> <pre><code>Traceback (most recent call last): File "&lt;console&gt;", line 1, in &lt;module&gt; File "/usr/local/lib/python2.7/dist-packages/django/core/mail/__init__.py", line 61, in send_mail connection=connection).send() File "/usr/local/lib/python2.7/dist-packages/django/core/mail/message.py", line 248, in send return self.get_connection(fail_silently).send_messages([self]) File "/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py", line 85, in send_messages new_conn_created = self.open() File "/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py", line 51, in open self.connection.starttls() File "/usr/lib/python2.7/smtplib.py", line 635, in starttls raise SMTPException("STARTTLS extension not supported by server.") SMTPException: STARTTLS extension not supported by server. </code></pre> <p>I think there is some problem in the settings of exim4.<br/> So how I do solve this tls error.<br/> Thanks in Advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload