Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

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.

The Rule #1

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

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom