Go to main content

Managing sendmail Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Install and Run the postfix Service

  1. Disable the sendmail service.
    # svcadm disable sendmail
  2. Disable the sendmail client.
    # svcadm disable sendmail-client
  3. Change the sendmail mediator to the postfix implementation.
    # pkg set-mediator -I postfix sendmail
  4. Configure your domain name.
    # postconf mydomain=YOUR.DOMAIN

    Note -  If your host name is fully qualified, such as host.example.com, then you can skip the postconf step.

    Note -  You can determine your domain name, YOUR.DOMAIN in the following ways based on the decreasing order of preference:
    • Type the following command:

      svcprop -cp config/domain dns/client
    • Type the following command:

      svcprop -cp config/search dns/client | nawk '{print $1}'

  5. Enable the postfix client.
    # svcadm enable postfix