#!/usr/bin/python
import os
for i in range(1,500):
cmd = '/var/indimail/bin/vadduser mal'+str(i)+'@domain.com password'
os.system(cmd)
print cmd
indimail batch user adding like:
mail1@domain.com with password
mail2@domain.com with password
mail3@domain.com with password
..
..

Writing a Python program can be done using any editor, even a text editor. If you are running Ubuntu Linux, you may want to edit your code using Eclipse. Eclipse is an Integrated Development Environment or IDE for building, deploying and managing software. It is a source code editor and provides trace and debugging facilities. The Eclipse Project was originally created by IBM in November 2001 and supported by a consortium of software vendors. Today, the Eclipse community consists of individuals and organizations from a cross section of the software industry.
(more…)
i just found a new mail server daemon, developed with python twisted
codes are simple and can be implemented quickly.
project home: https://launchpad.net/txmailserver
to download :
bzr branch lp:txmailserver
to lock your resolv.conf
Bug Description
Binary package hint: network-manager
This bug causes name resolution to be painfully slow. If I manually remove the routers ip from resolv.conf it works normally, but next time the machine is booted the address gets added to the list again. (more…)
Make Yakuake autostart:
Open up your home folder; make sure you can see your hidden files.
Navigate to the .kde/Autostart folder and create a new text file: yakuake.
Paste this in the file:
#!/bin/bash
/usr/bin/yakuake
Start up your new Yakuake Terminal and press F12.
~/.kde/Autostart/
chmod +x yakuake
Next time you start Ubuntu Yakuake will be running. You just need to press F12 to access it.
To configure it you can right click on the Yakuake screen and use the menu.
The size of the window and other settings can be accessed by clicking the small down arrow at the bottom right of the screen.
Stopping to autostart mysql service
(firstly u must be sure to there is a<strong> /etc/init.d/mysql or mysqld</strong> )
# chkconfig --list | grep mysqld
mysqld 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# chkconfig --level 345 mysql off
error reading information on service mysql: No such file or directory
# chkconfig --level 345 mysqld off
# reboot
chkconfig
The chkconfig command can also be used to activate and deactivate services. If you use the chkconfig –list command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6 (at the end of the list, you will see a section for the services managed by xinetd.
(more…)
How to remove a directory in linux console
first look at rm command .
(more…)
if you get an error like this:
(more…)