Mailman SMTPDirect SMTP session failure: 530, Authorization required

I was getting this logline in Mailman:

SMTPDirect SMTP session failure: 530, Authorization required

The problem was that SMTPDirect doesn't do authorization of users.

So you need to add two lines and some configuration to create ASMTPDirect, and use that module, which calls smtplib.login() and logs in before trying to send mail.