Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Optic - tammikuu 08, 2005, 11:14:06 IP

Otsikko: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 08, 2005, 11:14:06 IP
Sendmail for the e-mail validation isn't working for me... I tried sending an e-mail to myself, and many others, and it did not work.

Then I tried using smtp, but it didn't work either. Upon looking at the error logs, I found this at the same time I used smtp:

Ran into problems sending Mail. Error: 502 Error: command not implemented

I take it that it's a problem on my side, on the server? =(

Any help would greatly be appreciated. I'm using SMF 1.0
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 09, 2005, 12:49:23 AP
Also, I can provide a link to a PHP page with the phpinfo() command in it... would that help? ^^
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: andrea - tammikuu 09, 2005, 03:49:49 AP
A link to your forum and phpinfo would be helpful.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 09, 2005, 04:00:47 AP
My Forum:
http://an.ryux.net

phpinfo:
http://an.ryux.net/phpinfo.php


Hope that helps. Please, any help would greatly be appreciated. ^^;
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: andrea - tammikuu 09, 2005, 04:46:38 AP
phpinfo looks normal to me.

I registered testwise as user "andrea" in your forum and -of course- did not recieve the activation email. Can you please activate my account and make the user a temporary administrator? I will then double check your forum settings.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 09, 2005, 05:09:43 AP
OK... ^^; Done. Please take a look. ^^;
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 09, 2005, 05:59:02 AP
Also, I checked my error logs again and noticed these: (they appeared around the time I was looking through the packages options in the Admin CP. I don't know if it's related or not)

http://an.ryux.net/index.php?action=packages;sa=options
2048: var: Deprecated. Please use the public/private/protected modifiers
File: /home/ryux/public_html/an/Sources/Subs-Package.php
Line: 1448


http://an.ryux.net/index.php?action=packages;sa=options
2048: var: Deprecated. Please use the public/private/protected modifiers
File: /home/ryux/public_html/an/Sources/Subs-Package.php
Line: 1986


http://an.ryux.net/index.php?action=packages;sa=installed
2048: var: Deprecated. Please use the public/private/protected modifiers
File: /home/ryux/public_html/an/Sources/Subs-Package.php
Line: 1448
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: andrea - tammikuu 09, 2005, 06:00:38 AP
I cannot say I see something wrong.

Lainaus käyttäjältä: Optic - tammikuu 08, 2005, 11:14:06 IP
Ran into problems sending Mail. Error: 502 Error: command not implemented

Maybe your host has disabled emails generated by scripts? Is it a free host? Can you ask your host? Maybe your host offers a FAQ page which contains useful information?
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 09, 2005, 06:02:42 AP
I'll check with my host. And I don't think it's a free host... I shall check.

Thanks for the help so far. ^^;
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Jedi_Amara - tammikuu 09, 2005, 06:25:23 AP
Our host (I'm hosted by the host and I host Optic's site) is... not great for support right at the moment. www.intellecthost.com But I can check the SMTP settings for him.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Jedi_Amara - tammikuu 09, 2005, 06:44:27 AP
... The activation thing isn't working for my site either, also hosted on same server/domain(forum.ryux.net)
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - tammikuu 09, 2005, 06:47:49 IP
Try using the SMTP *WITHOUT* specifying a username or password.  Just the hostname and port.

-[Unknown]
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Jedi_Amara - tammikuu 10, 2005, 03:56:02 AP
Thanks very much. It worked. Optic, for your purposes, the server is mail.ryux.net and the port 25.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: andrea - tammikuu 10, 2005, 04:02:02 AP
Lainaus käyttäjältä: Jedi_Amara - tammikuu 10, 2005, 03:56:02 AP
Thanks very much. It worked. Optic, for your purposes, the server is mail.ryux.net and the port 25.

