Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eliminate hostname from "mail from" address

Status
Not open for further replies.

ytakbob

Programmer
Jul 20, 2000
105
US
When I send an email from my box...the
mail from is
MAIL From:<hci@ifprod.abcd.org>

&quot;ifprod&quot; is the host name....I would like to exclude this
so that the from address is hci@abcd.org

can I do this by changing hte sendmail.cf ?

Bob Schmid
 
made the following changes to sendmail.cf
Dwhmis
#DmYourDomainName
#Dmorg
Cw localhost $w $?m$w.$m$. hmis.org
#Cm $m YourOtherDomainNames
# file containing names of hosts for which we receive email
#Fw-o /etc/sendmail.cw


attempted to send to local exchange address bob_schmid@hmis.org (a microsoft outlook nt email address... not defined on this AIX box)

change Dw to hmis and I can send out to the internet but AIX seems to think the address of bob_schmid@hmis.org is on my AIX box.

I need the domain to be simply hmis.org...not ifprodetn.hmis.org

ifprodetn is my AIX boxes hostname..I do not want AIX to
prepend the hostname onto the domain name and I also do not
want AIX &quot;thinking&quot; email address with hmis.org as the domain on local.

Here is my error message:

Cc: Warning: .cf file is out of date: sendmail AIX4.3/8.9.3 supports version 8, .cf file is version 7
bob... aliased to bob_schmid@hmis.org
bob_schmid@hmis.org... User unknown
hci... forward: /home/hci/.forward.hmis: Group writable directory
hci... forward: /home/hci/.forward: Group writable directory
/home/hci/dead.letter... cannot open /home/hci/dead.letter: The file access permissions do not allow the specif
ied action.
hci... Connecting to local...
hci... Sent
Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347
 
Here's the bottom line.
Our domain is hmis.org defined for our hospital and is defined within an NY microsoft exchange server and DNS server.

I can use the Dwhmis and Dmorg or use Cw and hmis.org and the from address will be built appropriately and I can then send to email accounts out on the internet because hmis.org is a valid dns entry...but when I want to send to a local email account within our walls - ex micky.mouse@hmis.org....AIX errors out and says not a valid address. It isnt valid on AIX but it is on our Microsoft exchange server....how can I get AIX to not try to interpret these email addresses ?
Bob Schmid
bob_schmid@hmis.org
330-746-1010 ext. 1347
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top