Created
August 17, 2012 21:03
-
-
Save dana-ross/3382642 to your computer and use it in GitHub Desktop.
Tell Mountain Lion (non-Server) users how to get sendmail running
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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