Archive for June, 2010

Changing Spamassassin to check emails larger than 250KB

Spamassassin by default will not check emails larger than 250 KB. This is limited to prevent spamassassin from generating a large load on the server.

If you would like to change this setting to a higher value you can edit the following file:

vi /usr/local/psa/bin/psa-spamc

and change this line to a higher value:

MAX_SIZE=256000 # max letter size to filter

Spamassassin will use the new value immediately with no need to restart any services.

Reference: http://parallels.com

SBDavid

Restarting services in Plesk

Restarting services in Plesk

If a service, such as Apache, has stopped you may need to restart the service.

The following guide shows you how to start/stop/restart system services from within Plesk.

From Plesk Services Management

1. Login to Plesk.
2. Click on Server.
3. Click on Service Management.

Now you can start|stop|restart the service of your choice.

From Virtuozzo System Services

1. Login to Plesk.
2. Click on Virtuozzo.
3. Click on System Services.
4. Now you can start|restart|stop the service of your choice. You can also enable the Autostart feature.

How do I configure GRUB to see all of my memory?

You can specify the amount of memory on your system if your computer is not recognizing all of it. For example if your system says you only have 128 MB of RAM and you know for sure you have 256 MB, then you can specify that in your grub.conf file, located at /boot/grub/grub.conf

What you want to do is add the following syntax mem=M to the kernel line of your grub.conf file. So for instance if you were specifying your system had 256 MB in the grub.conf file, it would look something like this.

splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/ mem=256M
initrd /initrd-2.4.21-15.EL.img
title Red Hat Enterprise Linux AS (2.4.21-9.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-9.EL ro root=LABEL=/ mem=256M
initrd /initrd-2.4.21-9.EL.img
SBDavid

Disable ping requests in Plesk

Disable ping requests in Plesk

By default your server can be pinged by anyone, meaning it is discoverable. You can improve security by changing your firewall to only allow known IP addresses to ping your server.

If your static IP is 192.168.1.1 change the rules under Ping Service in Plesk’s default Firewall rules.

Allow incoming from 192.168.1.1
Deny incoming from all others
SBDavid

Using the built-in Plesk firewall

Using the built-in Plesk firewall

Although you could edit the firewall from the command-line it is much easier using Plesk’s firewall instead.

Just navigate to Modules > Firewall. If you have a static IP address you can create rules so that the server will only allow access from your IP address at your home and/or office.

By default the SSH standard port number is 22. If you look at your logs you might see a large number bad login attempts on that port. Changing this port number is a simple way to make your server more secure. To change the port number login as root and run the following command:

vi /etc/ssh/sshd_config

Find the line that says:

Port 22

Change this line to another port number above 1024. Using a port number above 1024 prevents scans like nmap picking up ssh.

Save the sshd_config file and then restart sshd.

« Prev - Next »