v3.1 configuration example
SMTP evidence grep
Review and adapt this example to your topology, product version and security requirements.
#!/bin/bash
LOG=${1:-/var/log/maillog}
grep -E "status=(deferred|bounced)|4[0-9]{2}|5[0-9]{2}" "$LOG" | tail -n 500Important: replace example addresses, credentials, hostnames and paths. Validate syntax before deployment.