Sendmail relay through ’smarthost’ requiring authentication

To get sendmail to relay thru a smarthost that requires authentication, in /etc/mail/sendmail.mc

define(`SMART_HOST’, `host.to.relay.thorugh.com‘)dnl

In /etc/mail/access:

AuthInfo:host.to.relay.thorugh.com "U:username" "I:username" "P:password" "M:PLAIN"

Activate the changes

make
service sendmail restart

Reference:  sendmail_relaying_to_isp_with_authentication_with_no_dns_lookup

Creating a password protected YUM repository

Setup http authentication in httpd.conf file (encouraged rather than using .htaccess):

<Directory /var/www/repo>
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/apache2/passwords/repo
Require valid-user
</Directory>

Create auth user password file:

htpasswd -c /etc/apache2/passwords/repo repouser

Restart apache.
Create repo:

yum install createrepo # or equivalent
mkdir /var/www/repo
cp *.rpm /var/www/repo
createrepo /var/www/repo

To use the repo, on the [...]

TED: BumpTop

Anand Agarawala demos BumpTop at the TED conference.