Mailman mail list is not working: Relay access denied

Created:

2016-11-16 13:19:14 UTC

Modified:

2017-08-16 15:58:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mailman mail list is not working: Relay access denied

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to send messages through the Mail list (mailman) to mailboxes on example.com. The following error appears in /var/log/maillog:
    NOQUEUE: reject: RCPT from localhost[::1]: 454 4.7.1 <test@example.com>: Relay access denied; from=<list@example.com> to=<john.doe@example.com> proto=ESMTP helo=<mail.example.com>
    or:
    NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <test@example.com>: Relay access denied; from=<list@example.com> to=<example.com> proto=ESMTP helo=<localhost.localdomain>
  • Errors in /var/log/mailman/bounce:

        (21084) ras: test@example.com current bounce score: 2.0
  • Errors in /var/log/mailman/smtp-failure:

    delivery to test@example.com failed with code -1: Server not connected
    delivery to test@example.com failed with code -1: [Errno 104] Connection reset by peer

    or

    delivery to test@example.com failed with code 553: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Cause

  • localhost IPv4 and IPv6 addresses are not added in server white list.
  • /etc/postfix/main.cf misconfiguration.

Resolution

  1. Ensure that localhost IPv4 and IPv6 addresses are both whitelisted in Plesk:
    Plesk > Tools & Settings > Mail Server Settings > White List tab > Add Network. The following IPv4 should be added for a localhost: 127.0.0.1. The following IPv6 should be added for a localhost: ::1/128 
    Screenshot_3.png
  2. Connect to the server using SSH/RDP.
  3. Add permit_mynetworks parameter into the smtpd_recipient_restrictions in /etc/postfix/main.cf. By default it should be:
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  4. Reload postfix:
    # service postfix reload

Note: Adding localhost IPv4 and IPv6 addresses into the white list makes it impossible to use Outgoing Mail Control.
Outgoing mail messages sent from IP addresses that are not in the white list are still processed by mail handlers.

For instructions about configuring mailing lists please check Mailing Lists section in Administrator's Guide.

Have more questions? Submit a request
Please sign in to leave a comment.