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


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.

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

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

Filed under: Linux No Comments
Copyright &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;copy; 2018 Empulse Group &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;middot; Powered by WordPress
Lightword Theme by Andrei Luca Go to top &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;uarr;