MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2015-04-25, 19:57:22
-
I've even runned /script/cleanup and it's gone ;)
-
Read latest sendmail-wrapper to add 'sendmail-addons' (add another script, including sendmail-limiter). Kloxo-MR include sendmail-limiter files inside /usr/local/lxlabs/kloxo/file/qmail/var/qmail/bin
-
Read latest sendmail-wrapper to add 'sendmail-addons' (add another script, including sendmail-limiter). Kloxo-MR include sendmail-limiter files inside /usr/local/lxlabs/kloxo/file/qmail/var/qmail/bin
So just create /var/qmail/control/sendmail-addons and put all scripts out there ?
-
No put all scripts but path of the main script. Example: put '/usr/local/lxlabs/kloxo/file/qmail/var/qmail/bin/sendmail-limiter.pl'.
-
In 'sendmail-addons' file possible add more then one script paths, example:
/opt/myscript/limit.pl
/bin/other.sh
-
Done, but sendmail-limiter still does not work despite proper database config in /usr/local/lxlabs/kloxo/file/qmail/var/qmail/bin/sendmail-limiter.pl
-
Done, but sendmail-limiter still does not work despite proper database config in /usr/local/lxlabs/kloxo/file/qmail/var/qmail/bin/sendmail-limiter.pl
I am not testing this limiter files work or not.
-
I had to restore my previous system ;)
Which is /usr/sbin/sendmail -> /usr/sbin/sendmailwrapper/send_mail
#!/bin/bash
CWD=$PWD
cd /usr/sbin/sendmailwrapper
if ./smw_limiter $CWD
then
../../../var/qmail/bin/sendmail $*
fi
#eof
-
In Kloxo/Kloxo-MR, sendmail was symlink from qmail sendmail.
In Kloxo-MR, qmail sendmail renamed to sendmail.orig and then sendmail-wrapper (just sh file) will symlink to qmail sendmail.