Learn about Centmin Mod LEMP Stack today
Become a Member

Email AWS SES test yields Transaction failed: Nested group

Discussion in 'Install & Upgrades or Pre-Install Questions' started by David Schargel, Sep 27, 2024.

  1. David Schargel

    David Schargel Premium Member Premium Member

    36
    9
    8
    Feb 2, 2020
    Portland Oregon US
    Ratings:
    +23
    Local Time:
    12:29 AM
    Emails are not going out through (what I thought) was a successful AWS SES setup.

    Because this is a new server on Hetzner, no emails via ports 25 and 465 go out until I get/pay my first bill. ;-/
    https://docs.hetzner.com/cloud/servers/faq/#why-can-i-not-send-any-mails-from-my-server

    Portion of custom_config.ini:
    Code (Text):
    EMAILNOTIFY_SES='y'
    EMAILNOTIFY_SES_FROM_EMAIL='verified@aws.ses'
    EMAILNOTIFY_SES_TO_EMAIL='me@me.com'
    EMAILNOTIFY_SES_SMTP_USERNAME='XXXXXXXXXXXXXXXXXXXXXXXX'
    EMAILNOTIFY_SES_SMTP_PASSWORD='XXXXXXXXXXXXXXXXXXXXX'
    EMAILNOTIFY_SES_SMTP_SERVER='email-smtp.us-west-2.amazonaws.com'
    EMAILNOTIFY_SES_SMTP_PORT='587'
    


    Here's the output of "emailnotify send testnote subjectnote"
    Code (Text):
    CONNECTION ESTABLISHED
    Protocol version: TLSv1.3
    Ciphersuite: TLS_AES_256_GCM_SHA384
    Peer certificate: CN = email-smtp.us-west-2.amazonaws.com
    Hash used: SHA256
    Signature type: RSA-PSS
    Verification: OK
    Server Temp Key: ECDH, prime256v1, 256 bits
    250 Ok
    250-email-smtp.amazonaws.com
    250-8BITMIME
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250 Ok
    334 VXNlcm5hbWU6
    334 UGFzc3dvcmQ6
    235 Authentication successful.
    250 Ok
    250 Ok
    354 End data with <CR><LF>.<CR><LF>
    554 Transaction failed: Nested group
    451 4.4.2 Timeout waiting for data from client.
    



    I know that the "Timeout waiting for data from client." is normal, but I don't know what to make of the "Transaction failed: Nested group" message.

    Has anyone run into this before?

    If there's no obvious solution, how can I setup postfix to start sending out via port 587 instead of the port 25 default?

    • CentOS Version: AlmaLinux 9
    • Centmin Mod Version Installed:140.00beta01.b125
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,567
    12,136
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,679
    Local Time:
    5:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod is provided as is so no official support for reconfiguring Postfix MTA mail server beyond what Centmin Mod initial setups up and configures for Postfix local outbound email sending. Below CentOS 7 references can be changed for AlmaLinux and Rocky or Redhat Enterprise Linux 8/9.

    However, if you want to sent email outbound via remote mail server like with smtp email providers like Amazon SES, PepiPost/NetcoreCloud, Mailgun, Mailjet etc there are various online guides if you search for "centos postfix relay". Instructions for Debian and Ubuntu may differ from CentOS 6 or CentOS 7 operating systems that Centmin Mod runs on so bear that in mind and read many online guides to understand the best gist of configuring Postfix relay for external mail sending via remote smtp server.

    Remember, troubleshooting and setup is all on you as I provide no support, however fellow forum members are welcome to help each other out.

    The following guides are a start and you should read them all and re-read them to get an understanding of what is required paying attention to differences of CentOS 6 vs CentoS 7 vs Debian/Ubuntu if any.

    Note you can skip installing Postfix via yum as it's already installed
    You can also setup a test VPS with a hourly billing provider and test various Postfix relay guides until you find one that works for you etc.
     
  3. David Schargel

    David Schargel Premium Member Premium Member

    36
    9
    8
    Feb 2, 2020
    Portland Oregon US
    Ratings:
    +23
    Local Time:
    12:29 AM
    Thanks... I'll give it a shot.
     
  4. David Schargel

    David Schargel Premium Member Premium Member

    36
    9
    8
    Feb 2, 2020
    Portland Oregon US
    Ratings:
    +23
    Local Time:
    12:29 AM
  5. eva2000

    eva2000 Administrator Staff Member

    53,567
    12,136
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,679
    Local Time:
    5:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah they changed some of the linked url content I suspect but your linked guide should allow you to get Postfix relay setup