require 'formula' class Dovecot Label org.dovecot ProgramArguments #{sbin}/dovecot RunAtLoad 4) start the server using: sudo launchctl load /Library/LaunchDaemons/org.dovecot.plist EOS end end