with SMTP?  - I activated SMTP with these settings and sent a pm to me - no notification email arrived. (email notification for new pm's is activated)
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 10, 2005, 05:11:16 AP
Hmmm... no, still not working. =(

Can anyone make out this error message? =/

LainaaRan into problems sending Mail. Error: 550 client.

Any help again would greatly be appreciated.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - tammikuu 10, 2005, 05:21:59 AP
550 means relaying denied.  Have you made sure the email address in the Server Settings page corresponds to the server you're using?  It must; otherwise you'll get a 550.

-[Unknown]
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 10, 2005, 06:35:33 AP
OK, so that means I can't use the SMTP settings JA posted since the e-mail I put in Server Settings is my ISP one... =/

So I changed my SMTP settings to correspond to my ISP e-mail settings... it worked for sometime, but now I get this error message:

Lainaa2: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
File: /home/ryux/public_html/an/Sources/Subs-Post.php
Line: 556

Please, any help would REALLY be appreciated!
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - tammikuu 10, 2005, 06:46:38 AP
And I'm helping....

The address you entered isn't being found; are you sure it's correct?  You can test it by trying to ping it, like so:

Start -> Run -> type "cmd" -> type "ping mail.isp.net" in the big black box and hit enter.

For example, I use SBC.  So, I get this:
D:\Documents and Settings\Unknown>ping smtp.sbcglobal.yahoo.com

Pinging smtp-sbc-v1.mail.vip.sc5.yahoo.com [66.163.171.137] with 32 bytes of data:

Reply from 66.163.171.137: bytes=32 time=29ms TTL=244
Reply from 66.163.171.137: bytes=32 time=29ms TTL=244
Reply from 66.163.171.137: bytes=32 time=31ms TTL=244
Reply from 66.163.171.137: bytes=32 time=29ms TTL=244

Ping statistics for 66.163.171.137:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 29ms, Maximum = 31ms, Average = 29ms


However, the error message you're getting means it's not working... like this:
D:\Documents and Settings\Unknown>ping doesntexist.simplemachines.org
Ping request could not find host doesntexist.simplemachines.org. Please check the name and try again.


But even if it goes through, it may be that you're using a POP server, not an SMTP server.  You may have to check with your ISP to get the correct settings.  Just remember that you're looking for the "SMTP" or "outgoing" server address.

-[Unknown]
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Optic - tammikuu 10, 2005, 07:12:05 AP
*sigh* Thanks for your help, I really appreciate it.

Unfortunantly, I'm still getting the same error, despite getting a positive response by using the ping command in a Command Prompt.

Lainaa
C:\Documents and Settings\Victor Chan>ping mail.eftel.com

Pinging mail.eftel.com [203.24.100.64] with 32 bytes of data:

Reply from 203.24.100.64: bytes=32 time=32ms TTL=61
Reply from 203.24.100.64: bytes=32 time=38ms TTL=61
Reply from 203.24.100.64: bytes=32 time=38ms TTL=61
Reply from 203.24.100.64: bytes=32 time=37ms TTL=61

Ping statistics for 203.24.100.64:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 32ms, Maximum = 38ms, Average = 36ms

Lainaa
C:\Documents and Settings\Victor Chan>ping mail.southwest.com.au

Pinging mail.southwest.com.au [203.24.100.77] with 32 bytes of data:

Reply from 203.24.100.77: bytes=32 time=39ms TTL=61
Reply from 203.24.100.77: bytes=32 time=38ms TTL=61
Reply from 203.24.100.77: bytes=32 time=37ms TTL=61
Reply from 203.24.100.77: bytes=32 time=36ms TTL=61

Ping statistics for 203.24.100.77:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 36ms, Maximum = 39ms, Average = 37ms

I tried using two different SMTP servers, and I still get the same error message I mentioned before. It appears whenever the forum has to send an e-mail... e.g. notifications, when a new user tries to register, etc.

Would you like to take a look at my forum and maybe test some settings? I'm starting to have a feeling that maybe something is wrong with my SMF installation. When I check the versions of the files though, they appear to be ok... SMF 1.0 and 1.0.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - tammikuu 10, 2005, 07:14:09 AP
It's possible your server could be configured not to allow you to use outside SMTP servers (so as to prevent spamming.)  Have you asked your host about this?

They may provide you with an SMTP server or even sendmail (one you can use, even.)

-[Unknown]
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Jedi_Amara - tammikuu 11, 2005, 04:43:24 IP
Well, the email address set in my forum settings is a GMail account, and the SMTP seems to be working fine in it with those settings. Mind if I go in and fiddle with your settings, Optic?
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Jedi_Amara - tammikuu 13, 2005, 06:03:02 AP
OK, it's now not working again -_-... maybe I need to talk to my host.
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Animal - helmikuu 01, 2005, 02:59:17 IP
Lainaus käyttäjältä: Optic - tammikuu 10, 2005, 06:35:33 AP
but now I get this error message:

Lainaa2: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
File: /home/ryux/public_html/an/Sources/Subs-Post.php
Line: 556


I am also getting this error message, but only when someone sends a PM or start a thread (though the thread still gets posted). All other features (no reports otherwise) are working.   I am wondering what you did to correct this. I have tried reading through this post, but it appears that there were multiple issues being dealt with here.
Thanks for the help!
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - helmikuu 03, 2005, 04:05:14 AP
Lainaus käyttäjältä: Animal - helmikuu 01, 2005, 02:59:17 IP
Lainaus käyttäjältä: Optic - tammikuu 10, 2005, 06:35:33 AP
but now I get this error message:

Lainaa2: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
File: /home/ryux/public_html/an/Sources/Subs-Post.php
Line: 556


I am also getting this error message, but only when someone sends a PM or start a thread (though the thread still gets posted). All other features (no reports otherwise) are working.   I am wondering what you did to correct this. I have tried reading through this post, but it appears that there were multiple issues being dealt with here.
Thanks for the help!

Again, this means the SMTP server name is either wrong or the server is down.  Basically, PHP can't figure out what server it is - it's trying to find it and there's no server with that name.

It's the same sort of error you'd get if you went to www.thisdomaindoesnotexist.com.  So, the SMTP server you've entered either does not exist or is temporarily down.  Check for stray spaces or typos.

-[Unknown]
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: Animal - helmikuu 04, 2005, 10:48:51 AP
 Thank you for the response!  8)

-Animal
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: AEonBlue - maaliskuu 04, 2005, 03:52:55 IP
gmail requires an SSL connection for it's SMTP outgoing mail... don't know if that means anything..

*edit* I'm having the same problem with gmail....
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - maaliskuu 04, 2005, 04:37:38 IP
Use "ssl://" for the domain name - e.g. ssl://smtp.gmail.com...

-[Unknown]

Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: AEonBlue - maaliskuu 04, 2005, 04:49:19 IP
I get this...

fsockopen(): no SSL support in this build
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: FaSan - maaliskuu 04, 2005, 04:58:21 IP
Change your Hosting !!  ;) ;)
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: AEonBlue - maaliskuu 04, 2005, 05:03:07 IP
that's a quick fix... but I'd like to use this hosting... and there should be a way to do it... I'm just too dumb to figure it out.. I could change hosting... or setup my own mail server... but I'd like for my gmail to work..

*edit* any thoughts?
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: AEonBlue - maaliskuu 04, 2005, 06:34:36 IP
here's my php info

http://aeonblue.no-ip.org/phpinfo.php
Otsikko: Re: sendmail and smtp Not working.
Kirjoitti: [Unknown] - maaliskuu 04, 2005, 11:56:30 IP
Your PHP build doesn't have OpenSSL support.  It is not really possible to do SMTP communications with Gmail in SSL with it like this.

-[Unknown]