/etc/init.d/proftpd
Find this line:
start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
Change to this:
start-stop-daemon --stop --signal $SIGNAL --retry 1 --quiet --pidfile "$PIDFILE"
/etc/init.d/proftpd
Find this line:
start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
Change to this:
start-stop-daemon --stop --signal $SIGNAL --retry 1 --quiet --pidfile "$PIDFILE"
mail -a "Content-type: text/html;" -s Test address@example.com < mail_html.html
ou can start out by creating a new file in /bin. For example sa_learn.
nano /bin/sa_learn
Now once you are in that file you can paste the following:
#!/bin/bash
/usr/bin/sa-learn --spam /var/vmail/*/*/.Junk/*/*
/usr/bin/sa-learn --ham /var/vmail/*/*/cur/*
The first part to this code is the directory of the SpamAssassin learning script, when putting in the –spam it learns it as spam, and –ham learns it has “good” messages. The second part to this code is the directory to your clients’ spam folders. So once this is all done, you can learn all spam in your customers’ spam folders.
After you have saved that file by clicking ctrl x, you will want to make it executable by doing the following command:
chmod o+x /bin/sa_learn
And then now from the command prompt you can simply type
sa_learn
and it will learn spam and ham!
Configure hostname
You should double confirm the system hostname if it looks good. For example if this host is www.example.com, the /etc/hostname can be:
host.example.com
The /etc/hosts should also be:
127.0.0.1 localhost
127.0.1.1 host.example.com host
Now reboot your system, and check the system hostname with command:
hostname
Ensure all APT source enabled
By default some of your APT source may be disabled, so let’s enable them with:
sed -i 's/^#\s*deb/deb/g' /etc/apt/sources.list
Install Virtualmin with GPL installation script (not available yet on 2012-04-30)
Just simply access http://www.virtualmin.com/download.html and download the Virtualmin installation script with wget:
cd /tmp
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/bash /tmp/install.sh
Do the following.
1.
find /home/* -maxdepth 0 | cut -d’/’ -f3 > /etc/mail/team
2. add the following line in the file /etc/aliases
allusers: :include:/etc/mail/team
3. run the following command
newaliases
4. run this command too
/etc/init.d/postfix reload