Procmail error running lookup-domain.pl

Hi,

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/lookup-domain.pl line 119.
procmail: Program failure (2) of "/usr/libexec/webmin/virtual-server/lookup-domain.pl

Any ideas?

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

My procmailrc is:

LOGFILE=/var/log/procmail.log
TRAP=/usr/libexec/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/usr/libexec/webmin/virtual-server/lookup-domain.pl $LOGNAME
EXITCODE=$?
:0

  • ?/usr/bin/test “$EXITCODE” = “73”
    /dev/null
    :0
  • ?/usr/bin/test “$VIRTUALMIN” != “”
    {
    INCLUDERC=/usr/libexec/webmin/procmail/$VIRTUALMIN
    }
    DEFAULT=$HOME/Maildir/
    ORGMAIL=$HOME/Maildir/
    DROPPRIVS=yes

Howdy,

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?

-Eric

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?

Thx
Steve

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

-Eric

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?

-Eric

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 user@myvirtualmindomain.com 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/lookup-domain.pl””
in the procmail log about lookup-domain having a bad subroutine. I updated procmailrc to use the correct path of the lookup-domain.pl file. That did nothing. I had to run lookup-domain-daemon.pl 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/lookup-domain.pl,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 double-bounce@ip-7X-XXX-XXX-XXX.ip.secureserver.net Mon Dec 5 20:02:45 2011
Subject: Postfix SMTP server: errors from k2smtpout06-01.prod.mesa1.secureserv
Folder: /root/Maildir/new/1323140566.26140_0.ip-7X-XXX-XXX-XXX.ip.se 1080
Time:1323140566 From:MAILER-DAEMON@ip-7X-XXX-XXX-XXX.ip.secureserver.net To:postmaster@ip-7X-XXX-XXX-XXX.ip.secureserver.net User:root Size:1164 Dest:/root/Maildir/new/1323140566.26140_0.ip-7X-XXX-XXX-XXX.ip.secureserver.net Mode:None

If I send mail to user@myservverhostdomain.com, i get mail to root about double bouncing.

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

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