These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for autoreply.pl trouble on the new forum.
I have in trouble with the autoreply option.
When I configure autoreply for some user I can see the next error: Failed to find sendmail or config file at /etc/webmin/virtual-server/autoreply.pl line 34.
I was reading the script, but my perl level is too low to correct or find the problem.
Could somebody help me?
Regards.
Are you using the default Postfix mail server, or are you using a different mail server?
It sounds like it's not finding the command line tool that's normally used for sending email... with Postfix and Sendmail, that's typically located at "/usr/sbin/sendmail", but it sounds like Virtualmin isn't seeing that command.
-Eric
Hi!
Thanks for your answer.
When i do an locate sendamil, I can see that sendmail is found : /usr/sbin/sendmail, my smtp server is postfix.
The line say:/etc/webmin/virtual-server/autoreply.pl /var/www/domain/autoreply-carlos.portillo\@domain.com.txt carlos.portillo@domain.com /var/virtualmin-autoreply/125690122824015-autoreply-carlos.portillo\@domain.com.txt Failed to find sendmail or config file at /etc/webmin/virtual-server/autoreply.pl line 34.
And line 34 is:If this isn't the sendmail module, try it if (!$config{'sendmail_path'} || !-x $config{'sendmail_path'}) { $moddir =~ s/([^\/]+)$/sendmail/; %config = &read_config_file("$moddir/config"); }
if (!$config{'sendmail_path'} || !-x $config{'sendmail_path'}) { # Make some guesses about sendmail if (-x "/usr/sbin/sendmail") { %config = ( 'sendmail_path' => '/usr/sbin/sendmail' ); } elsif (-x "/usr/local/sbin/sendmail") { %config = ( 'sendmail_path' => '/usr/local/sbin/sendmail' ); } elsif (-x "/opt/csw/lib/sendmail") { %config = ( 'sendmail_path' => '/opt/csw/lib/sendmail' ); } elsif (-x "/usr/lib/sendmail") { %config = ( 'sendmail_path' => '/usr/lib/sendmail' ); } else { die "Failed to find sendmail or config file"; }
Some idea? I don't know that more see.
Thanks.
Howdy,
What do you see if you type this command as root:
which sendmail
Does that show the same output as the locate command you ran?
-Eric
The answer is:
/usr/bin/which: no sendmail in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
In locate, I can see sendmail on:
/usr/sbin/sendmail
Thx