Loading...
 
Skip to main content

Architecture / Installation


Mail Error - How to Debug?

I have a new install of TikiWiki 2.2 running on a Gentoo Linux 2.6.23 kernel. The one thing I can't seem to get working is sending email for new registratrations. I have tested php from the command line and php can send email. I'm using ssmtp which has a sendmail compatible layer. This should be working OK or else I would not be able to send from php command line, correct?

After registering a new user, I see two lines in my Tiki Logs:

Image
Copy to clipboard
register Mon 08 of Dec., 2008 12:42 PST Anonymous created account bob mail error Mon 08 of Dec., 2008 12:42 PST Anonymous em...@so.../ Your Tiki information... aaa.bbb.ccc.ddd Mozilla/4.0...


Yet I don't see any attempt to send mail from ssmtp in my syslogs. Sending email via ssmtp from either the php command line or directly from the shell logs activity in my syslog. Thus it appears that TikiWiki is not calling ssmtp.

What can I do to determine the cause of this issue? I have Googled and found a few things regarding inablility to send email but none of the posts seem to apply to my situation. Other than new registration, how else might I force TikiWiki to send email for testing.

Please help!

Thanks,

Drew

Seems my cli test wasn't valid as I used the root account for the test. Rerunning the test as the user running the apache daemon revealed that it was a permission issue with the ssmtp binary. I had to add the apache user to the ssmtp group.

Sorry for the noise.

Cheers,

Drew