# Prepare compile environment

[email protected]:~/# cat /etc/release

Oracle Solaris 11.1 X86

[email protected]:~/# pkg install developer/gcc-45

[email protected]:~/# pkg install library/gnutls

# Disable sendmail

[email protected]:~/# svcadm disable svc:/network/smtp:sendmail

# get postfix from postfix sites

http://www.postfix.org/download.html

# Install postfix

[email protected]:~/# tar xf postfix-2.x.x.tar.gz

[email protected]:~/postfix-2.10.1# cd postfix-2.x.x

[email protected]:~/postfix-2.10.1# gmake clean

[email protected]:~/postfix-2.10.1# gmake makefiles MAKE=gmake CCARGS=’-DNO_NIS -DUSE_TLS -lssl -lcrypto’

[email protected]:~/postfix-2.10.1# gmake

[email protected]:~/postfix-2.10.1# gmake install

# start Postfix

[email protected]:~/postfix-2.10.1# postfix start

# Test postfix

[email protected]:~/postfix-2.10.1# postfix status

[email protected]:~/postfix-2.10.1# mail -s “Test email” [email protected]_domain.com

# More configuration on postfix can check http://www.postfix.org/documentation.html