4

I am working on a Elixir/Phoenix app that uses Bamboo to send email using a server at 127.0.0.1:25. My TravisCI builds fail because of the lack of a SMTP server in the TravisCI environment. How can I set up the travis-yaml to install a postfix server and set it up to disable outgoing mail? So far I have the following in my travis-yaml:

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq postfix

Which successfully installs postfix, but now I need to figure out how to start it and disable outgoing mail, which I am having trouble figuring out how to do.

0 Answers0