lookup-domain.pl broken?

Been a couple months since I updated Virtualmin. After updating, I noticed that user spam settings no longer worked.

After troubleshooting, I found that the newer updated lookup-domain.pl in /usr/libexec/webmin/virtual-server/ was different and over 2000 bytes versus the 1200 byte earlier file.

Using the older file and things work fine. The new file breaks mail and does not peform the domain lookup, value comes back null.

This a known issue? I have not really looked into it past this.

John P.

Hey John,

It’s not a known issue, but it might be an issue, nonetheless. I’ll ping Jamie and see what he has to say about it.

Hi John,
There were some changes a couple of versions ago to lookup-domain.pl to make it faster, as it gets run every time mail arrives for any user. However, it’s possible that these changes broke something on your system.

If you run :
/etc/webmin/virtual-server/lookup-domain.pl someuser </dev/null

as root at the shell prompt, does it output a domain ID number? You will need to replace someuser in the command above with a full Unix username of a mailbox created by Virtualmin.

If not, check the following :

  1. The user’s domain has spam filtering enabled
  2. The user is not within 5 MB of reaching his disk quota.