As the example/lua/mailers.lua script does its best to mimic the c-mailer implementation, it should support the "timeout mail" directive as well. This could be backported in 2.8.