yep, that pretty much sums things up,,

The script is commerce.cgi, I well tried and tested perl shopping cart...

and the whole thing is running fine, except the emails,,

So I tried a fresh install of the script to see if I had messed up the old
one,, but the new one does the same thing..

I had this same script working fine on my RH6.2 box, and the problem has
only happened since swapping to mdk 7.2

The hostname command comes back with server1.gshop.com.au

which is probably why it is emailing as [EMAIL PROTECTED]

how can I make sendmail or apache think the server name is just gshop.com.au
or mail.gshop.com.au for sendmail, and www.gshop.com.au for apache?

any suggestions?

Frank Hauptle
----/ /  _
---/ /  (_)__  __ ____  __
--/ /__/ / _ \/ // /\ \/ /
-/____/_/_//_/\_,_/ /_/\_\
Gshop & Network Payment Solutions.

-----Original Message-----
From: Matthew Micene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 28 February 2001 6:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] dumb question about the HOSTNAME


On Tuesday 27 February 2001 04:26 pm, you wrote:
> the file /etc/hostname

Mandrake 7.0 creates the /etc/HOSTNAME on loading rc.sysinit.  If
networking is enabled, the contents of the file /etc/sysconfig/network are
read to set certain variables.  The hostname is set on boot (or  whenever
rc.sysinit gets called, ie switching runlevels) to the value of the
variable HOSTNAME in /etc/sysconfig/network.

As far as the hostname being resolvable, it depends on what you plan on
doing with the hostname.  If it is an internal nicety (being able to ping
the fileserver by typing 'ping filieserver') then it can be just put in
the /etc/hosts file for resolution.  If you need Internet routing,
obviously DNS gets involved.  If you never plan on refering to that box by
name in any way, then it doesn't need to be resolved.

> it is mailing the emails as "[EMAIL PROTECTED]" instead of
> "[EMAIL PROTECTED]"

What language are you using for the scripts.  I would suspect that it the
scripting langauge and not sendmail or apache involved.  Apache defaults
to the hostname only if the ServerName directive is not set in httpd.conf,
but that shouldn't be an issue unless the script is somehow asking Apache
what it thinks the hostname is.  It looks as thought the script is
generating an email address as "what uid was I called with @ what are the
results of the hostname command" assuming that Apache is running on
server1 as user apache.  It looks to me like the address generation in the
script isn't doing quite what you want.

--
Matthew Micene                     A host is a host from coast to coast,
Systems Development Manager        and no one will talk to a host too close
Express Search Inc.                Unless the host that isn't close
www.ExpressSearch.com              is busy, hung or dead




Reply via email to