Setup to Check Mail Statistics on MX1 and MX2


  1. Add elvinto user to mx1 and mx2
  2. Login mx1 and mx2 and add following to /etc/sudoers, elvinto ALL=(ALL) NOPASSWD:ALL
  3. Login nasbackup, run: ssh-copy-id elvinto@mx1.eseelynx.com and ssh-copy-id elvinto@mx2.eseelynx.com
  4. Test CLI API ssh 'elvinto@mx1.eseelynx.com' sudo pmgsh get statistics/mailcount -day 30 -month 7 -year 2024

Did you find this article useful?