#1  
Old 14th May 2008, 01:30
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default sendmail and masquerading

the problem was that email that was sent from the email server itself went out with a from of user@mail.ourpc.org instead of user@ourpc.org

The submit.cf was changed so that it now has:
Code:
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
dnl define(`confDIRECT_SUBMISSION_MODIFIERS',`C')
FEATURE(`use_ct_file')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
define(`confDOMAIN_NAME', `ourpc.org')dnl
The problem is that we host another domain name and some of our desktop email is supposed to go out as user@123.net, and in fact if the email client was setup correctly on the workstations, the email did go out as from user@123.net but now they all go out as user@ourpc.org

How can I set it up so that the domain name the email client on the LAN workstations uses is the one that gets used on the outgoing mail ? Or to put another way, how can I set it up so that only the @net.ourpc.org of any outgoing email gets changed to @ourpc.org ?
Reply With Quote
Sponsored Links
  #2  
Old 14th May 2008, 13:09
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

You are supposed to use the masquerading features of sendmail NOT configure confDOMAIN_NAME
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 14th May 2008, 18:10
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Question

Quote:
Originally Posted by topdog
You are supposed to use the masquerading features of sendmail NOT configure confDOMAIN_NAME
What?
Reply With Quote
  #4  
Old 15th May 2008, 08:36
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

http://www.sendmail.org/m4/masquerading.html
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.