Create and Install a Self-Signed SSL Certificate on Apache/CentOS 6

SSL is a great way to protect traffic to your website. These are the steps to create a self-signed certificate and install it on an apache web server. It is self-signed, so the user’s browser will throw an error because it doesn’t trust the certificate. It’s a start though….

Install Mod SSL

yum install mod_ssl

Continue reading “Create and Install a Self-Signed SSL Certificate on Apache/CentOS 6”

Synchronize Backups from Remote Server

This line of code will copy the backups off of a remote server.

rsync -r -a -v -e "ssh -l <username>" --delete <server>:/backup /backup

Create a user account with an ssh key pair so that you can schedule the task as a cron job and have it run without having to enter a username and password.

http://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.html

Notes From My Postfix Setup

Just so that I don’t have to keep looking this stuff up over and over again.

Configure Postfix main.cf

/etc/postfix/main.cf
# The host name of the system 
  myhostname = mail.domain.tld
# The domain name for the email server 
  mydomain = domain.tld
# The domain name that locally-posted email appears to have come from
  myorigin = $mydomain
# Network interfaces that Postfix can receive mail on
  inet_interfaces = all
# The list of domains that will be delivered 
  mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# Trusted IP addresses that may send or relay mail through the server
  mynetworks = 192.168.0.0/24, xxx.xxx.xxx.xxx/32, 127.0.0.0/8
# List of destination domains this system will relay mail to
  relay_domains = 
# Path of the mailbox relative to the users home directory 
  home_mailbox = Maildir/

Continue reading “Notes From My Postfix Setup”