AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

How to change domain under FROM of sendmail

  • 1.  How to change domain under FROM of sendmail

    Posted Mon October 30, 2006 04:54 PM

    Originally posted by: popeye


    Hello there,

    We need to change the sendmail.cf to send different domain name instead of abc@hostname.domain.com

    I have checked every where but found some info but not clear

    Need help.

    Thanks
    #AIX-Forum


  • 2.  Re: How to change domain under FROM of sendmail

    Posted Mon October 30, 2006 06:25 PM

    Originally posted by: SystemAdmin


    The key is to set the DM macro in the sendmail.cf file

    1. who I masquerade as (null for no masquerading) (see also $=M)
    DM
    I did this a long time ago, but here's what I did (AIX 4.2 timeframe)

    Example sendmail.cf changes and results
    The following describes a set of steps that I took to test the changing of outgoing mail addresses at AIX 4.2.

    Added line
    DMlegis.pa.us.gov
    to sendmail.cf after comment
    1. who I masquerade as (null for no masquerading)
    Saved changes
    Refreshed sendmail with
    refresh -s sendmail
    .
    Send mail from user lab1 on host chemhost.ibm.com to user test on host fungus.dfw.ibm.com
    Header of message received was:
    From: lab1@legis.pa.us.gov
    Mail header still contains:
    From lab1@chemhost.ibm.com at start of the message, but reply goes to
    lab1@legis.pa.us.gov

    Not sure this is still the way it works, but probably so, check the Sendmail book from O'Reilly, or try sendmail.org.
    #AIX-Forum


  • 3.  Re: How to change domain under FROM of sendmail

    Posted Mon October 30, 2006 07:18 PM

    Originally posted by: popeye


    Thanks Compuchem

    You solved my problem.

    I have one more question, if I want to include my email instead of my user-id, how can I do that.

    like I have my unix user-id is puna@hostname.domain.com

    but my real email is popeye@domain.com by following your instruction I fixed @domain.com but how can I replace puna with popeye??

    Thanks again for your help.
    #AIX-Forum