mailman error SMTP session failure: 530, 5.7.0 Must issue a STARTTLS command first, msgid:
If this mailman error appeara again apply the following diff to /usr/lib/mailman/Mailman/Handlers/SMTPDirect.py
with patch /usr/lib/mailman/Mailman/Handlers/SMTPDirect.py <diff>
66a67,79
> if mm_cfg.SMTP_USE_TLS:
> try:
> self.__conn.starttls()
> except SMTPException, e:
> syslog('smtp-failure', 'SMTP TLS error: %s', e)
> self.quit()
> raise
> try:
> self.__conn.ehlo(mm_cfg.SMTP_HELO_HOST)
> except SMTPException, e:
> syslog('smtp-failure', 'SMTP EHLO error: %s', e)
> self.quit()
> raise
68,80d80
< if mm_cfg.SMTP_USE_TLS:
< try:
< self.__conn.starttls()
< except SMTPException, e:
< syslog('smtp-failure', 'SMTP TLS error: %s', e)
< self.quit()
< raise
< try:
< self.__conn.ehlo(mm_cfg.SMTP_HELO_HOST)
< except SMTPException, e:
< syslog('smtp-failure', 'SMTP EHLO error: %s', e)
< self.quit()
< raise
The Problem is that mailman was written with the idea that tls is only wanted if you need auth and that you don't use it if you auth with the my_networks in postfix. so starttls()
would only be called if SMTP_AUTH and SMTP_USE_TLS are given. As we don't use SMTP_AUTH starttls()
woulden't be called.