sendmail and masquerading

Discussion in 'Server Operation' started by chipsafts, May 14, 2008.

  1. chipsafts

    chipsafts New Member

    the problem was that email that was sent from the email server itself went out with a from of [email protected] instead of [email protected]

    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 [email protected], and in fact if the email client was setup correctly on the workstations, the email did go out as from [email protected] but now they all go out as [email protected]

    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 ?
     
  2. topdog

    topdog Active Member HowtoForge Supporter

    You are supposed to use the masquerading features of sendmail NOT configure confDOMAIN_NAME
     
  3. chipsafts

    chipsafts New Member

    :confused: What?
     
  4. topdog

    topdog Active Member HowtoForge Supporter

Share This Page