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

clankkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
Can you please post an IPCONFIG /ALL from your server as well as the xp workstation?

Jeff
TechSoEasy
0
clankkAuthor Commented:
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>
************************************
0
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
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
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

clankkAuthor Commented:
No, that is not my Domain name! I don't want to put my domain up but it is more than two characters.
0
clankkAuthor Commented:
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.
0
GranModCommented:
Closed, 400 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anumularaviCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SBS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.