I need help with sendmail

leinad256

Registered
Hi everybody
I looked in the search but I didnt find I need


well......I am trying to enable the sendmail in order to use it with php, but I am having troubles.

here is the tutorial that I followed :

http://www.macdevcenter.com/pub/a/mac/2002/08/23/jaguar_server.html?page=3


I edited the files correctly but at the end, the tutorial says that I must get this lines when I type telnet localhost 25
in the terminal

Code:
Trying 127.0.0.1...
 Connected to dsl092-007-021.sfo1.dsl.speakeasy.net.
 Escape character is '^]'.
 220 dsl092-007-021.sfo1.dsl.speakeasy.net ESMTP Sendmail 8.12.2/8.12.2; Sat, 10 Aug 2002 00:43:35 -0700 (PDT)
 QUIT
 221 2.0.0 dsl092-007-021.sfo1.dsl.speakeasy.net closing connection
 Connection closed by foreign host.

but in place of this lines, I get something like this

Code:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server.local ESMTP Sendmail 8.12.2/8.12.2; Mon, 19 May 2003 15:46:15 -0500 (CDT)
QUIT
221 2.0.0 server.local closing connection
Connection closed by foreign host.


do you kwon the anser???

I cant send a mail.....

thanks
 
"::1" is basically localhost for IPv6. The "220 server.local" you got doesn't look quite right thought. Do you have your hostname set properly? Might want to double-check...

- G!mpy
 
my hostname is localhost I think....

where can I check if my hostname is set properly?

I am a little bit newbie (nop.....I am really, really newbie..... :p )
 
Type "hostname" at the command prompt and it will return your hostname. "localhost" is internal...pointing to 127.0.0.1 on lo0 (loopback interface). Not sure where to set the hostname in OS X though...there should be a config file in /etc or wherever network settings are kept. My expertise is in FreeBSD and RedHat. :) Actually, since OS X is all GUI'fied, there may be a place to set in a GUI tool somewhere.

- G!mpy
 
cat /etc/hostconfig

This keeps a lot of info. Most likely your first significant line is HOSTNAME=-AUTOMATIC-. This means the machine will set HOSTNAME at network initialization time, which usually means taking whatever it gets from DHCP (or however you're connecting).

You can replace this with a proper name pretty easily:

HOSTNAME=mydomain.com

If you have root permissions, you can also change this with the "hostname" command, e.g.,

hostname mydomain.com

Or, if you're logged in as a user who can sudo,

sudo hostname mydomain.com

I choose to edit the hostconfig file directly, because I can comment out the original line, which makes it easier to backtrack to the machine's initial settings.
 
Back
Top