Skip to content

Instantly share code, notes, and snippets.

@cpina
Created January 17, 2024 23:19
Show Gist options
  • Save cpina/79b4f425facb6b97aaea4c572307de3a to your computer and use it in GitHub Desktop.
Save cpina/79b4f425facb6b97aaea4c572307de3a to your computer and use it in GitHub Desktop.
Report rejected emails: for all users
#!/bin/bash
for recipient in email1€xample.com email2@exmaple.com email3@example.com
do
~/git/personal-server/bin/check-rejected-mail.py "$recipient" ~/mail-logs/mail.log ~/mail-logs/mail.log.1 --hours 24
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment