Timeout for completing TCP connections
smtp_connect_timeout

This parameter specifies the SMTP client timeout in seconds for completing a TCP connection.

When no connection can be made within the deadline, the SMTP client tries the next address on the mail exchanger list. Specify 0 to disable the timeout.