clankk
asked on
PHP TO EXCHANGE SERVER RELAY- SMTP server response: 550 5.7.1
I'm trying to use SMTP on Exchange server (SBS) within a network (XP SP2 machine) to send email (from a PHP/apache setup locally) but keep getting relay errors. I tried telnet from the machine and that works fine.
I have granted relay permissions to the machine on exchange server. SMTP service running on XP machine.
I even tried sending mail without @x.local in the address, seems like the mail was sent but it never arrives!!
Any ideas what I'm doing wrong?
PHP Script:
<?
$to = "email1@x.local";
$from = "email2@x.local";
$sub = "My Email";
$msg = "Hello World!";
mail($to, $sub, $msg, "From: ".$from);
?>
Error:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for
email2@x.local in C:\Program Files\Apache Group\Apache2\htdocs\mail2 .php on line 6
php.ini settings:
PHP.ini settings
[mail function]
; For Win32 only.
SMTP = 10.0.0.250
smtp_port = 25
; For Win32 only.
sendmail_from = email2@x.local
I have granted relay permissions to the machine on exchange server. SMTP service running on XP machine.
I even tried sending mail without @x.local in the address, seems like the mail was sent but it never arrives!!
Any ideas what I'm doing wrong?
PHP Script:
<?
$to = "email1@x.local";
$from = "email2@x.local";
$sub = "My Email";
$msg = "Hello World!";
mail($to, $sub, $msg, "From: ".$from);
?>
Error:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for
email2@x.local in C:\Program Files\Apache Group\Apache2\htdocs\mail2
php.ini settings:
PHP.ini settings
[mail function]
; For Win32 only.
SMTP = 10.0.0.250
smtp_port = 25
; For Win32 only.
sendmail_from = email2@x.local
ASKER
SERVER
************************** ****
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\server>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : xxxxxxx
Primary Dns Suffix . . . . . . . : x.local
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : Yes
DNS Suffix Search List. . . . . . : x.local
Ethernet adapter Server Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
Physical Address. . . . . . . . . : ------------------
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.250
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.254
DNS Servers . . . . . . . . . . . : 10.0.0.250
Primary WINS Server . . . . . . . : 10.0.0.250
C:\Documents and Settings\server>
************************** ****
XP MACHINE
************************** **********
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\XP>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : KXP
Primary Dns Suffix . . . . . . . : x.local
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : x.local
x.local
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : x.local
Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Cont
roller
Physical Address. . . . . . . . . : -------------------------- -
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.0.0.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.254
DHCP Server . . . . . . . . . . . : 10.0.0.250
DNS Servers . . . . . . . . . . . : 10.0.0.250
Primary WINS Server . . . . . . . : 10.0.0.250
Lease Obtained. . . . . . . . . . : 25 April 2006 08:42:54
Lease Expires . . . . . . . . . . : 24 June 2006 08:42:54
C:\Documents and Settings\XP>
************************** **********
**************************
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\server>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : xxxxxxx
Primary Dns Suffix . . . . . . . : x.local
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : Yes
DNS Suffix Search List. . . . . . : x.local
Ethernet adapter Server Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
Physical Address. . . . . . . . . : ------------------
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.250
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.254
DNS Servers . . . . . . . . . . . : 10.0.0.250
Primary WINS Server . . . . . . . : 10.0.0.250
C:\Documents and Settings\server>
**************************
XP MACHINE
**************************
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\XP>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : KXP
Primary Dns Suffix . . . . . . . : x.local
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : x.local
x.local
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : x.local
Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Cont
roller
Physical Address. . . . . . . . . : --------------------------
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.0.0.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.254
DHCP Server . . . . . . . . . . . : 10.0.0.250
DNS Servers . . . . . . . . . . . : 10.0.0.250
Primary WINS Server . . . . . . . : 10.0.0.250
Lease Obtained. . . . . . . . . . : 25 April 2006 08:42:54
Lease Expires . . . . . . . . . . : 24 June 2006 08:42:54
C:\Documents and Settings\XP>
**************************
Is your DOMAIN NAME really just x.local? I thought you were using that as an abbreviation. If it is, really x.local, then it won't resolve over DNS, which requires at least two characters in the domain name. (Active Directory doesn't mind, it's DNS that does).
http://support.microsoft.com/kb/909264
Jeff
TechSoEasy
http://support.microsoft.com/kb/909264
Jeff
TechSoEasy
ASKER
No, that is not my Domain name! I don't want to put my domain up but it is more than two characters.
ASKER
Sorted.
Not too techie and it took me sometime to realise that SMTP on the local machine needs to be opened for relay! I was opening relay on the server!
Thanks anyway.
Not too techie and it took me sometime to realise that SMTP on the local machine needs to be opened for relay! I was opening relay on the server!
Thanks anyway.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i am try to send the mail from php
but server showes the PHP Warning: mail(): SMTP server response: 550
plese help me any one thanks to all
but server showes the PHP Warning: mail(): SMTP server response: 550
plese help me any one thanks to all
Jeff
TechSoEasy