slimta / python-slimta

Python libraries to send, receive, and queue email.
https://slimta.org/
MIT License
171 stars 43 forks source link

Before sending email connect socket creator every round? #86

Closed bawonsak closed 8 years ago

bawonsak commented 8 years ago

28

I set loop to send email. I want to know before sending the email slimta connect socket_creator every round or not.

icgood commented 8 years ago

Yes, socket_creator will be called for every email you send through the StaticSmtpRelay or MxSmtpRelay.

However, if you use the idle_timeout option (see docs), then socket_creator will only be called for new connections, when there is no available idle connection open.