railsmachine-ops edited this page Oct 9, 2012 · 2 revisions

Moonshine ships with postfix out of the box, to handle those cases where your application needs to send email.

To disable postfix, add this to config/moonshine.yml:

  :enable: false

At this time, there's minimal configuration options for adjusting how moonshine works, because there are so many variations. If you need to adjust anything, we recommend creating a template for it and customizing it as necessary, using the installed as a base:

$ scp server:/etc/postfix/ app/manifests/templates/

Then make a recipe to manage that:

recipe :postfix_configuration
def postfix_configuration
  file '/etc/postfix/',
    :ensure => :present,
    :content => template('')
    :require => package('postfix'),
    :notify => service('postfix')