Skip to content

Instantly share code, notes, and snippets.

@redsquirrel
Created January 23, 2009 21:48
Show Gist options
  • Select an option

  • Save redsquirrel/51213 to your computer and use it in GitHub Desktop.

Select an option

Save redsquirrel/51213 to your computer and use it in GitHub Desktop.
role :mail, *(1..8).map { |n| "mailserver#{n}.yourdomain.com" }
desc "grab postfix stats"
task :postfix_stats, :roles => :mail do
sudo "ls /var/spool/postfix/incoming|wc -l"
sudo "ls /var/spool/postfix/active|wc -l"
sudo "ls -R /var/spool/postfix/deferred|wc -l"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment