I made a change to have my script use the 100WebSpace mail host instead of SENDMAIL and then I enabled logging in the script file. Check out my log file below. At the very end, it thows an error: 550 relay not permitted when it tries to send an email FROM and email hosted here (
webmaster@terrydowsacademy.com) TO another address.
As I understand it, the mail server should not be throwing this error unless both the FROM and TO address are not hosted on my server, right?
-Mark
------------LOG FILE-------------
soupermail version 1.0.8
SCRIPT_NAME=/cgi-bin/tda2-soupermail.pl
SERVER_NAME=terrydowsacademy.com
HTTP_REFERER=http://www.terrydowsacademy.com/contact.htm
SERVER_ADMIN=support@100ws.com
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_CONNECTION=Keep-Alive
REQUEST_METHOD=POST
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
CONTENT_LENGTH=1105
SCRIPT_FILENAME=/home/www/terrydowsacademy.com/cgi-bin/tda2-soupermail.pl
SERVER_SOFTWARE=Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d VDB/1.1.1-se
REMOTE_USER=
AUTH_TYPE=Basic
QUERY_STRING=
REMOTE_PORT=3734
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
SERVER_PORT=80
HTTP_CACHE_CONTROL=no-cache
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_COOKIE=WebBBS+Master=nm%3A%3Amark% ... cademy.com%26wn%3A%3Ayes%26pw%3A%3A; Forum=tp%3A%3A%26tm%3A%3A%26m1%3A%3A%26v1%3A%3A1163303331%26m2%3A%3A%26v2%3A%3A1163303331%26ts%3A%3A1163305990%26uf%3A%3A; Forum+Admin=tp%3A%3A%26tm%3A%3A%26m1%3A%3A3%26v1%3A%3A1163305424%26m2%3A%3A3%26v2%3A%3A1163305424%26ts%3A%3A1163305727%26uf%3A%3A
REMOTE_ADDR=70.20.56.107
CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d618f34c08c4
SERVER_PROTOCOL=HTTP/1.1
PATH=/usr/local/bin:/usr/bin:/bin
REQUEST_URI=/cgi-bin/tda2-soupermail.pl
GATEWAY_INTERFACE=CGI/1.1
SERVER_ADDR=64.72.112.136
DOCUMENT_ROOT=/home/www/terrydowsacademy.com
HTTP_HOST=www.terrydowsacademy.com
Soupermail variables:
serverRoot = /home/www/terrydowsacademy.com
privateRoot = /home/www/private
tempDir = /home/www/terrydowsacademy.com/tmp/
fhBug =
hasDbi = 1
mailhost = ws5.100ws.com
mailprog =
ps2pdf =
lout =
Data =
http://www.terrydowsacademy.com/cgi-bin ... ig-tda.txt
Setting mail to use ws5.100ws.com
securityFilename (/home/www/terrydowsacademy.com/forms/config-tda.txt) @ 1163397053
Set configRoot to /home/www/terrydowsacademy.com/forms
grabFile (/home/www/terrydowsacademy.com/forms/config-tda.txt SCALAR(0x840c5d8)) @ 1163397053
file grabbed is 421 bytes
Reading config /home/www/terrydowsacademy.com/forms/config-tda.txt
setConfig (mimeon yes) @ 1163397053
setConfig (mailto
webmaster@terrydowsacademy.com) @ 1163397053
checkEmail (
webmaster@terrydowsacademy.com) @ 1163397053
setConfig (alphasort no) @ 1163397053
setConfig (required (StudentName || ParentName) && Email) @ 1163397053
securityName ((StudentName || ParentName) && Email 1) @ 1163397053
setConfig (isemail Email) @ 1163397053
setConfig (gotosuccess
http://www.terrydowsacademy.com/forms/i ... uccess.htm) @ 1163397053
makeUrl (
http://www.terrydowsacademy.com/forms/i ... uccess.htm) @ 1163397053
setConfig (gotofailure
http://www.terrydowsacademy.com/forms/i ... ailure.htm) @ 1163397053
makeUrl (
http://www.terrydowsacademy.com/forms/i ... ailure.htm) @ 1163397053
setConfig (subject Terry Dows Academy Inquiry) @ 1163397053
setConfig (htmlmailtemplate /forms/templates/tda_inquiry.htm) @ 1163397053
makePath (/forms/templates/tda_inquiry.htm) @ 1163397053
securityFilename (/home/www/terrydowsacademy.com/forms/templates/tda_inquiry.htm) @ 1163397053
setConfig (htmlsendertemplate /forms/templates/tda_response.htm) @ 1163397053
makePath (/forms/templates/tda_response.htm) @ 1163397053
securityFilename (/home/www/terrydowsacademy.com/forms/templates/tda_response.htm) @ 1163397053
Finished reading config /home/www/terrydowsacademy.com/forms/config-tda.txt
makeScratch () @ 1163397053
Evaluated template functions
Evaluated mail functions
formMissingRequired () @ 1163397053
Looking at condition StudentName
securityName (StudentName) @ 1163397053
Looking at condition ParentName
securityName (ParentName) @ 1163397053
Looking at condition Email
securityName (Email) @ 1163397053
Should eval condition (1 || 0 ) && 1
formIsBlank () @ 1163397053
translateFormat (REF:275859) @ 1163397053
subReplace () @ 1163397053
returnSuccess () @ 1163397053
returnHtml (
http://www.terrydowsacademy.com/forms/i ... uccess.htm 0 <H1>Thank You</H1>Your information has been submitted
1 1 0 text/html) @ 1163397053
About to mailResults
mailResults () @ 1163397053
checkEmail (
mark@homeseer.com) @ 1163397053
Should be sending a mail to the sender
grabFile (/home/www/terrydowsacademy.com/forms/templates/tda_response.htm SCALAR(0x8604090)) @ 1163397053
file grabbed is 2506 bytes
substOutput (SCALAR(0x8604090) 0 1) @ 1163397053
Making HTML sender email
MIME::Lite::SMTP>>> MIME::Lite::SMTP
MIME::Lite::SMTP>>> Net::SMTP(2.26)
MIME::Lite::SMTP>>> Net::Cmd(2.24)
MIME::Lite::SMTP>>> Exporter(5.58)
MIME::Lite::SMTP>>> IO::Socket::INET(1.27)
MIME::Lite::SMTP>>> IO::Socket(1.28)
MIME::Lite::SMTP>>> IO::Handle(1.24)
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 220 ws5.100ws.com ESMTP Exim 4.63 Mon, 13 Nov 2006 05:50:53 +0000
MIME::Lite::SMTP=GLOB(0x871c5ac)>>> EHLO localhost.localdomain
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250-ws5.100ws.com Hello localhost.localdomain [64.72.112.110]
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250-SIZE 52428800
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250-PIPELINING
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250-AUTH CRAM-MD5 PLAIN LOGIN
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250 HELP
MIME::Lite::SMTP=GLOB(0x871c5ac)>>> MAIL FROM:<webmaster@terrydowsacademy.com>
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 250 OK
MIME::Lite::SMTP=GLOB(0x871c5ac)>>> RCPT TO:<mark@homeseer.com>
MIME::Lite::SMTP=GLOB(0x871c5ac)<<< 550 relay not permitted
SMTP RCPT command failed:
relay not permitted