On 10/14/24 12:42, Greg Newby via Mailman-users wrote:

Here are the corresponding logfile entries from mailmanweb.log:
smtplib.SMTPRecipientsRefused: {'redac...@gmail.com': (504, b'5.5.2 <mail>:
Helo command rejected: need fully-qualified hostname')}

and from mail.log:
Oct 14 12:06:26 domain postfix/smtpd[722764]: NOQUEUE: reject: RCPT from
localhost[127.0.0.1]: 504 5.5.2 <mail>: Helo command rejected: need
fully-qualified hostname; from=<r...@lists.domain.tld> to=<root@localhost>
proto=ESMTP helo=<mail>

lists.domain.tld is the domain for Mailman3. I don't know why it's trying
to send email from root@.


I think the mail.log entry is for the DSN for the failure. The issue is the HELO/EHLO command. Try the following in your venv
```
(venv) ...:~$ python
Python 3...
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getfqdn()
```
If that returns `localhost`, that's the issue. I think you can fix it by putting a fully qualified domain name in /etc/hostname.

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/DXNVCXBWQJCSH2ASU2RDE4I3MKSWPRFA/

This message sent to arch...@mail-archive.com

Reply via email to