Hi
I have been given the following instructions to alter a perl formmail script so it now works with a more secure smtp server setup -
Existing line -
$mailprog = "/usr/sbin/sendmail";
This would need to be replaced with:
$mailprog = "/usr/sbin/sendmail -faddress\@customers-domain-name";
OR
/$mailprog = "/usr/sbin/sendmail -f$email";
The script I am using has a couple of switches (-oi -t) so I have added the -fuser switch after those but not sure if I have done so correctly as I am not a perl programmer.
I have changed all lines like '/usr/sbin/sendmail -oi -t'; in the script to '/usr/sbin/sendmail -oi -t -f$email';
The form calling the script has a field named email.
The script runs without error but does not send email to the $email address.
Can anyone see where I am going wrong?
Thanks
I have been given the following instructions to alter a perl formmail script so it now works with a more secure smtp server setup -
Existing line -
$mailprog = "/usr/sbin/sendmail";
This would need to be replaced with:
$mailprog = "/usr/sbin/sendmail -faddress\@customers-domain-name";
OR
/$mailprog = "/usr/sbin/sendmail -f$email";
The script I am using has a couple of switches (-oi -t) so I have added the -fuser switch after those but not sure if I have done so correctly as I am not a perl programmer.
I have changed all lines like '/usr/sbin/sendmail -oi -t'; in the script to '/usr/sbin/sendmail -oi -t -f$email';
The form calling the script has a field named email.
The script runs without error but does not send email to the $email address.
Can anyone see where I am going wrong?
Thanks