Solved

Sendmail & Linux

Posted on 1997-06-25
2
305 Views
Last Modified: 2012-05-04
I am currebtly using Sendmail 8.8.6 on an i486 Linux box with Slakware 3.1 installed. Any user (user@linux.my.domain) can receive their email and also any email going to a virtual domain (user@virtual.domain). My problem is, when I send an email to user@virtual.domain, the user receives the email but the "TO:" in the header information is rewritten as user@linux.my.domain!
    Does anyone know how to stop Sendmail from rewriting the "TO:" field in the header?

Greatly appreciated!
Gary E. Faulkner
Systems Engineer
VisualNet Internet Solutions
0
Comment
Question by:haji
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 100 total points
ID: 1585113
Yup... DNS is forward looking up the IP address of your virtual
host to a certain IP.  So when the mail comes to that IP, your
sendmail catches it, not knowing that it was destined for your
virtual domain.

The trick is to tell sendmail to listen for it.
In /etc/sendmail.cf, make sure there is a line that looks like:
Fw/etc/sendmail.cw

Then in /etc/sendmail.cw put the following on seperate lines:
yourdomain.com
mail.yourdomain.com
virtualdomain.com

....etc., you get the idea - basically any domains you want
sendmail to catch mail for.  Be sure to kill sendmail, and
then restart it (with "sendmail -bd") after you have added
the entries to /etc/sendmail.cw
0
 

Author Comment

by:haji
ID: 1585114
Thank you so much, you hit the nail on the head!!!!!

So gratified!
Gary E. Faulkner
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question