System and Server Status Email

Hi all

I think the best way to monitor a web and mailserver is the using of "System and Server Status" modul.

I´v seen it is possible to run the command e.g. every 5 minutes and set the "Commands to run /
If monitor goes down, run command: /etc/init.d/httpd restart"

So if a problem occured the service will be restarted. This works fine but i dont get any emails on the adress i have entered in the field "Scheduled Monitoring / Email status report to". In the Wiki if read that webmin will use sendmail but i use dovecot and postfix.

Did anybody have an idea who i can solve this problem.

thx in advance

is the email actually send?
It doesnt matter if you use postfix or something else.
You can configure when an email is send.

This is my maillog if I restart apache:

[code:1]Mar 28 21:47:08 server1 postfix/local[22789]: D98C0543800D: to=<>, orig_to=<>, relay=local, delay=21, delays=0.17/0.01/0/21, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Mar 28 21:47:08 server1 postfix/qmgr[2796]: D98C0543800D: removed
Mar 28 21:47:30 server1 postfix/local[22831]: 9101C5438082: to=<>, orig_to=<>, relay=local, delay=24, delays=0.89/0.01/0/23, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Mar 28 21:47:30 server1 postfix/qmgr[2796]: 9101C5438082: removed


have you tried an emailaddress not on your server? some gmail account may be?

yes, it also won´t work with a gmail email adress.
It looks like the emailadress i entered in the field will not be used.



.forward in the root directory send me the messages to the root.


[code:1]Error: No mail program was found on your system!

No mail program was found on your system!

Any ideas?

I found the solution:

I added these lines

/usr/local/sbin /bin /usr/bin /usr/sbin

in Webmin > Webminconfig > Operating System and Environment

now it works