CGI-mail Return-Path configuration modification

It is usual that the mail of the error returns from (MAILER-DAEMON) to the caller (manager) when it is set to the sender that the same mail reaches with CC in the mail sent by usual mail and the mail form, and the sender has mistaken the mail address.

I was using Web-Mart V1.61 of postmail v4.11, and this error mail had returned. The mistake of the mail address was able to be checked and it was very convenient.

However, this MAILER-DAEMON mail did not return in the mail address that did not exist either when the server was changed. Then, The CGI script file was remodeled.

Remodeling of post mail V4.11 (postmail.cgi) of KentWeb

About 498 lines (V4.3 is 513 lines) Return Path is changed from anonymity to me. To the sendmail start parameter "-f '$mailto'" is added.

About 498 lines (V4.3 is 513 lines) concretely.

# Sendmail start
open(MAIL,"| $sendmail -t -i") || &error ("Mail Sending failure");

Following -f '$mailto' is added.

# Sendmail start
open(MAIL,"| $sendmail -t -i -f '$mailto'") || &error ("Mail Sending failure");

$mailto is this mail address of the manager. Anonymous@*****.*** seems to be set to Return-Path if there is no this-f parameter. Anonymous is anonymity.

Because the error mail returns from mailer demon to the caller (manager) by this remodeling, I understand whether other party's mail address is effective or invalid at once. It has been stopped to send the sender mail with CC in respect of security now.

Remodeling of Web-MartV1.61 (mart_order.cgi) of KentWeb

I think that I use shopping basket system Web-Mart of KentWeb easily very much free of charge. Web-MartV1.7 is also similar.

About 820 lines of mart_order.cgi Return Path is changed from anonymity to me. " -f '$master'" is added to the sendmail start parameter.

About 820 lines concretely.

# Sendmail start
open(MAIL,"| $sendmail -t") || &error ("Mail Sending failure");

Following -f '$mailto' is added.

# Sendmail start
open(MAIL,"| $sendmail -t -f '$master'") || &error ("Mail Sending failure");

$master is this mail address of the manager. Anonymous@*****.*** seems to be set to Return-Path if there is no this-f parameter. Anonymous is anonymity.

Because the error mail returns from mailer demon to the caller (manager) by this remodeling, I understand whether other party's mail address is effective or invalid at once.