Submitted by rpereyra on Wed, 11/27/2013 - 08:19
Hello
Seems this config not works:
System Settings -> Virtualmin Config -> Spam Filtering, and in there set "Lookup domain for incoming email" to "One at a time".
Seems all still runing in paralell.
I'm having a lot of memory issues in my server, it die when run lookup-domain.pl.
More info:
https://www.virtualmin.com/node/31365
roberto
Status:
Closed (fixed)
Comments
Submitted by andreychek on Wed, 11/27/2013 - 08:27 Comment #1
Howdy -- are you running the lookup-domain service?
If not, it would continue to use multiple processes that performed those checks in parallel.
You can start the lookup-domain service by running this command:
/etc/init.d/lookup-domain start
Submitted by rpereyra on Wed, 11/27/2013 - 08:37 Comment #2
Hi
Seems this file is missing in my server.
/etc/init.d/lookup-domain start
-bash: /etc/init.d/lookup-domain: No existe el fichero o el directorio
(say in spanish that this file is missing).
I'm using the latest vm with cento 6.4 x86.
I've checked in other centos server and this file is missing too.
roberto
Submitted by rpereyra on Wed, 11/27/2013 - 08:55 Comment #3
I did a fresh install in a new test centos 6.4 server
and this file still missing.
Seems a bug in the centos vm install.
roberto
Submitted by andreychek on Wed, 11/27/2013 - 08:58 Comment #4
Is it perhaps there, but under a different name?
What is the output of this command:
ls /etc/init.d | grep lookup
Submitted by rpereyra on Wed, 11/27/2013 - 09:16 Comment #5
Now I did an Ubuntu 12.04 VM fresh install and this file is missing too.
roberto
Submitted by andreychek on Wed, 11/27/2013 - 09:24 Comment #6
Let us know the output of the command I mentioned in comment #4 on both your CentOS and Ubuntu systems.
Submitted by rpereyra on Wed, 11/27/2013 - 10:11 Comment #7
Sure
Centos:
[root@server2 ~]# ls /etc/init.d | grep lookup
[root@server2 ~]#
I've removed the ubuntu vps, I need to reinstall again to run this command.
roberto
Submitted by andreychek on Wed, 11/27/2013 - 10:25 Comment #8
No need to reinstall Ubuntu, we can just look into that on your CentOS system.
Jamie, I haven't seen that issue before, is there a way to re-create the lookup-domain init script?
Submitted by JamieCameron on Wed, 11/27/2013 - 10:37 Comment #9
Try adding the line
wizard_run=0
to the end of/etc/webmin/virtual-server/config
, then logging out of and into Virtualmin again. This should trigger the post-install wizard, which gives you the option to enable it via the "Run email domain lookup server?" setting.Submitted by rpereyra on Wed, 11/27/2013 - 10:38 Comment #10
If you need a vps to test it, please tell me.
roberto
Submitted by rpereyra on Wed, 11/27/2013 - 11:10 Comment #11
Done and now seems created the script:
--------------------
[root@server2 ~]# ls /etc/init.d | grep lookup
lookup-domain
[root@server2 ~]# /etc/init.d/lookup-domain restart
[root@server2 ~]# ps aux | grep look
root 6495 0.6 0.6 41752 36656 ? Ss 13:52 0:01 /usr/libexec/webmin/virtual-server/lookup-domain-daemon.pl
[root@server2 ~]# cat /etc/init.d/lookup-domain
#!/bin/sh
# description: Daemon for quickly looking up Virtualmin servers from procmail
# chkconfig: 2345 99 99
case "$1" in
'start')
/usr/sbin/virtualmin lookup-domain-daemon
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch /var/lock/subsys/lookup-domain
fi
;;
'stop')
kill `cat /var/webmin/lookup-domain-daemon.pid`
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f /var/lock/subsys/lookup-domain
fi
;;
'restart')
$0 stop ; $0 start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop }"
RETVAL=1
;;
esac
exit $RETVAL
------------------------------
Now the emails should be processed one at a time?
roberto
Submitted by andreychek on Wed, 11/27/2013 - 11:14 Comment #12
Yup, it sounds like the lookup-domain process wasn't running before; now that it's running, it should process your emails one at a time.
Submitted by rpereyra on Wed, 11/27/2013 - 11:18 Comment #13
Thanks !! Thanks a lot.
I will update this ticket tomorrow telling as how all works.
roberto
Submitted by rpereyra on Sat, 11/30/2013 - 13:55 Comment #14
Hello
Issue fixed.
Thanks
roberto