Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to set up sendmail to use an external smtp

    Hey, i ve been looking around to try to find out a way to configure sendmail to use an external smtp server and not connecting to localhost, is there a simple way to fix this?
    i ve managed the several times, tried to force sendmail to use the external smtp but nothing.
    Just asking a way to connect to some external smtp server that's all.


  2. #2
    Here you go buddy, sorry for the delay, but hope is helps others.

    Change directory to where your sendmail configuration files ( and are located, usually /etc/mail/.

    Create a safe subdirectory (suggested name auth/):
    # mkdir auth
    # chmod 700 auth

    Create a file with your authentication information (suggested name auth/client-info):

    #cd auth
    #touch client-info

    INSIDE THAT FILE PLACE THE FOLLOWING: "U:root" "I:user" "Password"

    filling in your ISP's mail server, your user name, and your password. (Note: Earthlink, and perhaps other ISP's, requires your full e-mail address as a user name.)

    Generate the authentication database and make both files readable only by root:

    # makemap hash client-info < client-info
    # chmod 600 client-info*
    # cd ..

    Add the following lines to your file, filling in your ISP's mail server:

    FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

    # m4 >

    Restart the sendmail daemon, e.g., (this depends on your OS, this works for redhat and CentOS):
    # service sendmail restart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts