I have been using Email::Sender with Email::Sender::Transport::SMTP::TLS send email using a STARTTLS enabled relay. The relay has recently changed to using X.509 certificates for authentication. However I note that Email::Sender::Transport::SMTP::TLS has no option to point to my certificate. Neither does Net::SMTP::TLS on which Email::Sender::Transport::SMTP::TLS is based.
Can someone suggest a solution? Another module perhaps that will allow me to authenticate using a certificate.
Thank you
Checking the dependency tree:
Email::Sender::Transport::SMTP::TLS==>Net::SMTP::TLS::ButMaintained==>IO::Socket::SSL==>Net::SSLeayBoth
IO::Socket::SSLandNet::SSLeaysupporting the X.509 client certificates. SoNet::SMTP::TLS::ButMaintainedandEmail::Sender::Transport::SMTP::TLSshould be enhanced to support client certificates. A proper way should update both modules to allow theSSL_key|SSL_key_fileandSSL_cert|SSL_cert_fileparameters.Here is a quick dirty one — you need to create modified
Net::SMTP::TLS::ButMaintainedand keep it locally.Please leave the User and Password parameter as blank.
Good luck!