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
Solved

Sendmail & Linux

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

791 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