Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Relay error
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> E-mail
View previous topic :: View next topic  
Author Message
clapp528



Joined: 16 Jul 2004
Posts: 19

Posted: Mon Nov 06, 2006 1:39 pm    Post subject: Relay error  

When trying to use the PHP mail() function, I get the following error:

*Warning*: mail() [function.mail
<http://www.yourdomain.com/function.mail>]: SMTP server response:
550 5.7.1 Unable to relay

Can you please help me with this? Thanks!
Back to top  
Joshua Meadows (DemoRic)



Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

Posted: Thu Nov 09, 2006 3:00 am    Post subject:  

Check your script.
http://www.yourdomain.com/function.mail
I assume yourdomain isn't actually Your Domain.

If it is still a problem look through your php.ini it will have the phpmail settings located in it.
Back to top  
brandonrc



Joined: 26 Nov 2006
Posts: 1
Location: Snoqualmie Valley, Wa

Posted: Sun Nov 26, 2006 8:28 pm    Post subject:  

I am also having this exact problem (I am glad to see I'm not the only one).

I looked in my php.ini file and there is not much to do in the mail setup section.

Code:
[mail function]
; For Win32 only.
SMTP = valleygeek.net
smtp_port = 25

; For Win32 only.
sendmail_from = brandon@valleygeek.net

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").S:\apache2triad\mail
;sendmail_path =


I changed the "SMTP" from localhost to valleygeek.net (a properly directed domain) and still no luck. I also tried my local IP address just for kicks. I still had the same error. I did restart apache after changing the values.

The CGI mail test successfully sends an e-mail, but the PHP test is not working. brandon@valleygeek.net does exist (again, the CGI script does sent properly).

Just for redundancy sake, here is my error message:
Code:
[26-Nov-2006 12:03:43] PHP Warning:  mail(): SMTP server response: 550 Relay denied in *:\apache2triad\htdocs\apache2triadcp\test.mail.php on line 15


EDIT:

After a few hours of reading I was able to fix this using the information from this thread:
http://apache2triad.net/forums/viewtopic.php?t=3925

The fix was to edit *:\apache2triad\mail\smtprelay.tab and add the line:
Code: "127.0.0.1" "255.255.255.0"

Hope this will help you!
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> E-mail
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group