tag:blogger.com,1999:blog-1912432620330357670.post1230834306432155421..comments2022-12-03T07:33:01.759-06:00Comments on Matthew Lenz: perl MIME::Lite sendmail Return-Path fix/overrideMatthew Lenzhttp://www.blogger.com/profile/07949632191023594293noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1912432620330357670.post-56141457973736566832010-06-04T13:08:46.000-05:002010-06-04T13:08:46.000-05:00If you control the sendmail, you can add your user...If you control the sendmail, you can add your user account to trusted-users and then just mail using MIME::Lite slightly differently during send:<br><br>$ml->send("sendmail","/usr/lib/sendmail -r $from -t -oi -oem");<br><br>This is particularly useful if you are mailing from CGI, in which case you add the user account under which your webserver runs to trusted-users. Should mail now bounce, it will go to the addres in $from and not to the webserveraccount@internal_host.Stefannoreply@blogger.com