Archive

Archive for December, 2009

Create .htaccess restricted login

December 9th, 2009 admin No comments

Go here http://tools.dynamicdrive.com/password/

Categories: .htaccess Tags:

Grep UID in Plesk from Qmail log

December 4th, 2009 admin No comments

Click on the header link in the mail server queue:

Received: (qmail 30501 invoked by uid 10077); 3 Dec 2009 21:47:42 -0500
Date: 3 Dec 2009 21:47:42 -0500
Message-ID: <20091204024742.30498.qmail@hostserver.com>
To: email@domain.com
Subject: This is a test.
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
From: <user@domain.com>

It says its invoked by uid 10077 which corresponds to the account on the /etc/password file:

-bash-3.2# more /etc/passwd | grep 10077
username:x:10077:2522::/var/www/vhosts/domain.com:/bin/false

Categories: plesk, unix / linux Tags:

Limit to Postini IP Range in Plesk

December 2nd, 2009 admin No comments
  • Login to Plesk and go to SYSTEM -> MODULES -> FIREWALL
  • Choose Add Custom Rule
  • Enter in a rule name
  • Choose what direction to match, in this case, incoming
  • Choose ALLOW
  • Enter in port 25
  • Leave as TCP
  • Press ADD
  • Enter in 74.125.148.0/22 in the five boxes, the fifth box being the 22 (no slash)
  • Press ADD
  • Press OK

That rule will accept Postini’s block. Then, to block the rest of the email:

  • Choose Add Custom Rule
  • Enter in a rule name
  • Choose incoming
  • Choose DENY
  • Enter in port 25 and press ADD
  • Leave the network space blank
  • Press OK

It is important that you have the rules in this order, otherwise all email will be denied. Ensure that the ALLOW is above the DENY in the display list when you are done, then commit the changes.

Source: http://www.experts-exchange.com/OS/Linux/Q_24418022.html

Categories: plesk Tags: