Relaying from RackSpace

Okay, I made an awful lot out of this because I was trying to use sendmail as my MTA.  Simply put that was stupid.  Sure you can do it with sendmail, but it’s about 10 times easier to use postfix.  We are going to use SMTPAUTH just to make all the security guys happy.

chkconfig sendmail off
yum remove sendmail
yum install postfix cyrus-sasl-plain cyrus-sasl-md5

You are almost done.  Edit /etc/postfix/ and add these lines.  Nope, doesn’t matter where:

relayhost =
smtp_sasl_mechanism_filter = AUTH LOGIN
smtp_sasl_security_options =

You probably noticed the sasl_passwd file.  That needs a the instructions for setting up the SMTPAUTH so do that in /etc/postfix/sasl_passwd and be sure to set it so that root has rw and the group/everyone permissions are off (chmod 700 /etc/postfix/sasl_passwd):
postmap  /etc/postfix/sasl_passwd
postmap /etc/postfix/generic
chkconfig postfix on
service postfix start


About Jay Farschman - Jay currently works as a Senior Systems Administrator for an asset management company in Colorado where he works with companies that produce hardware, telecommunications software and financial services.  Jay previously owned a consulting company and provided training and consulting services for three Fortune 500 companies and numerous small businesses where he leveraged Linux to provided exceptional value.