The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/usr/bin/sendmail

Discussion in 'E-mail Discussions' started by mitul, Feb 27, 2003.

  1. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Hello All,

    I have a script on redhat 7.3 server that uses /usr/bin/sendmail to send mails. The day I have upgraded the server it has stop sending mails fron the script. I could not see /usr/bin/sendmail also. I think it now uses exim to send mails. How do I send my mails now through script as I could do with sendmail.

    Thank you,
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    For generic setups, sendmail has always been a symlink to exim. Check in /usr/sbin for a sendmail link, or just symlink /usr/bin/sendmail to exim if you don't want to change your script to use /usr/sbin/sendmail, which should be created by default when cPanel sets up.
     
  3. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Can you please tell me how do I symlink with exim?

    Thank you,
     
  4. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    Sure. If you were sitting in /usr/bin, for instance, looking at all the pretty files, and wanted to symlink to exim from there using sendmail as the name:

    ln -s /usr/sbin/exim sendmail
     
  5. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for your reply. When I executed the command
    ln -s /usr/sbin/exim sendmail it did not show me /usr/sbin/sendmail.

    The output of command "whereis sendmail"
    sendmail: /usr/sbin/sendmail /etc/sendmail.cw /usr/lib/sendmail

    Thank you
     
  6. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    If you do a ls -la send* while you're in the /usr/bin/ you'll see it there if you ran that command while in the directory. This is no different than, say, moving /var/cpanel/bandwidth to another location because of space restraints and then creating a symlink for it.
     
Loading...

Share This Page