1 in 500 emails fail.
Hi. One in maybe 500 emails (from the same server) randomly fail. This is in the logs. Any idea what it means?
[smtp.1:24380] [2018-04-02T19:06:43.431] DEBUG -- : [QZXWRG] Connection opened from xx.xx.xx.xx
[smtp.1:24380] [2018-04-02T19:06:43.431] DEBUG -- : [QZXWRG] Client identified as xx.xx.xx.xx
[smtp.1:24380] [2018-04-02T19:06:43.431] DEBUG -- : [QZXWRG] => 502 Invalid/unsupported command
[smtp.1:24380] [2018-04-02T19:06:43.432] DEBUG -- : [QZXWRG] => 502 Invalid/unsupported command
[smtp.1:24380] [2018-04-02T19:06:43.432] DEBUG -- : [QZXWRG] => 502 Invalid/unsupported command
[smtp.1:24380] [2018-04-02T19:06:43.432] ERROR -- : [QZXWRG] An error occurred while processing data from a client.
[smtp.1:24380] [2018-04-02T19:06:43.432] ERROR -- : [QZXWRG] Errno::EPIPE: Broken pipe
Are you able to see what server you are sending to when that failure occurs?
It's inbound to the POSTAL server. The logs are from the SMTP SERVER log.
You could add a line after the error to see what the unsupported command is: https://github.com/atech/postal/blob/ce68d9eacdd4b9351d7601da7bc0397b48a67247/lib/postal/smtp_server/client.rb#L82
Something like:
log "Invalid/unsupported command was: #{data}"
I’ve added the line, and will see what it shows. Thanks! 😊
From: Will Power [email protected] Sent: 03 April 2018 10:05 To: atech/postal [email protected] Cc: Doug Hall [email protected]; Author [email protected] Subject: Re: [atech/postal] 1 in 500 emails fail. (#556)
You could add a line after the error to see what the unsupported command is: https://github.com/atech/postal/blob/ce68d9eacdd4b9351d7601da7bc0397b48a67247/lib/postal/smtp_server/client.rb#L82https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_atech_postal_blob_ce68d9eacdd4b9351d7601da7bc0397b48a67247_lib_postal_smtp-5Fserver_client.rb-23L82&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=JfTlvHy8-7GYstu9cb3OUepb_m3jNa0ldwZ_YnvN4l8&m=D3hHbgy3CfOmvZV5yz9POncj2zPHXy4PjDSbD9hCFuY&s=LGNPCrJZ-DkUFA0pAdEc6LpTDMHj1dbGTILZPiONVps&e=
Something like:
log "Invalid/unsupported command was: #{data}"
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_atech_postal_issues_556-23issuecomment-2D378180959&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=JfTlvHy8-7GYstu9cb3OUepb_m3jNa0ldwZ_YnvN4l8&m=D3hHbgy3CfOmvZV5yz9POncj2zPHXy4PjDSbD9hCFuY&s=_pB_IKiHdzlhRm6n9oboAEIGNP52iOUBfULHIk9_Kv8&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AkDTMWi-5Fd-2DhQalhnte0ez-5FBFJnaB53lwks5tkztKgaJpZM4TEC7d&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=JfTlvHy8-7GYstu9cb3OUepb_m3jNa0ldwZ_YnvN4l8&m=D3hHbgy3CfOmvZV5yz9POncj2zPHXy4PjDSbD9hCFuY&s=yajs5MnDP6Jjuxc28yci1vqza1VHUnI-54z2N8MvFfg&e=.
Just a question, is the SMTP service allowing more than 1 connection at a time?
It's quite common for invalid commands to be thrown at SMTP servers. @willpower232's suggestion to log the invalid command will hopefully help you see what's the actual command is.
Just a question, is the SMTP service allowing more than 1 connection at a time?
Yes, it allows many independent connections.