Forums | Mahara Community
Support
/
Need help setting SMTP host
16 March 2010, 14:34
Hi,
i was trying to install Mahara in my University Server and it works!
But there is one problem, if the user want to register, there is a message :
"You have successfully registered. Please check your e-mail account for instructions on how to activate your account"
But the user doesn't get any email... :-(
I have looked at several topic but not really understand as i am not experienced with this kind of problem.
How could i set my SMTP host, when for example the Server's IP address is : 188.177.166.155??
Really need help with easy to understand solution...
THanks A Lot!
Afrizal
16 March 2010, 18:40
Hi Afrizal,
You need to set this in config.php - look for and edit the following:
// mail handling
// if you want mahara to use smtp servers to send mail, enter one or more here
// blank means mahara will use the default PHP method.
//$cfg->smtphosts = 'xxx.xxx.xxx.xxx';
// If you have specified an smtp server above, and the server requires authentication,
// enter them here
// $cfg->smtpuser = '';
// $cfg->smtppass = '';
17 March 2010, 13:41
Hi Steve,
I have tried to use that solution, but it doesn't work. There is an error message : could not connect your smtp host.
But perhaps i did a mistake. Because i edited two files : config.php and also /lib/config-defaults.php with this :
$cfg->smtphosts = 'xxx.xxx.xxx.xxx'; ----> i filled it with the Server's ip address.
And also here :
$cfg->smtpuser = 'xxxx'; --------> i filled it with 'root'
$cfg->smtppass = 'xxxx'; --------> i filled it with 'my_root_pass'
Did i miss something?
THanks
Afrizal
17 March 2010, 14:01
Btw, i have just realized that i shouldn't change my /lib/config-defaults.php
i have restored the file back. But still no success.
17 March 2010, 15:16
You may want to find out if your University mail server has a hostname (eg. mail.university.domain) and try using that.
Also if if everything goes through proxy or some kind of spam filtering system you may need to get the IP of your Mahara box 'whitelisted'.
A lot can depend on how your network/vlan/domain controllers etc is set up.
If you did not build the server yourself you may want to find out from who did what services are available from it.
17 March 2010, 20:00
I'll second what Gary says. If you're the admin of the SMTP server, check the mail log to see what's causing the connection refusal, eg. in /var/log/mail.log22 March 2010, 5:13
I have checked the mail log in /var/log/mail.log.
But it's empty.....
still need help..
22 March 2010, 23:22
Do you have other applications and/or servers using that SMTP server for sending mail? The mail log shouldn't be empty if it's being used...28 March 2010, 6:03
I am not sure there is any other application using the SMTP server. The server is new created special for Mahara..28 March 2010, 16:39
I don't mean to butt in here, but could you clarify something for me?
If you are running your own smtp server than you may not need to use the 'smtp' config in mahara, as the default php mail service should handle your mails if you have sendmail (or equiv) set up.
My understanding is that the 'smtp' config option is for those people (like me) that need to use an external smtp server (because their isp won't let them run a mail server). I use google for example:
$cfg->smtphosts = 'ssl://smtp.google.com';
$cfg->smtpuser = 'username';
$cfg->smtppass = 'password';
Works for me.
- «Previous page
- 1
- 2
- »Next page