Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sendmail & Linux

Posted on 1997-06-25
2
Medium Priority
?
324 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 400 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

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

721 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