emailsmtpsendmailmail-serverjenkins-email-ext

Can I send email from Jenkins using just sendmail or do I need to install some kind of SMTP gateway?


I currently have Jenkins setup to send through an AWS SMTP server, but I would like to change this so that I can send emails directly on the local network.

I have sendmail installed on the server, and a terminal test proves that Sendmail can transmit emails to an external address, so I know this is working, but I can't for the life of me get Jenkins to send directly via SendMail.

The few examples I find suggest Jenkins and SendMail are all I need but if that's the case then the setup doesn't work.

Please advise.


Solution

  • Jenkins sends email via SMTP so as long as you have sendmail listening on loopback and configured to accept email it should work as long as you put localhost as the mail server