Operating System - HP-UX
1834501 Members
2679 Online
110068 Solutions
New Discussion

Sendmail relaying questions

 
Joe Gilligan_1
Occasional Contributor

Sendmail relaying questions

I've got a couple of questions about doing a successful relay for a customer who's e-mail filter sees us as a spammer , my job it so see what I can do to correct a couple of things in my header record for outgoing e-mail.

HEADER AS FOLLOWS
====================
Microsoft Mail Internet Headers Version 2.0
Received: from efilter.widget.com ([192.168.1.9]) by exchange-1.widget.com with Microsoft MTPSVC(999);
Thu, 1 Sep 2005 18:09:02 -0400
Received: from unknown (HELO xena.widget.com) (192.168.1.13)
by efilter.widget.com with ESMTP; 01 Sep 2005 18:15:24 -0400
Received: (from root@localhost)
by xena.widget.com (8.11.1 (Revision 1.6) /8.9.3) id j81M7Ll1323432;
Thu, 1 Sep 2005 18:07:21 -0400 (EDT)
From: Administrator for xena
===================

I'd like to know if it's possible to change it so that

A. Is it possible to have the server not show the server name in the From address, I am NOT looking to spam I'd just very much like it if the e-mail read something like
"From: Administrator for xena ",

I was thinking we might need to put an alias MX record for our internal server (xena) at the same external IP address of our either efilter or our exchange-1 server which are both externally resolvable. But when I tried to reduce our entry via Dj to just $m. it made the server unable to send (because probably our exchange server was rejecting unresolvable addresses)

B. Is it possible to remove/strip the "Received: (from root@localhost) by ..." from the header. I tried to make this happen and sendmail got horribly confused.

C. Is it possible to get rid of the "Received: from unknown (HELO xena.widget.com) (192.168.1.13)" somehow? I really have no clue how we might do this but basically it seems that it might be an issue with our exchange-1 server.

Regards,

Joe G.
3 REPLIES 3
Doug O'Leary
Honored Contributor

Re: Sendmail relaying questions

Hey

If you want all mail from xena.widget.com to appear to come from efilter.widget.com, then you'll need to update the DM line in the /etc/mail/sendmail.conf to:

DMefilter.widget.com

Realize that, if that domain doesn't resolve via DNS, some mail systems will reject the mail.

Your other two requests aren't possible. Each sendmail system that processes email will add a "Received by" line to the headers. That's helpful in troubleshooting email transmission issues and for reporting spam.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Geoff Wild
Honored Contributor

Re: Sendmail relaying questions

A: set the DM macro in sendmail.cf to your domain:

DMwidget.com

All mail from server will appear as someone@widget.com

B. - use a Smart Realy - such as an Exchange server at your site by setting the DS macro:

DSyourexchangeserver

C. - should be fixed by A above.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Joe Gilligan_1
Occasional Contributor

Re: Sendmail relaying questions

Yeah, basically, I had used the DM record, I got it to basically do this very late last night, Basically, I had to add a hosts entry to

widget.com pointing to 192.168.1.9 and A & B things seem to work OK, this was the real difference between what I did last night and what I had done a couple of days ago.

Thanks very much to everyone for their help.

Joe G.