mitul

Well-Known Member
Feb 8, 2003
291
0
166
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,
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
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.
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Can you please tell me how do I symlink with exim?

Thank you,
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
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
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
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
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
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.