• Resolved jpb10

    (@jpb10)


    I am having a hard time getting smtp to work on AWS EC2.

    When using AWS SES credentials to send mail, I can only send to email addresses 15 characters or shorter…

    When sending thru gmail (smtp.gmail.com), I can only send to email addresses that have been added to the “Send mail as” (Gmail Settings/Accounts and Import) of that smtp gmail account.

    I have only been able to send to the website’s domain email addresses. I cannot verify other addresses because they are all longer than 15 characters.

    The sort of error I get when sending fails:

    
    Versions:
    WordPress: 5.1
    WordPress MS: No
    PHP: 7.3.2
    WP Mail SMTP: 1.4.1
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: You must provide at least one recipient email address.
    Host: email-smtp.us-east-1.amazonaws.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.1.1a-freebsd 20 Nov 2018
    Apache.mod_security: No
    SMTP Debug:
    2019-03-02 05:09:54	Invalid address: (addAnAddress to): [email protected]
    

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jpb10

    (@jpb10)

    Actually, I did further tests and the second bug was just a bad assumption– since I only use short email addresses on my.domain. I tried sending to [email protected] and it works. [email protected] does not.

    All recipient addresses 15 characters or shorter work on both smtp servers (aws and gmail).

    • This reply was modified 6 years ago by jpb10.
    • This reply was modified 6 years ago by jpb10.
    Thread Starter jpb10

    (@jpb10)

    I also attached an elastic IP to my EC2 instance in order to rule out SSL offloading– same result.

    Thread Starter jpb10

    (@jpb10)

    I rolled back to PHP 7.2.15 and now SMTP works.

    PHPMailer is broken with PHP 7.3.2 on FreeBSD.

    I go the hint from looking at current FreeBSD packages: no PHPMailer port (version 5 or 6) available for PHP 7.3 yet. I guess WordPress uses one of these.

    • This reply was modified 6 years ago by jpb10.
    Thread Starter jpb10

    (@jpb10)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Very weird SMTP bugs’ is closed to new replies.