Skip to content

Instantly share code, notes, and snippets.

@dana-ross
Created August 17, 2012 21:03
Show Gist options
  • Save dana-ross/3382642 to your computer and use it in GitHub Desktop.
Save dana-ross/3382642 to your computer and use it in GitHub Desktop.
Tell Mountain Lion (non-Server) users how to get sendmail running
if RUBY_PLATFORM.include? "darwin"
unless File.exists? "/Library/Server/Mail/Data/spool"
puts "***********************************************************************"
puts "Hey there Mountain Lion user - your computer isn't set up to send email"
puts "You need to open a Terminal and execute these commands:"
puts ""
puts "sudo mkdir -p /Library/Server/Mail/Data/spool"
puts "sudo /usr/sbin/postfix set-permissions"
puts "sudo /usr/sbin/postfix start"
puts "***********************************************************************"
exit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment