PHP Mail 501 error

PHP Mail 501 error

am 23.06.2008 20:42:18 von Dan Mashal

------_=_NextPart_001_01C8D560.DD402FE1
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

We are running MediaWiki on PHP 5.2.6 with Apache for Windows.

=20

Every time we try to use an IIS mail server as an MTA we receive a 501
error. When we use a Unix postfix based MTA it works fine.=20

=20

Could anyone please tell me what I need to do to modify my PHP.ini to
get this to work?

=20

We have tried the workaround for Exchange 2003 as described in this
article by Microsoft:

=20

http://support.microsoft.com/?id=3D291828

=20

But this fixes a 501 in the HELO. The problem here is the rcpt to. It
comes up as the following:

=20

2008-06-23 17:39:58 10.1.100.80 xxx SMTPSVC1 xxxx xxxxxxxx 0 RCPT -
+TO:> 501 0 27 44 0 SMTP - - - -

=20

Could anyone please provide me with some much needed insight on this
problem? I have been searching the web and have found a few workarounds
but none that actually work.

=20

Thanks,

Dan


------_=_NextPart_001_01C8D560.DD402FE1--

RE: PHP Mail 501 error

am 24.06.2008 12:54:07 von Stephen.Brereton

Just a thought, and may be wrong, but as RCPT TO in rfc 2821
(http://www.rfc-editor.org/rfc/rfc2821.txt)
Only one layer of backets is used?

-----Original Message-----
From: Dan Mashal [mailto:dmashal@intertrust.com]=0D
Sent: 23 June 2008 19:42
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP Mail 501 error


Hello,

=0D

We are running MediaWiki on PHP 5.2.6 with Apache for Windows.

=0D

Every time we try to use an IIS mail server as an MTA we receive a 501
error. When we use a Unix postfix based MTA it works fine.=0D

=0D

Could anyone please tell me what I need to do to modify my PHP.ini to
get this to work?

=0D

We have tried the workaround for Exchange 2003 as described in this
article by Microsoft:

=0D

http://support.microsoft.com/?id=3D291828

=0D

But this fixes a 501 in the HELO. The problem here is the rcpt to. It
comes up as the following:

=0D

2008-06-23 17:39:58 10.1.100.80 xxx SMTPSVC1 xxxx xxxxxxxx 0 RCPT -
+TO:> 501 0 27 44 0 SMTP - - - -

=0D

Could anyone please provide me with some much needed insight on this
problem? I have been searching the web and have found a few workarounds
but none that actually work.

=0D

Thanks,

Dan


* * * * * * * * * * * *=0D
Help protect the environment - please don't print this email unless you=
really need to.
* * * * * * * * * * * *

This communication is from City of York Council.

The information contained within, and in any attachment(s), is confidential=
and legally privileged. It is for the exclusive use of the intended=
recipient(s). If you are not the intended recipient(s), please note that=
any form of distribution, copying or use of this communication, or the=
information within, is strictly prohibited and may be unlawful. Equally,=
you must not disclose all, or part, of its contents to any other person.

If you have received this communication in error, please return it=
immediately to the sender, then delete and destroy any copies of it.

City of York Council disclaims any liability for action taken in reliance=
on the content of this communication.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: PHP Mail 501 error

am 24.06.2008 19:05:07 von Dan Mashal

OK but why is PHP mail doing this and how do I get IIS to accept the
message? Is there anything in the PHP.ini I can add/change to fix this?
It works fine with Unix mail servers.

Dan

-----Original Message-----
From: Brereton, Stephen [mailto:Stephen.Brereton@york.gov.uk]=20
Sent: Tuesday, June 24, 2008 3:54 AM
To: Dan Mashal; php-windows@lists.php.net
Subject: RE: [PHP-WIN] PHP Mail 501 error


Just a thought, and may be wrong, but as RCPT TO in rfc 2821
(http://www.rfc-editor.org/rfc/rfc2821.txt)
Only one layer of backets is used?

-----Original Message-----
From: Dan Mashal [mailto:dmashal@intertrust.com]

Sent: 23 June 2008 19:42
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP Mail 501 error


Hello,




We are running MediaWiki on PHP 5.2.6 with Apache for Windows.




Every time we try to use an IIS mail server as an MTA we receive a 501
error. When we use a Unix postfix based MTA it works fine.





Could anyone please tell me what I need to do to modify my PHP.ini to
get this to work?




We have tried the workaround for Exchange 2003 as described in this
article by Microsoft:




http://support.microsoft.com/?id=3D291828




But this fixes a 501 in the HELO. The problem here is the rcpt to. It
comes up as the following:




2008-06-23 17:39:58 10.1.100.80 xxx SMTPSVC1 xxxx xxxxxxxx 0 RCPT -
+TO:> 501 0 27 44 0 SMTP - - - -




Could anyone please provide me with some much needed insight on this
problem? I have been searching the web and have found a few workarounds
but none that actually work.




Thanks,

Dan


* * * * * * * * * * * *

Help protect the environment - please don't print this email unless you
really need to.
* * * * * * * * * * * *

This communication is from City of York Council.

The information contained within, and in any attachment(s), is
confidential and legally privileged. It is for the exclusive use of the
intended recipient(s). If you are not the intended recipient(s), please
note that any form of distribution, copying or use of this
communication, or the information within, is strictly prohibited and may
be unlawful. Equally, you must not disclose all, or part, of its
contents to any other person.

If you have received this communication in error, please return it
immediately to the sender, then delete and destroy any copies of it.

City of York Council disclaims any liability for action taken in
reliance on the content of this communication.


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PHP Mail 501 error

am 24.06.2008 22:01:21 von Niel Archer

> Hello,
>=20
> =20
>=20
> We are running MediaWiki on PHP 5.2.6 with Apache for Windows.
>=20
> =20
>=20
> Every time we try to use an IIS mail server as an MTA we receive a 501
> error. When we use a Unix postfix based MTA it works fine.=20
>=20
> =20
>=20
> Could anyone please tell me what I need to do to modify my PHP.ini to
> get this to work?
>=20
> =20
>=20
> We have tried the workaround for Exchange 2003 as described in this
> article by Microsoft:
>=20
Hi

> http://support.microsoft.com/?id=3D291828
>=20
> =20
>=20
> But this fixes a 501 in the HELO. The problem here is the rcpt to. It
> comes up as the following:
>=20
> =20
>=20
> 2008-06-23 17:39:58 10.1.100.80 xxx SMTPSVC1 xxxx xxxxxxxx 0 RCPT -
> +TO:> 501 0 27 44 0 SMTP - - - -
=20
> Could anyone please provide me with some much needed insight on this
> problem? I have been searching the web and have found a few workarounds
> but none that actually work.


=46rom the mail() documentation:
Note: The Windows implementation of mail() differs in many ways from the
Unix implementation. First, it doesn't use a local binary for composing
messages but only operates on direct sockets which means a MTA is needed
listening on a network socket (which can either on the localhost or a
remote machine). Second, the custom headers like From:, Cc:, Bcc: and
Date: are not interpreted by the MTA in the first place, but are parsed
by PHP. As such, the to parameter should not be an address in the form
of "Something ". The mail command may not parse
this properly while talking with the MTA.

=46rom the example you show, it seems your problem is the last two
sentences. i.e. "DanMashal " is not valid on
windows.

HTH

--
Niel Archer



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: PHP Mail 501 error

am 25.06.2008 02:22:41 von Dan Mashal

That is correct Neil. The second you try to add a display name to the
RCPT command it fails. I think windows only accepts a display name in
the DATA field. I'm thinking this is a Mediawiki problem at this point..
not a PHP problem.

Dan

-----Original Message-----
From: Niel Archer [mailto:not@chance.now]=20
Sent: Tuesday, June 24, 2008 1:01 PM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] PHP Mail 501 error

> Hello,
>=20
> =20
>=20
> We are running MediaWiki on PHP 5.2.6 with Apache for Windows.
>=20
> =20
>=20
> Every time we try to use an IIS mail server as an MTA we receive a 501
> error. When we use a Unix postfix based MTA it works fine.=20
>=20
> =20
>=20
> Could anyone please tell me what I need to do to modify my PHP.ini to
> get this to work?
>=20
> =20
>=20
> We have tried the workaround for Exchange 2003 as described in this
> article by Microsoft:
>=20
Hi

> http://support.microsoft.com/?id=3D291828
>=20
> =20
>=20
> But this fixes a 501 in the HELO. The problem here is the rcpt to. It
> comes up as the following:
>=20
> =20
>=20
> 2008-06-23 17:39:58 10.1.100.80 xxx SMTPSVC1 xxxx xxxxxxxx 0 RCPT -
> +TO:> 501 0 27 44 0 SMTP - - - -
=20
> Could anyone please provide me with some much needed insight on this
> problem? I have been searching the web and have found a few
workarounds
> but none that actually work.


From the mail() documentation:
Note: The Windows implementation of mail() differs in many ways from the
Unix implementation. First, it doesn't use a local binary for composing
messages but only operates on direct sockets which means a MTA is needed
listening on a network socket (which can either on the localhost or a
remote machine). Second, the custom headers like From:, Cc:, Bcc: and
Date: are not interpreted by the MTA in the first place, but are parsed
by PHP. As such, the to parameter should not be an address in the form
of "Something ". The mail command may not parse
this properly while talking with the MTA.

From the example you show, it seems your problem is the last two
sentences. i.e. "DanMashal " is not valid on
windows.

HTH

--
Niel Archer



--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php