Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter portalcti3

    (@portalcti3)

    Why the event log shows “SMTPAuth:bool(true)“ while the GUI shows it as off?

    Thread Starter portalcti3

    (@portalcti3)

    Hello,

    I tried setting up the connection using the plugin predefined constants like so:

    define( ‘WPMS_ON’, true ); // True turns on the whole constants support and usage, false turns it off.

    define( ‘WPMS_DO_NOT_SEND’, false ); // Or false, in that case constant is ignored.

    define( ‘WPMS_MAIL_FROM’, ‘noreply@fakedomain.com’ );
    define( ‘WPMS_MAIL_FROM_FORCE’, true ); // True turns it on, false turns it off.
    define( ‘WPMS_MAIL_FROM_NAME’, ‘My Website’ );
    define( ‘WPMS_MAIL_FROM_NAME_FORCE’, false ); // True turns it on, false turns it off.
    define( ‘WPMS_MAILER’, ‘smtp’ ); // Possible values: ‘mail’, ‘smtpcom’, ‘sendinblue’, ‘mailgun’, ‘sendgrid’, ‘gmail’, ‘smtp’.
    define( ‘WPMS_SET_RETURN_PATH’, true ); // Sets $phpmailer->Sender if true, relevant only for Other SMTP mailer.

    define( ‘WPMS_SMTP_HOST’, ‘smtp.fakehost.com’ ); // The SMTP mail host.
    define( ‘WPMS_SMTP_PORT’, 25 ); // The SMTP server port number.
    define( ‘WPMS_SSL’, ” ); // Possible values ”, ‘ssl’, ‘tls’ – note TLS is not STARTTLS.
    define( ‘WPMS_SMTP_AUTH’, false ); // True turns it on, false turns it off.
    define( ‘WPMS_SMTP_AUTOTLS’, false ); // True turns it on, false turns it off.

    And it seems to set things up fine. Every subsite adopts this settings and all of them show auth as disabled. However the problem persists. The first subsite where the plugin gets activated first works, while the rest return an authentication error and the event log shows “SMTPAuth:bool(true)“.

    Versions:
    WordPress: 6.7.2
    WordPress MS: Yes
    PHP: 7.4.33
    WP Mail SMTP: 4.4.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not authenticate.
    Host: xx.xx.xx.xx
    Port: 25
    SMTPSecure:
    string(0) ""
    SMTPAutoTLS:bool(false)
    SMTPAuth:bool(true)

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    Apache.mod_security: No

    Debug:
    Fonte do e-mail: WP Mail SMTP Mailer: Outro SMTP SMTP Error: Could not authenticate.

    SMTP Debug:
    2025-03-24 12:09:10 Connection: opening to xx.xx.xx.xx:25, timeout=30, options=array()
    2025-03-24 12:09:10 Connection: opened
    2025-03-24 12:09:10 SERVER -> CLIENT: 220 smtp-relay.fakedomain.com ESMTP Postfix
    2025-03-24 12:09:10 CLIENT -> SERVER: EHLO www.fakedomain.com
    2025-03-24 12:09:10 SERVER -> CLIENT: 250-smtp-relay.fakedomain.com250-PIPELINING250-SIZE 10240000250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250-SMTPUTF8250 CHUNKING
    SMTP Error: Could not authenticate.
    2025-03-24 12:09:10 CLIENT -> SERVER: QUIT
    2025-03-24 12:09:10 SERVER -> CLIENT: 221 2.0.0 Bye
    2025-03-24 12:09:10 Connection: closed
    SMTP Error: Could not authenticate.
    Thread Starter portalcti3

    (@portalcti3)

    Hello,

    I sure did disable auth on all subsites. Currently testing on 3 of them. Whichever one gets the plugin activated first works well, while the rest can’t send test e-mails.

    And looking at the relay logs wasn’t helpful. The failed atempts shows as 2 entries with “cs-method”: “EHLO” and immediatelly after a “QUIT”.

Viewing 3 replies - 1 through 3 (of 3 total)