autoreply.pl trouble

5 posts / 0 new
Last post
#1 Mon, 11/16/2009 - 04:39
boxdaxter

autoreply.pl trouble

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.

Mon, 11/16/2009 - 09:03
andreychek

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

Tue, 11/17/2009 - 02:51 (Reply to #2)
boxdaxter

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.

Tue, 11/17/2009 - 10:35
andreychek

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

Mon, 11/23/2009 - 05:55 (Reply to #4)
boxdaxter

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

Topic locked