Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail Virtual Hosts

Status
Not open for further replies.

sendmailbob

IS-IT--Management
Sep 21, 2008
3
I am trying to finsih my sendmail configuration.
My last problem is the received from fields when mail carriers like yahoo and google look back to check on my mail

Below you will see that instead of mydomain.com, it lists the server hostname. This happens for all my domains. I get all otehr fields fine (return path, etc) but not the received from. Both the ips and the domains when they ehlo are returning the server. Thus all mail is flagged as spam.

Received: from server.myhostname.com (myhostname.com [72.35.68.58])
smtp.mail=bob@mydomain.com
Received: from obiwan2 (adsl-233-204-31.mia.bellsouth.net [74.233.204.31])(authenticated bits=0)
by server.myhostname.com(8.13.8/8.13.8) with ESMTP id m8LDKS9l029968



I have been on this for days. I have been through the sendmail book, as many forums as I could find, and have tried 100s of permutations of masquerades, generics domina/fqdn, different features....everything.

I am at wits end.

I cannot solve this and there is no information I have been able to find on how to make this work with virtual domains.

I am about to give up and go to postifx as I can find no solution at all. The sendmail book does not cover this issue (as far as I can tell) nor does the sendmail website (well, there is one link that might, but it goes to a 404 page..sigh).

Has anyone ever done sendmail with virtual hosts? Has anyone out there ever changed the feceived: from header, I am guessing dealing with ehlo, to accurately reflect domain names?

I give up trying and need help..anyone?
 
I'm afraid you won't solve the problem with postfix either. There is just so much you can do with masquerading. This is not a sendmail issue but has to so with email protocol. All email must be able to be traced from its origin to its destination. If you look at the full header of mail that has passed through your server, you will see the ip address and hostname complete with isp address from the senders home computer. Since you can't hide the hostname of the server, there may be something you can do. Setup virtual ip addresses such as eth0:1, eth0:2, etc. then assign a hostname (domain) to each one of them. You will have to have multiple instances of sendmail running with each listening for their own address. An easier way is to buy a generic domain name for your server such as mailserver1.net. That should keep your other domains happy. The news isn't much better for your other issue either. Most spam filters use the class of ip addresses to determine whether it is spam. If you have a residential ip from your service provider, then chances are a lot of mail that passes through your server will end up in people's junk mail folder.
 
I do have each ip set to a eth:0,1,etc... and I do remember something about that in the book, assigning per netowrk interface.

So, basically you are saying, that an ehlo will always pull up the hostname of the server and there is nothing I can do about it? So even though all my dns records and mx records are fine....and all other things, sendmail only sends as one ip, one hast, period.

So, yahoo and gmail will always tag me as spam forever, that sux.

Even a generic domain does not work due to only one ip being used by sendmail ehlo. I tried changing the mail.mydomains.com to use that ip, but that did nothing.

So masquerading is basically just to play with your intranet or disguise all domains on the webserver as one, but not the other way around (which is odd, since that is the way it seems to be anyway)

Man...that is frustrating. Why even bother with mx records if the dang things are just gonna ignore it all...lol

gonna go shoot myself now as domains will be spam tagged ad infintium.

I was begining to think this may be an issue. What a bummer.


thank you for your input, I will try one last ditch effort to do the 'listen to other interfaces' and hope for the best. Other than that I see no way to send mail to yahoo from the server....spammed.
 
got it figured out...at least for sendmail 8.13..

it was over a weeks work...and I had to guess, but you can do it.

the end of this post in the thread shows it

gonna make my hostname localhost.localdomain again just to freak everyone out since it does not matter any more!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top