Email sending script from address is invalid

view full story

http://serverfault.com – i am sending email notifications from OSSEC active response script firewall-drop.sh, but when the email is sent through it, the FROM address is like this [email protected] it should be [email protected] or [email protected] As the script is running from root. i have tried with different email clients, like mail, mutt, mailx, sendEmail and other python and perl based scripts, all of them add the "-" before @mydomain.com. What could be the reason? (HowTos)