Hi,
I'm having some problems to send mail from PHP.
PHP code:
$to = '[EMAIL PROTECTED]';
$from = '[EMAIL PROTECTED]';
$replyto = $email;
$subject = 'This is the subject';
$headers = From: .$from.\n
.Reply-to: .$email.\n
.MIME-Version: 1.0\n
.Content-type: text/plain; charset=ISO-2022-JP\n
.Content-transfer-encoding: base64\n;
$param = '[EMAIL PROTECTED]';
mail('[EMAIL PROTECTED]', $subject, $message, $headers,
$param));
mail($to, $subject, $message, $headers, $param));
This should send 1 mail to [EMAIL PROTECTED] and 1 mail to
[EMAIL PROTECTED]
Log entries:
Jun 15 11:26:20 tokyo courierd: newmsg,id=000102C4.4671F8CC.7528:
dns; localhost (localhost [127.0.0.1]) Jun 15 11:26:20 tokyo
courierd:
started,id=000102C4.4671F8CC.7528,from=[EMAIL
PROTECTED],module=esmtp,host=mydomain.com,addr=[EMAIL PROTECTED]
Jun 15 11:26:20 tokyo courierd: Waiting. shutdown time=none, wakeup
time=none, queuedelivering=1, inprogress=1 Jun 15 11:26:20 tokyo
courierd: newmsg,id=0001044A.4671F8CC.752A: dns; localhost
(localhost [127.0.0.1])
Jun 15 11:26:20 tokyo courierd:
started,id=0001044A.4671F8CC.752A,from=[EMAIL
PROTECTED],module=esmtp,host=nonlocal.com,addr=[EMAIL PROTECTED]
Jun 15 11:26:20 tokyo courierd:
Waiting. shutdown time=none, wakeup time=none, queuedelivering=2,
inprogress=2
Jun 15 11:26:22 tokyo courieresmtp:
id=0001044A.4671F8CC.752A,from=[EMAIL PROTECTED],addr=[EMAIL PROTECTED]:
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 -
chkuser)
Jun 15 11:26:22 tokyo courieresmtp:
id=0001044A.4671F8CC.752A,from=[EMAIL PROTECTED],addr=[EMAIL
PROTECTED],statu
s: failure
Jun 15 11:26:22 tokyo courierd: completed,id=0001044A.4671F8CC.752A
The domains 'mydomain.com' is local, the domain 'local' is a hosted
domain. 'nonlocal.com' is a completely unrelated domain.
Mail for 'local.com' is forwarded to a different server.
Courier seems to set the hostname to 'nonlocal.com' if the
destination points to a nonlocal address. This causes the message to
bounce.
Is it a 'feature' to set the host name to the recipients domain?
BTW, this is Courier 0.53, stock Debian distribution.
Any hints are appreciated!
Thanks,
Bernd
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users