Since we talking about Formmail.........

  • Thread starter Thread starter Orlando Gondar
  • Start date Start date
O

Orlando Gondar

FormMail v1.92+SMTP

On this new version, the instructions saids to change the $mailhost
variable.

" By default $mailhost is set to 'mailhost', change this to your mail hub
hostname"

What the "mail hub hostname" will be on the local host ?

Its that the name of the pc, wich also is the name of the localhost ?

Thanks
 
You probably have a line in the script similar to
$mailhost = "mailhost";
I would change it to
$mailhost = "127.0.0.1";

and don't lose that semi-colon on the end of the line.
 
1000000000000 of thanks I will try that

Ronx said:
You probably have a line in the script similar to
$mailhost = "mailhost";
I would change it to
$mailhost = "127.0.0.1";

and don't lose that semi-colon on the end of the line.
 
Well, still "Nada", nothing, this are te variables on the scripts....

#!perl.exe
#!D:\PERL\bin

use Net::SMTP;


$mailprog = '/usr/lib/sendmail -i -t';

# $mailhost defines the name or address of your mail relay. If defined,
#
# overrides $mailprog and sends mail directly to $mailhost using Net::SMTP
#

$mailhost = '127.0.0.1';

# @referers allows forms to be located only on servers which are defined
#
# in this field. This security fix from the last version which allowed
#
# anyone on any server to use your FormMail script on their web site.
#

@referers = ('localhost');

# @recipients defines the e-mail addresses or domain names that e-mail can
#
# be sent to. This must be filled in correctly to prevent SPAM and allow
#
# valid addresses to receive e-mail. Read the documentation to find out how
#
# this variable works!!! It is EXTREMELY IMPORTANT.
#
@recipients = &fill_recipients(@referers);

# ACCESS CONTROL FIX: Peter D. Thompson Yezek
#
# @valid_ENV allows the sysadmin to define what environment variables can
#
# be reported via the env_report directive. This was implemented to fix
#
# the problem reported at http://www.securityfocus.com/bid/1187
#

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');
 
I could only find security warnings regarding Formmail-SMTP (and these were
all directed to the Formmail script in general) in Google. Could you post a
URL where you found the script?
I have looked at Formmail 1.92 (which does not have the $mailhost variable),
so I am making educated guesses here.
See inline below.
--
Ron
Reply only to group - emails will be deleted unread.

Orlando Gondar said:
Well, still "Nada", nothing, this are te variables on the scripts....

#!perl.exe
#!D:\PERL\bin

These lines should only be one line - the very top line in the script.
Ignored by IIS, but required on Unix servers to point to Perl.exe on the
server. The usual line is
#!usr/sbin/perl
or
#!usr/bin/perl
but this may vary.
use Net::SMTP;


$mailprog = '/usr/lib/sendmail -i -t';

# $mailhost defines the name or address of your mail relay. If defined,
#
# overrides $mailprog and sends mail directly to $mailhost using Net::SMTP
#

$mailhost = '127.0.0.1';

Check that SMTP service is configured to accept connections from 127.0.0.1
# @referers allows forms to be located only on servers which are defined
#
# in this field. This security fix from the last version which allowed
#
# anyone on any server to use your FormMail script on their web site.
#

@referers = ('localhost');
Change this to
@referers = ('127.0.0.1','localhost','somealiasdomain.com')

The "somealiasdomain" should be set up on the SMTP service as an alias.
This enables you to test using an email address of (for example)
(e-mail address removed)
If you try using an address like fred@localhost - it may not work at all,
because localhost does not contain a dot, but [email protected] should.
You also need to set up the SMTP service to accept connections from
127.0.0.1 and localhost.
Also your POP3 service should be configured for these domains.
 
I have tried it successfully.
The changes listed below are correct.
Your form must have fields named
email the users email address
recipient the address the form is sent to. The domain here must be
one in the @referers variable.
 
I still online here went I get off, I will change those lines and try again.
and will let you know.
 
Ok I dont know what else to do, but still cant get anything
from the form, also I wish I knew how to test the SMTP
by dropping something on the drop folder and see if
the POP3 server pick it up.
 
Here is a message you should copy into notepad. Change the To email address
to whatever you have set up for SMTP service. save the file, then copy the
notepad file into the pickup folder (C:\inetpub\mailroot\pickup).


From: (e-mail address removed)
To: (e-mail address removed)
Subject: test
Reply-To: (e-mail address removed)

Thank you for this message. It has been forwarded to (e-mail address removed).
========================================================
comment
-------
this is a test
========================================================
END



IMHO this thread is going way off topic for FrontPage. You can contact me
at
news.og (at) rxs-enterprises.co.uk, if you want to take the subject off
line.
 
Ok Ron, yes lets closed here, at least some folks had pickup anything from
our ex-change, and hope people talk more about scripts used on
Frontpage, and how, effects, the ins and out of it.

I will send you an email, you may spot a problem with the emails addresses
or
something like that.
On the example below, does matter the name of the file ?
Wish one I should use or extension. ?
 
I will look out for your mail.
I used New Text Document.txt for the filename when I tested it - There
were no problems. As long as it's a text file, name and extension does not
matter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formmail and Windows SMTP 1
MSN23.MAILHOST message 1
Windows 2003 - Changing hostname 1
formail + email 3
Windows XP Run VBS remotely 0
TCP/IP 2
ISS, Linux and Windows 5
DNS Problem 1

Back
Top