Scope & overview
This story aims to covers the absolute minimum of email sending: using a dedicated relayhost, anonymously.
Other features (TLS, authenticated relay, etc) should remains with postfix or will require a dedicated story.
Limitations
When configured without postfix, a platform can no longer receive email (No mailling lists, no reply by email, etc).
Acceptance criteria
Configuration is done with three configuration variables (config-set):
email_transport
(sendmail|smtp)
email_relayhost
(string) might contain the port (eg. mail.example.com
or mail.example.com:589
)
Behavior:
- If
email_transport
is set to sendmail
or not defined, the system Sendmail transport is used (no change)
- If
email_transport
is set to smtp
, Tuleap will use Laminas SmtpTransport
- If
email_transport
is set to smtp
, email_relayhost
must be set.
As Tuleap will no longer being able to receive email with this configuration, Tuleap should no longer generate the aliases (BackendAliases
) when email_transport
is set to app
).
From a technical stand-point, we should be able to change the Transport in Codendi_Mail to use SmtpTransport instead of Sendmail.
Warning: there is already a TULEAP_EMAIL_RELAYHOST
env variable for docker images. This variable should be removed from TuleapCfg\Command\Docker\Postfix
in favor of the new one introduced in this story.
Warning: Mail from legacy services CVS, SVN Core and PHPWiki will not be impacted by this configuration and will always still use sendmail