LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2010, 04:37 PM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
Question 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

Last edited by lefty.crupps; 11-10-2010 at 04:54 PM.
 
Old 11-11-2010, 09:16 AM   #2
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
What does your sendmail.mc look like?
 
Old 01-11-2011, 01:01 PM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
> 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.
 
  


Reply

Tags
sendmail prevent rewrite


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Apache2 rewriting subdirectory to root breaks accessing cgi scripts sweetie_lolz3 Linux - Server 1 05-25-2010 04:02 PM
Sendmail recipient address rewriting question... catalytical Linux - Server 4 01-12-2009 05:40 PM
Sendmail doesn't send emails Bodyweb Linux - Software 5 07-18-2006 08:53 AM
sendmail doesn't send emails outside dev_mohamed Linux - Networking 2 08-28-2005 03:42 PM
forward emails in sendmail turbo_acura Linux - Networking 1 10-06-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration