Sending mail through wrong virtual host

A32

Verified User
Joined
Oct 1, 2005
Messages
23
I've been wondering why none of my customers are getting their emails.

As it turns out after sending an email to a Yahoo account, the "Recieved" field in the headers contains my "main" domain, not the one I'm sending it from. How do I make it so if I send through my foo.com domain it doesn't show myMainDomain.com in the "Recieved" field in the headers?

Example:

Received: from XXX.XXX.XXX.XXX (EHLO www.maindomain.com) (XXX.XXX.XXX.XX) by mta226.mail.re2.yahoo.com with SMTP; Mon, 29 Jan 2007 20:33:25 -0800
Received: from apache by www.maindomain.com with local (Exim 4.60) (envelope-from <[email protected]>) id 1HBkZl-0005lJ-UW for [email protected]; Mon, 29 Jan 2007 22:26:33 -0600

What it SHOULD be saying is:

Received: from XXX.XXX.XXX.XXX (EHLO www.foo.net) (XXX.XXX.XXX.XX) by mta226.mail.re2.yahoo.com with SMTP; Mon, 29 Jan 2007 20:33:25 -0800
Received: from apache by www.foo.net with local (Exim 4.60) (envelope-from <[email protected]>) id 1HBkZl-0005lJ-UW for [email protected]; Mon, 29 Jan 2007 22:26:33 -0600

Help! Emails to my customers are being flagged as spam!!
 
As it turns out after sending an email to a Yahoo account, the "Recieved" field in the headers contains my "main" domain, not the one I'm sending it from.
That's proper behavior. The server is sending the email, not the domain on the server. Mail generally comes from your hostname.
How do I make it so if I send through my foo.com domain it doesn't show myMainDomain.com in the "Recieved" field in the headers?
You can always get a dedicated server for each domain. I haven't studied to see if exim can figure out the sending domain and change the headers or not; it may be able to do it, but I haven't studied it. How would you expect it to figure out the sending domain?
Help! Emails to my customers are being flagged as spam!!
Generally when emails are being flagged as spam there's a reason. Have you checked your IP# against blocklists? Have you checked with postmasters of any of the domains refusing your emails? Have you checked your outgoing lots and/or the mailqueue, to see if anything/anyone on your server is sending spam?

Jeff
 
Hi. Thanks for your reply.

I have indeed used dnsstuff.com to check spam databases.. Nothing turned up so I'm assuming everything is okay there. I also contacted Yahoo through the form they supplied but I really doubt I'll get anywhere from that.

This really sucks. I've never spammed anybody.
 
Let's go into more detail, then. What do you mean by "being flagged as spam"?

Jeff
 
Okay..

When I write an email from Thunderbird through my host to an email address at yahoo.com, the email automatically gets put in the "Bulk" folder. When I send an email to a hotmail address it's automatically put in the "Junk E-Mail" folder. AOL and Gmail send them to my Inbox fine.

The reason it's a problem is that some of my new customers use MSN, Hotmail and Yahoo (including sbcglobal & att Yahoo) addresses when they purchase my software. If these emails get put into "Junk" folders right from the beginning, not only do they not get their license keys, but any attempts to communicate with them fail. A lot of my customers know hardly anything about email or computers to begin with. So it's imperative that my emails get to them in the correct "folder" right from the beginning.

I am a total beginner when it comes to Linux administration but I am willing to learn all I need to.

There is also more information in this post I made earlier today that includes some header information that might help solve this problem..

http://www.directadmin.com/forum/showthread.php?t=17090
 
Last edited:
You've masked your IP# and your domain; I can only guess you don't want me to look it up anywhere. So I can only guess that these folk feel you are a spammer for one reason.

I don't know what you sell, and while I don't care, I can't help but wonder if for some reason thos recipients do.

I think you're going to need to write to the postmaster at those domains and ask them.

Does your reverse DNS work for your server? Does it point to your hostname?

Do you have a mailing-list? If so, even if opt-in, it's very common for people to sign up for these, and then to forget, and report the emails as spam. When that happens, future email from your domain ends up in the bulk box and there's little you can do about it.

Perhaps it's as simple as some one reported you. Or some ones.

But if you've got a valid SPF record well, then that's all that DA can control. And if you've got a valid reverse DNS (usually from your upstream), then that's all your upstream can control.

So I'd say look at the other issues I've brought up.

I'll also reply to your other post.

Jeff
 
Back
Top