Differentiate connection stats signals between smtp submission and non submission
Requirements:
connection stats reports should contain, for each connection attempt, whether it's been generated by the smtp submission or not. Each connection entry should have the form:
{
"commands": {
"auth": {
"success": 1,
"total": 1
}
}
}
"submission": true,
"ip": "164.90.233.128",
"time": "2021-10-13T15:57:56Z"
}
We can identify it as the process is postfix/submission/smtpd
or postfix/smtps/smtpd
whereas non submission is postfix/smtpd
.
Edited by Leandro Santiago