sendmail smarthost

Discussion in 'Sendmail' started by popowich, Sep 2, 2008.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:
    I often prefer to configure sendmail on my servers to smarthost to some other dedicated smtp relay.

    On older sendmail systems I would edit /etc/mail/ and configure the line that starts with DS.

    On newer sendmail systems the following directions can be used to configure sendmail to relay email to another server such as your company or your ISP's smtp relay servers.

    Open the configuration file:

    Modify the SMART_HOST line:

    Update the configuration on the workstation / server:

    And then restart sendmail:
    On Solaris servers the paths to the files and commands are a little different.

    Here are the directions that work for me on Solaris 10:

    Backup your existing configuration file:

    Edit the template file:

    Add the following lines after the DOMAIN line:
    Remove this line if it exists:
    Create the new with this command:

    Restart the sendmail service:
    If you have any problems you can rollback to the original copy of your file.


Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.