Unix is very simple, but it takes a genius to understand the simplicity (Dennis Ritchie)

Home

Articles

Linux

Iptables

Squid Configs


Other Links

Debian

Slackware

Contact Us

 

Installing and running postfix on Solaris 10

This is a quick howto install postfix on Solaris 10, please refer to blastwave for setup the repository for installing Postfix.

1. Install postfix from blastwave.org

# pkgutil -i postfix

Disable sendmail (works for S10 or higher)

# svcadm disable svc:/network/smtp:sendmail

Enable NFS client (prerequisite for cswpostfix, even if not used)

#svcadm enable nfs/client

Change spool directory to /var/spool/postfix (NOT required )

# mkdir /var/spool/postfix
# chgrp postdrop /var/spool/postfix
# cd /opt/csw/var/spool/postfix; find . -depth | cpio -pdm /var/spool/postfix

Setup /etc/postfix link to configuration directory

# cd /etc; ln -s opt/csw/postfix

Copy aliases from sendmail: (not required if not using any sendmail aliases, however do run the 'newaliases' command.

# cp /etc/mail/aliases /etc/postfix
# /opt/csw/bin/newaliases

2. Edit main.cfg

inet_protocols = all
myhostname = yourdomain.org

3. Update PATH to include /opt/csw/bin and sbin in the PATH

# export PATH=$PATH:/opt/csw/bin:/usr/sfw/bin:/opt/csw/sbin:/usr/X/bin

4. Testing by sending email to local and external user

$ mailx -s testlocal localuser
$ mailx -s testexternal someuser@somedomain.com

5. Starting/Stop postfix

# postfix start; postfix stop