I am new admin, on old mail server I have installed postfix,phamm and script cleaner.sh. I want to rip mails phamm not cleaned enough.Do I need enter in the desired domain and there starts this cleaner script or do it from the root folder? In short how to use the cleaner script.Please your advice or short tutorial for use cleaner.sh
As bash scripts are most of the time very individual stuff (your forerunner probably wrote it himself) it may be wise to post the contents of this script hiere to get feedback on what it does and how it can be improved.
example:nedd erase mail [email protected] What to type? #home/vmail/domains/cccccc/jooo.jaaa/cleaner or #cleaner What is common practice?
!bin/bash #Copyright ...Alessandro De Zorzi and Mirko Grava #Phamm is free... #This file must be in path vmail/bin LDAP-BASE="o=hosting,dc=example,dc=tld" admin="cn=manager" SUFFIX="dc=example,dc=tld"ROOTPW="secret" BINDDN=cn=phamm,o=hosting,dc=example,dc=tld" BINDPW=rhx" OUTPUT="/home/vmail/bin/lista touch $OUTPUT#find mail to delete... ... #create file for awk.... ... #find domain to delete... ... #create file for awk... ... #execute and delete temporary files... chmod 700 $OUTPUT #OUTPUT #rm -rf "/tmp/mb* "/tmp/vd* $OUTPUT
ah cleaner.sh seems to be a component of phamm (http://www.phamm.org/docs/INSTALL). From what you have posted from the script it can simply be executed from its normal location (e.g. /path/to/cleaner.sh) if the location of the script is in your PATH variable you can also just execute cleaner.sh.