I use postfix mailserver with implemented header_checks. At this point, I have a line:
/^From:(.*)@(.*)@(.*)/ DISCARD
which prevents forged sende