- If sendmail was installed, stop it first.
$ /etc/init.d/sendmail stop
- Install Postfix.
$ apt-get install postfix
- Enter the domain for the mail server.
If receiving email should be done by Google Apps instead of Postfix, edit
mydestination = localhost.localdomain, localhost fallback_transport = relay
$ service postfix restart
$ sendmail email@address FROM: sender@address SUBJECT: Some subject. email body. blah blah. .