Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

sendmail problem

Status
Not open for further replies.
Joined
Mar 9, 2010
Posts
3,402
Reaction score
55
Hi,

I was told this was idiot proof, obviously not.

I installed sendmail, unticked port and smtp in php.ini

Yet all the sample scripts to send mail do not work?

Any ideas?

server is centos and has whm on

the resolvers for the whm point at googles i think, I'm saying this as I read somewhere that this may be the problem?

Thanks in advance
 
Assuming you have cPanel installed (based on your mention of WHM) you probably don't want to be installing sendmail - cPanel uses the Exim mail server and both sendmail and Exim can't/shouldn't coexist on a server.

On cPanel servers, the mail() function generally sends mail via Exim and if there are any errors you may be able to find some in the logs. On a default cPanel PHP setup, the php.ini setting sendmail_path is "/usr/sbin/sendmail -t -i" and that should be adequate to send email from scripts.

If you have root access, you might be able to log in using SSH and run "tail -f /var/log/exim_mainlog" and try sending mail again - that may give you a hint as to what's happening.

If you're not too sure what you're doing I'd be happy to take a look - send me a PM.
 
Thank you so much, I think I will give it a miss as you recommend.

Assuming you have cPanel installed (based on your mention of WHM) you probably don't want to be installing sendmail - cPanel uses the Exim mail server and both sendmail and Exim can't/shouldn't coexist on a server.

On cPanel servers, the mail() function generally sends mail via Exim and if there are any errors you may be able to find some in the logs. On a default cPanel PHP setup, the php.ini setting sendmail_path is "/usr/sbin/sendmail -t -i" and that should be adequate to send email from scripts.

If you have root access, you might be able to log in using SSH and run "tail -f /var/log/exim_mainlog" and try sending mail again - that may give you a hint as to what's happening.

If you're not too sure what you're doing I'd be happy to take a look - send me a PM.
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom