Solved

Sendmail & Linux

Posted on 1997-06-25
2
272 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
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 47
Postfix DNS lookups setup 5 38
ovirt web management page 1 64
Linux alternative boot CD? 28 91
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now