HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   cleaner script please help (

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
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

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

What to type?




What is common practice?

dendic 5th November 2012 13:41


#Copyright ...Alessandro De Zorzi and Mirko Grava
#Phamm is free...
#This file must be in path vmail/bin

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
#rm -rf "/tmp/mb* "/tmp/vd* $OUTPUT

fbartels 5th November 2012 13:55

ah seems to be a component of phamm ( From what you have posted from the script it can simply be executed from its normal location (e.g. /path/to/ if the location of the script is in your PATH variable you can also just execute

All times are GMT +2. The time now is 14:48.

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