Procmail error running


Every time I try to send an email to a user it fails and in the procmail log it tells me:
Undefined subroutine &main::get_user_domain called at /usr/libexec/webmin/virtual-server/ line 119.
procmail: Program failure (2) of "/usr/libexec/webmin/virtual-server/

Any ideas?

The webmin version I’m on is 1.562 on Centos 5

My procmailrc is:

VIRTUALMIN=|/usr/libexec/webmin/virtual-server/ $LOGNAME

  • ?/usr/bin/test “$EXITCODE” = “73”
  • ?/usr/bin/test “$VIRTUALMIN” != “”


You may want to try restarting a few components, as something in memory may be out of sync with the disk. I’d try these commands as root:

/etc/init.d/webmin restart /etc/init.d/lookup-domain restart

After that, are you able to send an email?


Thx for the quick response!

Well guess what - when try to restart lookup-domain I get:

-bash: /etc/init.d/lookup-domain: No such file or directory

How do I install it?


Hmm, that’s odd… how did you go about installing Virtualmin, did you use the script?


Yes. The server previously had plesk, so I had to fiddle a bit to get it to run (no Yum installed). The script seemed to run properly in the end (it took about 3 attempts)

This is the last thing. I have 7 sites ready to go once I have fixed the email problem - i.e. not receiving any!

I ran into the same issue since a reboot yesterday.

I also can not start lookup-domain (anymore).

How can I reinstall it?

I also can not start lookup-domain (anymore).

What happens when you try to start the lookup-domain process? Do you get an error message of some sort?


I don’t have the lookup-domain process (anymore).
Have to find out how to install that on CentOS.

I manually installed Virtualmin in Fedora 14. All incoming mails are rejected. Client shows no user at domain message:
The mail server responded: sorry, no mailbox here by that name. (#5.7.17)
. Please check the message recipient and try again.

I changed the user name in the above text example. The user is setup and does send outgoing mail perfectly. I can also check and receive mail by logging in with the user.domain login remotely. SMTP also works fine.

I found the error: “Program failure (2) of “/usr/libexec/webmin/virtual-server/””
in the procmail log about lookup-domain having a bad subroutine. I updated procmailrc to use the correct path of the file. That did nothing. I had to run from a shell to stop the error.

I now have:
procmail: [26140] Mon Dec 5 20:02:45 2011
procmail: Assigning “VIRTUALMIN=”
procmail: [26140] Mon Dec 5 20:02:45 2011
procmail: Executing “/usr/libexec/webmin/virtual-server/,root”
procmail: [26140] Mon Dec 5 20:02:46 2011
procmail: Executing “test “$VIRTUALMIN” != “””
procmail: [26140] Mon Dec 5 20:02:46 2011
procmail: Non-zero exitcode (1) from “test “$VIRTUALMIN” != “””
procmail: No match on “test “$VIRTUALMIN” != “””
procmail: Assigning “DROPPRIVS=yes”
procmail: Assuming identity of the recipient, VERBOSE=off
From Mon Dec 5 20:02:45 2011
Subject: Postfix SMTP server: errors from
Folder: /root/Maildir/new/ 1080
Time:1323140566 User:root Size:1164 Dest:/root/Maildir/new/ Mode:None

If I send mail to, i get mail to root about double bouncing.

There is a file in the same directory as, however it does not run when moved to /etc/init.d minus the “”.

Is there some other step not mentioned in the manual install instructions that is missing?