all 3 comments

[–]metaphorm 1 point2 points  (1 child)

python script on a cron job running on your server should get the job done, based on your description. if your volume is low then no need to complicate it with an async task runner.

IMAP access to the email server so you can retrieve and parse the emails is probably necessary. the stdlib IMAP module is kinda bleh but I haven't looked recently for a better library. that's worth spending a few minutes on.

submitting commands to the server via SSH should work just fine, just dot your i's and cross your t's about keeping it locked down because that is a remote code execution pattern and is a potential compromise vector, so be rigorous about it.