maxking / docker-mailman

Dockerfiles for the Mailman suite.
https://asynchronous.in/docker-mailman/
MIT License
231 stars 103 forks source link

[BUG] Delivery failed with code 444, [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) #701

Closed arminpkathrein closed 3 months ago

arminpkathrein commented 3 months ago

Version 5.0 (newest)

I'm using postfix with "smtp-relay.gmail.com". I can send emails to the mailman system, but when the mailman/postfix needs to send to the members of a list I get this error: "Delivery failed with code 444, [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006)" this was all working fine in the version v0.4.5, also got issues when I tried to upgrade to "v0.4.6".


         - MTA=postfix
         - DATABASE_URL=mysql://b.db.ondigitalocean.com***** (replaced)
         - DATABASE_TYPE=mysql
         - DATABASE_CLASS=mailman.database.mysql.MySQLDatabase
         - HYPERKITTY_API_KEY=*****
         - SMTP_HOST=smtp-relay.gmail.com
         - SMTP_PORT=25
         - SMTP_SECURE_MODE=smtp
         - SMTP_USE_TLS=False
         - SMTP_USE_SSL=True
         - SMTP_VERIFY_HOSTNAME=true
         - SMTP_HOST_USER=general@*******
         - SMTP_HOST_PASSWORD=******```

```Settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = os.environ.get( 'smtp-relay.gmail.com')
EMAIL_PORT = os.environ.get(25)
EMAIL_HOST_USER = os.environ.get('general@****')
EMAIL_HOST_PASSWORD = os.environ.get( '****')
EMAIL_USE_TLS = os.environ.get('SMTP_USE_TLS', False)
EMAIL_USE_SSL = os.environ.get('SMTP_USE_SSL', False)```

I'm using Digitalocean as servers.
Emails are receiving in the droplet without issues. But when I send I get error
arminpkathrein commented 3 months ago

Already resolved, the wrong port and other settings were hardcoded in the django config file that was overwriting all.