HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   cleaner script please help (http://www.howtoforge.com/forums/showthread.php?t=59344)

dendic 1st November 2012 10:55

cleaner script please help
 
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

fbartels 1st November 2012 14:59

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.

dendic 1st November 2012 17:38

example:nedd erase mail

jooo.jaaa@cccccc.de

What to type?

#home/vmail/domains/cccccc/jooo.jaaa/cleaner

or

#cleaner

What is common practice?

dendic 5th November 2012 13:41

!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

fbartels 5th November 2012 13:55

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.


All times are GMT +2. The time now is 01:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.