mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders
Other
3.82k stars 472 forks source link

Add From: address to Mail #369

Closed RudyStebih closed 4 years ago

RudyStebih commented 4 years ago

Hello,

Is it possible to add a 'From:' address to the Mail line in the 'update-ngxblocker' file. For example:

mail -s 'Some Subject' -r 'First Last you@example.com' $EMAIL

As I'm using AWS SES, I need to send the 'From:' email address along with the mail packet for authentication.

Maybe also add a '-f' flag to set the 'From:' address from the command line.

I've already updated my copy and things are working well. I just thought this might come in handy with someone else.

Cheers, Rudy

itoffshore commented 4 years ago

the latest update-ngxblocker should work now with -f switch