LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-22-2008, 05:11 AM   #1
cyberhydra
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
Sendmail, outgoing mail header issue.


Well, this one is hard to figure out.

I am running sendmail, dns, and virtualhosts all on the same server.
I can send and receive mail, as well as smtp through the server from home.
The return and from paths all accurately reflect my virtual domains.

The only issue that I cannot resolve is the "received: From" field.

This field in the header should say it is from my mail.myvirtualdomain.com, ip 45.45.56.56 (fake ip) assigned in dns.

Received: from 45.45.56.56 (EHLO mail.myvirtualdomain.com) (45.45.56.56)

but instead all domains end up using the hostname and ip (45.45.01.01) of the server itself, thus getting flagged as spam by yahoo, gmail, etc.

Received: from 45.45.01.01 (EHLO server.myserverhostname.com) (45.45.01.01)

I have tried changing the DNS to play with the ip in the hopes it would change it. That did nothing.
I have tried adding the domains to the etc/hosts file and did nothing.

I have tried some various tries at masquerade, but they have proven fruitless. I am pretty sure that masquerade may be the function, but no sendmail book I have nor any online examples deal with virtualhost outgoing mail in this way. They all deal with multiple machines and not websites.

I have been at this for literally a week, day and night and realize there is no real answer on the net for this issue, especially sendmail 8.11.xx. Everything else is fine and I know it is just a few lines. However no manual covers it.

The only way I can figure it out is if someone lends a helping hand..or I just sit here and keep trying permutations of the masquerade functions.


I know this is a big issue for many as I get lots of mail from companies in my spam box at yahoo and now looking at their headers I see why. They too are not changing the host. And although it is getting through, yahoo and the like will flag as spam.


Endemic issue for sure....anyone with experience at this know the one or two lines to make this work?

oh, and thank you in advance to the people who will post a non helpful message about how I can use postfix or exim.....
note to those guys: your mail is flagged too unless set up right.
 
Old 09-27-2008, 05:33 AM   #2
racracracrac
Member
 
Registered: Sep 2008
Posts: 44

Rep: Reputation: 15
I'm not sure there is anyway around this. The server isn't going to pay attention to anything about your virtual hosts. You can force it to use _one_ of your virtualnames, but it won't change depending on the sending email address domain.

All you can do is run a copy of sendmail for each virtualhost. Which is an ugly hack.

In fact, the Right Way(tm) is the way its currently working; it shouldn't be causing any spam issues. I would look to other sources.

Last edited by reddazz; 10-14-2008 at 05:54 PM. Reason: Removed spammed link
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing Sendmail issue kvelarde Linux - Newbie 0 05-14-2008 10:17 PM
Outgoing sendmail issue lensem Linux - Server 5 04-18-2008 02:47 AM
sendmail and outgoing mail shafey Linux - Networking 1 11-16-2005 04:57 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM
sendmail outgoing mail karunesh Linux - General 0 11-17-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration