mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #1977] Slow TLS verification and connection establishment #1483
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sdeepakbz on GitHub (Jun 12, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1977
Impacted versions
Steps to reproduce
Fresh installed using the installer and configured SMTP in WordPress website to send out order emails to the customer.
Current behavior
TLS authentication/verification is taking some time. After the connection is initiated from the external server to the SMTP modoboa server there is a pause of 5-10 seconds and then email is sent.
Connection started at Jun 12 22:39:15 and the next update on Jun 12 22:39:21 followed by connection established at Jun 12 22:39:22 timestamp. And finally, email sent at Jun 12 22:39:24
Find logs below in last section.
Expected behavior
TLS authentication to be a little faster or disable verification by using insecure 25 Port for sending out emails.
Video/Screenshot link (optional)
Attaching logs: https://del.dog/raw/resehuxegr
Server Specs
@MrGeneration commented on GitHub (Jun 12, 2020):
The first three lines you provided show that the authentication takes somewhat of two seconds on your end. The TLS connection is negioated after 1 second which is fine. On my system these steps occur on the same second, but this may happen due to network latency between the client and the server:
What's more interesting is the 6 seconds between submission queue and handover to the smtpd queue:
The reason for this gap is the fact that, by default, modoboa setups are not just checking incoming mails via amavis, but outgoing as well.
This can be changed in
/etc/postfix/master.cfYour current config should contain this block:
The last line is the filter option, if you comment that out and reload your postfix, the delay will be gone.
@sdeepakbz commented on GitHub (Jun 13, 2020):
@MrGeneration thanks alot.
that actually fixed the delay when sending out emails.
Perfect :)