"Lookup domain for incoming email" to "One at a time" not works

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

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

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

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

Is it perhaps there, but under a different name?

What is the output of this command:

ls /etc/init.d | grep lookup

Now I did an Ubuntu 12.04 VM fresh install and this file is missing too.

roberto

Let us know the output of the command I mentioned in comment #4 on both your CentOS and Ubuntu systems.

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

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?

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.

If you need a vps to test it, please tell me.

roberto

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

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.

Thanks !! Thanks a lot.

I will update this ticket tomorrow telling as how all works.

roberto

Hello

Issue fixed.

Thanks

roberto