Can't edit mail users in 4.0 GPL

Debian 7 64bit, virtualmin 4.00 GPL

All mail is working fine in all areas (usermin, mail clients, roundcube). However, in VirtualMin if I click “Edit Users”, select a user and make changes I get an error when I click the “save” button:

“Failed to save mailbox : No mail program was found on your system!”

mail-utils is installed (provides the mail command), procmail is installed as well as -lib and -wrapper, DoveCott is installed, PostFix is installed

I have looked all over google as well as VirtualMin’s config and it’s configured to use PostFix in the WebMin module config.



Did you upgrade from Debian 6? Or did you perform a Debian 7 install, followed by installing Virtualmin?

If you go into System Settings -> Re-Check Config, does it detect any problems?


Installed Debian 7
Installed Webmin
Installed virtualmin a few times (so it’s a dirty install)

Virtualmin it’s self is not sending mails (account creation/update). Users can send/receive mail just fine.

scott@shell1:~$ whereis mail
mail: /usr/bin/mail.mailutils /usr/bin/mail /etc/mail.rc /etc/mail /usr/bin/X11/mail.mailutils /usr/bin/X11/mail /usr/share/man/man1/mail.1.gz

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active …

Your system has 31.37 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.

BIND DNS server is installed, and the system is configured to use it.

Mail server Postfix is installed and configured.

Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.

Apache is installed.

The following PHP versions are available : 5.4.4 (/usr/bin/php5-cgi)

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPd is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

Using network interface eth0 for virtual IPs.

IPv6 addresses are available, using interface eth0.

Default IP address for virtual servers is

Default IP address is set to, which matches the detected external address.

User quotas are enabled for home and email directories, but group quotas are not. Total virtual server quotas will not be enforced.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

… your system is ready for use by Virtualmin.

As an update, I have disabled virtualmin sending emails to users for account creation and account updates as well as emails for virtual server create and it works without error. If I then enable sending the emails I get that error again.

“Failed to save mailbox : No mail program was found on your system!”

That makes me assume that Virtualmin doesn’t know the correct path to the mail command.

No other guesses?

It appears as if it looks for the command “sendmail” when running Postfix or Sendmail.

What does this command output on your system:

which sendmail

Also, if you go into Server Configuration -> Server Settings, what is “Mail server to configure” set to?



I reinstalled postfix and this seemed to have fixed the issue.