Any way to exclude two IPs?
# log_selector = +smtp_connection
smtp_accept_max = 50
smtp_accept_max_per_host = 4
BTW, you are awesome. I hope your friends and company realize that. Slip me a donate button.
Fix for Too many concurrent SMTP connections
just a question, I didn't want to create a new topic...
The SMTP of the main domain connects to STARTTLS port 587 without problems, but the sub domain does not connect SMTP by STARTTLS port 587 and gives problems if added to a free GMail or to programs like Thunderbird. I can't find more information...
For example GMail delivers this error when trying to configure:
"TLS Negotiation failed, the certificate doesn't match the host., code: 0"
Setting 1:
correctdomain.com in DNS external (Linode)
SPF, DMARC and DKIM = OK!
Set it correctly in GMail free or Thunderbird desktop:
SSL for IMAP/POP = OK!
STARTSSL port 587 for SMTP = OK!
Setting 2:
problemdomain.com in DNS external (record type A = WIX)
mail.problemdomain.com in DNS external (record type A = IP PUBLIC of VESTA)
SPF, DMARC and DKIM = OK!
In Vesta I only add in WEB = mail.problemdomain.com
and SSL let's encrypt is created without errors.
Then I add in MAIL = problemdomain.com
and failed to create configuration in GMail free or Thunderbird desktop.
SSL for IMAP/POP = OK!
STARTSSL port 587 for SMTP = GMail "TLS Negotiation failed, the certificate doesn't match the host., code: 0"
If I replace the port with 25, if you connect and add the account
I even tried adding this: VESTA \ MAIL \ mail.problemdomain.com
And although the user was like this: [email protected]
This configuration did not work either:
Has something similar happened to them? 
The SMTP of the main domain connects to STARTTLS port 587 without problems, but the sub domain does not connect SMTP by STARTTLS port 587 and gives problems if added to a free GMail or to programs like Thunderbird. I can't find more information...

For example GMail delivers this error when trying to configure:
"TLS Negotiation failed, the certificate doesn't match the host., code: 0"
Setting 1:
correctdomain.com in DNS external (Linode)
SPF, DMARC and DKIM = OK!
Set it correctly in GMail free or Thunderbird desktop:
Code: Select all
Server SMTP: correctdomain.com
User: [email protected]
Port: 587 TLS
STARTSSL port 587 for SMTP = OK!
Setting 2:
problemdomain.com in DNS external (record type A = WIX)
mail.problemdomain.com in DNS external (record type A = IP PUBLIC of VESTA)
SPF, DMARC and DKIM = OK!
In Vesta I only add in WEB = mail.problemdomain.com
and SSL let's encrypt is created without errors.
Then I add in MAIL = problemdomain.com
and failed to create configuration in GMail free or Thunderbird desktop.
Code: Select all
Server SMTP: mail.problemdomain.com or IP PUBLIC of VESTA
User: [email protected]
Port: 587 TLS
STARTSSL port 587 for SMTP = GMail "TLS Negotiation failed, the certificate doesn't match the host., code: 0"
If I replace the port with 25, if you connect and add the account

I even tried adding this: VESTA \ MAIL \ mail.problemdomain.com
And although the user was like this: [email protected]
This configuration did not work either:
Code: Select all
Server SMTP: mail.problemdomain.com or IP PUBLIC of VESTA
User: [email protected]
Port: 587 TLS
