LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2004, 08:53 AM   #1
Thorkyl
LQ Newbie
 
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20

Rep: Reputation: 0
Question Sendmail - Can I make sendmail think its a different machine?


Here is my nightmare:
I am a service tech that spends most of my day in the field.

I am running Suse 9.0 on my laptop.
I use my laptop on the clients network to send and receive emails
back to the office to give them updates of tickets.

Here is what I am trying to do.

When I send an email to say joe@company.com
I want sendmail to tell company.com's email server that I am
mail.mycompany.net NOT machinename.mycompany.net
as this is causing many of the emails to bounce for either relaying denied
or 550-Verification failed for <myuid@machinename.mycompany.net> Unrouteable address


I do not use sendmail for receiving email only for sending.
I use Kmail for receiving.

If there is a way to do this with sendmail or a different MTA
your advice would be great help.


TIA
Thorkyl
 
Old 01-05-2004, 10:56 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Actually it sounds like what you want is to strip the machine name from the domain.

The first thing that popped up on Google was this page which is doing the same thing, but for a different reason. Scroll to the bottom of the page for instructions on how to edit your sendmail.cf (not recommended) or the sendmail.mc (strongly recommended). There is also a link at the bottom of the page to instructions for rebuilding sendmail after editing the mc files.
 
Old 01-05-2004, 12:01 PM   #3
Thorkyl
LQ Newbie
 
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20

Original Poster
Rep: Reputation: 0
That kinda worked...
It did change the email domain.

Here is an email I just sent myself.
If you look at the return path and the received from

those are the two I need to change.

the key issue I am having is that houston.rr.com along with others blocks all email
if it cant ping the mail server (by name) that the mail is coming from.
so does our company email server and a lot of our clients servers as they
are hosted by the same company.

Here is the email headers and such
<email address changes to protect the stupid>

Return-Path: <me@mylaptop.mydomain.com>
Received: from mylaptop.mydomain.com (adsl-65-71-105-241.dsl.hstntx.swbell.net [65.71.105.241])
________by mail.goodserver.net (8.11.0/8.11.0) with ESMTP id i05JP5K25951
________for <me@goodserver.net>; Mon, 5 Jan 2004 13:25:05 -0600
Received: from mylaptop.mydomain.com (localhost [127.0.0.1])
________by mylaptop.mydomain.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id i05HRhqk004124
________for <me@goodserver.net>; Mon, 5 Jan 2004 11:27:57 -0600
Received: from localhost (localhost [[UNIX: localhost]])
________by mylaptop.mydomain.com (8.12.10/8.12.10/Submit) id i05HRTq0004062
________for me@goodserver.net; Mon, 5 Jan 2004 11:27:29 -0600
From: Thor <thorkyl@ev1.net>
Reply-To: thorkyl@ev1.net
To: me@goodserver.net
Subject: testing sendmail
Date: Mon, 5 Jan 2004 11:27:29 -0600
User-Agent: KMail/1.5.4
MIME-Version: 1.0
Content-Type: text/plain;
_ charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200401051127.29102.thorkyl@ev1.net>
Status: R
X-Status: N
X-KMail-EncryptionState: _
X-KMail-SignatureState: _


here is the test message
 
Old 01-05-2004, 12:21 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well with all the work you're going through, wouldn't it be productive to setup a VPN back to your office so you can have a dedicated path back to any resources you need to access? That way it will handle things like authentication, etc and you won't have to worry about punching holes in your security policies or circumventing any mechanisms.
 
Old 01-05-2004, 12:27 PM   #5
Thorkyl
LQ Newbie
 
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20

Original Poster
Rep: Reputation: 0
I agree.
but then at the same time I do use this for personal email that I dont want going through the
company email server.

Thats what happens when you provide your own laptop.

What it really comes down to is, I want to send an email to my home account (ev1.net)
and also to my wifes work account houston.rr.com.

Thorkyl
 
Old 01-05-2004, 12:29 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well you could setup and tear down your VPN tunnel to work, so that wouldn't preclude you from sending personal e-mail. I'd talk to your company to see if they have the capability to setup a VPN from your machine back to the office when you're at remote sites.
 
Old 01-05-2004, 12:34 PM   #7
Thorkyl
LQ Newbie
 
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20

Original Poster
Rep: Reputation: 0
Will start there.

Thanks for the advice.

Thorkyl
 
Old 01-05-2004, 06:19 PM   #8
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
for your original request try to put this in you sendmail.mc and rebuild you .cf file

define(`confDOMAIN_NAME', `mail.mycompany.com')dnl
 
  


Reply



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
sendmail slowing down my machine.... haora Linux - Newbie 4 03-14-2005 10:15 AM
sendmail and apache on same machine doublehelixer Linux - Enterprise 11 06-30-2004 04:55 PM
Sendmail - hiding the name of the machine deepeyes Linux - Software 6 07-25-2003 08:01 AM
Sendmail on a cripled machine georgeh Linux - Software 7 04-03-2003 05:13 PM
sendmail relay through another machine? ifm Linux - Software 2 08-01-2002 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 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
Open Source Consulting | Domain Registration