Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    2

    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 sendmail.mc 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.

    thanks

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Posts
    28
    Here you go buddy, sorry for the delay, but hope is helps others.

    Change directory to where your sendmail configuration files (sendmail.mc and sendmail.cf) 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:

    AuthInfo:your.isp.net "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 sendmail.mc file, filling in your ISP's mail server:

    define(`SMART_HOST',`your.isp.net')dnl
    define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

    Generate sendmail.cf:
    # m4 sendmail.mc > sendmail.cf

    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
  •