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
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 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.netTo: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
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?