Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st November 2012, 09:55
dendic dendic is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 1st November 2012, 13:59
fbartels fbartels is offline
Junior Member
 
Join Date: Feb 2012
Location: Hanover, Germany
Posts: 21
Thanks: 0
Thanked 4 Times in 4 Posts
Default

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.
Reply With Quote
  #3  
Old 1st November 2012, 16:38
dendic dendic is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

example:nedd erase mail

jooo.jaaa@cccccc.de

What to type?

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

or

#cleaner

What is common practice?
Reply With Quote
  #4  
Old 5th November 2012, 12:41
dendic dendic is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

!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
Reply With Quote
  #5  
Old 5th November 2012, 12:55
fbartels fbartels is offline
Junior Member
 
Join Date: Feb 2012
Location: Hanover, Germany
Posts: 21
Thanks: 0
Thanked 4 Times in 4 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in using : perfect-server-ubuntu-12.10-apache2-bind-dovecot-ispconfig-3, rezabagheri Installation/Configuration 7 30th October 2012 22:55
Cannot login to phpmyadmin penkku HOWTO-Related Questions 1 24th February 2011 09:26
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54


All times are GMT +2. The time now is 16:18.


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