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/ line 34.

I was reading the script, but my perl level is too low to correct or find the problem.

Could somebody help me?


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.



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/ /var/www/domain/ /var/virtualmin-autoreply/
Failed to find sendmail or config file at /etc/webmin/virtual-server/ 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.



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?


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: