•  
      story #27133 send mail without postfix
    Summary
    system administrator
    send mail without postfix

    I don't have to touch the postfix configuration

    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

    Empty
    Empty
    Status
    Site admin
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?
    Empty
    Details
    #27133
    Manuel Vacelet (vaceletm)
    2022-08-16 14:29
    2022-05-30 11:23
    28656

    References
    Referencing story #27133

    Git commit

    tuleap/tuleap/stable

    chore: Use Laminas\Mail\Transport\Smtp instead of Laminas\Mail\Transport\Sendmail 648481a5f6
    Rename src/common/mail/ into src/common/Mail/ a78832416b
    feat: Do not send emails if email_transport is defined to an unknown value f2f64a7c52
    feat: Do not send emails if email_relayhost is not defined when using smtp 008ecaa20a
    feat: Use provided email_relayhost for Smtp configuration a03b2c1ce4
    feat: Generate BackendAliases only when using Sendmail d956d7896f
    chore: Move MailGatewayConfigDao to \Tuleap\DB\DataAccessObject 4b81cef605
    fix: emailgateway_mode can not be set in database 1edfc74038
    feat: Docker Postfix configuration uses the email_* configuration variables 4a015d2cfd
    feat: Do not allow ForumML plugin installation when not using sendmail 91ace2f0a0
    feat: disable mail gateway when not using sendmail transport 8582162ba5
    chore: Add missing unit tests c1268e1651
    fix: Wrong display in Mail Gateway configuration b543238175

    Follow-ups

    User avatar

    Update AC with new information.


    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes