Skip to content

IAM

About

Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of Sendmail, although the configuration of Exim is quite different.

Usage

Below you can find an example of how to use Exim to send an email

The code uses the well known library nodemailer to perform the email sending. First, we need to create the transporter object

this.transporter = nodemailer.createTransport({
  host: 'mail_server',
  secure: false, // use TLS
  port: 25,
});

then we can use it later on in the following way

this.transporter.sendMail({
  from: "info@my.service.i3lab.group",
  to: "final-user@email.com"
  subject: "Mail for whatever reason",
  text: `
    Hello ${username},
    We are sending you this email from MyService at i3lab.group
  `,
});

Same domain

The transporter needs to know the domain of the SMTP server. Since it's pretty hard to reverse-proxy a non standard HTTP service, the SMTP server is reachable from the internal docker network of the metaplatform, which means you can for now test it only when you upload it on our servers

Compatibility

We are actually discussing different options to have a proxy server that will allow sending e-mails through REST APIs

Back to top