Empulse Group a collection of notes from a sys admin, musician, and father

4Jan/080

Qmail rcpthosts issues

I've seen this error in an email bounce:

Hi. This is the qmail-send program at yahoo.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<user@domain.com>:
xx.xx.xx.xx does not like recipient.
Remote host said: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
Giving up on xx.xx.xx.xx.

this file is located at /var/qmail/control/rcpthosts

but if this is a Plesk box you want to be sure that under Domains->Services->Mail that it is in "Switch On" mode.

Filed under: Linux No Comments
3Jan/080

Quick Directory Password Protection using Apache

Here are some quick steps to password protect a directory using the Apache web server.

# cd /path/to/www
# vi .htaccess

press 'i' for edit mode
press 'esc' to exit edit mode
':wq' to save

the file should be as follows:

AuthType Basic
AuthUserFile /path/to/www/protect/.htpasswd
AuthName "Restricted Area"
require valid-user

then add the user:

# htpasswd -c /path/to/www/.htpasswd username

then ender a desired password.

 

UPDATE: You may need to also add the following to the domain Virtual Host block to allow the .htaccess file to be used.

<Directory "/path/to/www/protect">
AllowOverride All
</Directory

Filed under: Linux No Comments