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