Solved

Sendmail & Linux

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add a new SAN disk to a linux vmware box 8 29
I search low cost dedicated server provider 4 29
Cron jobs 12 121
Website content filtering at different level 5 64
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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