Xavier Maillard schrieb: > The accounts are not be used further after registration, some of them were > automatically deleted during daily maintenance as the user never logs in. > > Is it something built-in in ejabberd or something you setup > yourself ? If the latter, would you mind sharing your tips ?
It's a cron-script based on ejabberdctl I run daily: --- #!/bin/sh MYEMAIL="[email protected]" FILENAME="`date +%Y%m%d%H%M%S`" /usr/sbin/ejabberdctl backup $FILENAME.bak /usr/sbin/ejabberdctl delete-old-messages 370 >/dev/null 2>&1 /usr/sbin/ejabberdctl delete-older-users-vhost jabber.i-pobox.net 500|mail -s " deleted user" $MYEMAIL --- ejabberdctl has the two parameters: delete-older-users DAYS and delete-older-users-vhost VHOST DAYS It will not only delete the users not logged in since that days but also users never logged in. I pipe it to mail to be notified about all deleted accounts. Regards /MiGri -- -.. --- ...-- -... --- -..- Michael Grigutsch - Dipl.-Rpfl. (FH) - DO3BOX - Linux User #77681 gpg/mail -0x1554e086- E99F F50E B207 7BAC 07A9 DACB 342B FD8A 1554 E086 gpg/jabber -0xF5B8F7D9- E2DC A5FC CD05 523A 7ACC 74E8 F6A9 599D F5B8 F7D9
