LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Debian 5: Sendmail is now rewriting from emails and shouldn't be (https://www.linuxquestions.org/questions/linux-server-73/debian-5-sendmail-is-now-rewriting-from-emails-and-shouldnt-be-843530/)

lefty.crupps 11-10-2010 04:37 PM

Debian 5: Sendmail is now rewriting from emails and shouldn't be
 
Our Debian 5 webserver, with many virtual hosts on it, used to be able to send out emails from each website just by faking the email from address with PHP. This is equivalent to:

Code:

bash# sendmail -t -v -f website@webdomain.com
to: me@mydomain.com
subject: Test email from Website
this is a test
.

bash#

Recently, possibly due to a Sendmail update, the emails are getting rewritten and now the From address is website@hostname.ourdomain.com So what is happening is that the @webdomain.com is getting rewritten with the machines hostname.ourdomain.com:
website@webdomain.com > website@hostname.ourdomain.com


We don't want this rewriting!

I've restored the whole /etc/mail/ directory from a backup and there are no significant differences, and the system still isn't working like we want even with the old files.

Everything I've researched is how to use masquerading to fake to a single domain name (which is kinda what this seems to be), but I cannot find any information about PREVENTING this rewrite/masquerading.

Anyone have any ideas? I've installed Exim4 and all is working now but we would like to be able to go back to Sendmail to keep various systems the same.

Google tags: Prevent rewrite prevent rewriting stop rewrite stop rewriting

david1941 11-11-2010 09:16 AM

What does your sendmail.mc look like?

lefty.crupps 01-11-2011 01:01 PM

> What does your sendmail.mc look like?
Sorry I never got back to this thread; our server couldn't wait any longer with broken email and the Sendmail IRC forum wasn't resolving the issue, so we installed Exim4 and all is well.


All times are GMT -5. The time now is 02:26 AM.