Elxis CMS Forum

Support => Installation => Topic started by: olorin on April 23, 2008, 08:32:22

Title: Email Configuration
Post by: olorin on April 23, 2008, 08:32:22
I currently have elxis installed on a newly set up ubuntu 7.1 LAMP server. I am not too familiar with mail setup. Everything went fine with the elxis installation, and it seems to be running fine, I can add and setup users/groups/content/etc. The problem I am running into is with the auto user registration function. It currently makes the user fine, puts it in the registered group... great so far... until it tries to send the confirmation email. I have tried using the php mailer, and the /usr/sbin/sendmail utility and neither seem to be able to send mail out. I own and administer the server it is running on, just can't seem to figure out how to configure postfix mail server to work with it. I can tell you this though, from a shell on the server i can sendmail <myaddress> just fine and I receive the message, so I am not quite sure what the problem is. I am planning on moving this elxis installation to a web host once I get it running the way I want, but I'm not going to make it very far without user registration.

On a similar note, the site is going to be used as a web community for an online text based multi user dungeon running the lpmud base. It is eventually my goal to have user accounts linked to player characters and set up permissions based on their player status in game. Does anyone have any links to any such integration?

Thanks,
-Olorin
Title: Re: Email Configuration
Post by: datahell on April 23, 2008, 11:58:35
Welcome Olorin.
I also use postfix, elxis.org and this forum also use postfix and there is no problem. I think this is due to a server misconfiguration. To be sure check if PHP can send mails create an empty php file and name it test.php. Add inside it:

Code: (php) [Select]
<?php 
if (mail(&#39;your_email_address_here@site.com&#39;, &#39;test&#39;, &#39;test message&#39;)) {
   
echo &#39;mail sent&#39;;
} else {
   echo &
#39;Could not send e-mail&#39;;
}
?>

Upload this file on your server and run it through your browser (www.yoursite.com/test.php). Did you get the e-mail?
Title: Re: Email Configuration
Post by: olorin on April 23, 2008, 13:37:12
mail sent

mail received (from correct domain) at target email account.. still doesn't work from registration form..

from   www-data <www-data@dunemud.com>
to   xxx@gmail.com,
date   Wed, Apr 23, 2008 at 6:19 AM
subject   test
   
test message
Title: Re: Email Configuration
Post by: datahell on April 23, 2008, 14:48:22
If you have enabled spamassasin disable it or increase the span score to be sure that the e-mails are not marked as spam. Check also again your global configuration.