raylin
02-16-2001, 01:43 PM
Dear Sirs,
After I turned off my server's DNS service,
and use tera-byte's dns, I found I can not send
out e-mail via /usr/sbin/sendmail any more, can you help
me out ?
my sendmail.cgi
#!/usr/bin/perl
$sendmail = "/usr/sbin/sendmail";
$from = "service\@myhost.com";
$to = "raylin\@mymailbox.com";
$subject = "Testing from myhost to mymailbox";
open(MAIL,"|$sendmail -t");
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n";
print MAIL "A test mail only.\n\n";
close(MAIL);
After I run sendmail.cgi program as following:
error message
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to
complete your request.
But I can still receive from my mail box
raylin@mymailbox.com.
And the message header is following:
(rlin is siteadmin account)
From: service@myhost.com
To: raylin@mymailbox.com
Date: Sat, 17 Feb 2001 00:42:49 +0800
Subject: Testing from myhost to mymailbox
Received: from 139.175.250.58 by ms2.mymailbox.com with mymailbox ESMTP Server V2.71M(38849:1) Sat, 17 Feb 2001 00:41:58 +0800 (CST); (envelope-from <rlin@www.mywebhost.com.tera-byte.com>)
Return-Path: <rlin@www.mywebhost.com.tera-byte.com>
Received: from 216.234.186.10 by ms1.mymailbox.com with mymailbox ESMTP Server V2.71M(814:0) Sat, 17 Feb 2001 00:41:57 +0800 (CST); (envelope-from <rlin@www.mywebhost.com.tera-byte.com>)
Return-Path: <rlin@www.mywebhost.com.tera-byte.com>
Received: (from rlin@localhost) by www.mywebhost.com.tera-byte.com (8.10.2/8.10.2) id f1GGgnd17320; Sat, 17 Feb 2001 00:42:49 +0800
Message-Id: <200102161642.f1GGgnd17320@www.mywebhost.com.tera-byte.com>
Admin mailbox receives messages including
...
----- Transcript of session follows -----
... while talking to mail.somesite.com.:
>>> MAIL From:<root@www.mywebhost.com.tera-byte.com> SIZE=170
<<< 501 <root@www.mywebhost.com.tera-byte.com>... Sender domain must exist
...
I have also changed /etc/resolve.conf from
[admin mail]$ cat /etc/resolv.conf.bad
search mywebhost.com
nameserver 216.234.191.1
nameserver 216.234.191.2
[admin mail]$
to
[admin mail]$ cat /etc/resolv.conf
search tera-byte.com
nameserver 216.234.161.11
nameserver 216.234.161.12
nameserver 204.209.56.2
[admin mail]$
Could it be wrong ?
After I turned off my server's DNS service,
and use tera-byte's dns, I found I can not send
out e-mail via /usr/sbin/sendmail any more, can you help
me out ?
my sendmail.cgi
#!/usr/bin/perl
$sendmail = "/usr/sbin/sendmail";
$from = "service\@myhost.com";
$to = "raylin\@mymailbox.com";
$subject = "Testing from myhost to mymailbox";
open(MAIL,"|$sendmail -t");
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n";
print MAIL "A test mail only.\n\n";
close(MAIL);
After I run sendmail.cgi program as following:
error message
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to
complete your request.
But I can still receive from my mail box
raylin@mymailbox.com.
And the message header is following:
(rlin is siteadmin account)
From: service@myhost.com
To: raylin@mymailbox.com
Date: Sat, 17 Feb 2001 00:42:49 +0800
Subject: Testing from myhost to mymailbox
Received: from 139.175.250.58 by ms2.mymailbox.com with mymailbox ESMTP Server V2.71M(38849:1) Sat, 17 Feb 2001 00:41:58 +0800 (CST); (envelope-from <rlin@www.mywebhost.com.tera-byte.com>)
Return-Path: <rlin@www.mywebhost.com.tera-byte.com>
Received: from 216.234.186.10 by ms1.mymailbox.com with mymailbox ESMTP Server V2.71M(814:0) Sat, 17 Feb 2001 00:41:57 +0800 (CST); (envelope-from <rlin@www.mywebhost.com.tera-byte.com>)
Return-Path: <rlin@www.mywebhost.com.tera-byte.com>
Received: (from rlin@localhost) by www.mywebhost.com.tera-byte.com (8.10.2/8.10.2) id f1GGgnd17320; Sat, 17 Feb 2001 00:42:49 +0800
Message-Id: <200102161642.f1GGgnd17320@www.mywebhost.com.tera-byte.com>
Admin mailbox receives messages including
...
----- Transcript of session follows -----
... while talking to mail.somesite.com.:
>>> MAIL From:<root@www.mywebhost.com.tera-byte.com> SIZE=170
<<< 501 <root@www.mywebhost.com.tera-byte.com>... Sender domain must exist
...
I have also changed /etc/resolve.conf from
[admin mail]$ cat /etc/resolv.conf.bad
search mywebhost.com
nameserver 216.234.191.1
nameserver 216.234.191.2
[admin mail]$
to
[admin mail]$ cat /etc/resolv.conf
search tera-byte.com
nameserver 216.234.161.11
nameserver 216.234.161.12
nameserver 204.209.56.2
[admin mail]$
Could it be wrong ?
