Modify/Create a ticket responses poorly with a slow SMTP server
|Reported by:||anonymous||Owned by:|
With SMTP notification enabled, and a slow SMTP server, operations such as modify/create tickets will response poorly.
To improve responsivity, some asynchronous mechanism may need to be employed. In such a mechanism, pending emails may reside in a queue, and the queue may be backed by a persistent storage, in case of a sudden crash, the pending emails can be resent.
Attachment is a script which will improve responsivity. It's compatible with the "SendmailEmailSender interface". To use it, you need:
- set mailcache dir and SMTP stuffs in the script.
- set trac.ini:
[notification] email_sender = SendmailEmailSender sendmail_path = /path/to/mailSender.py smtp_enabled = true