Dec 8, 2016

0 Moodle SMTP error [postfix & Exchange].


       Moodle Not Sending Emails.



      1. Try to recover password by entering e-mail or username.
·         It may work for Gmail & fail for your domain.

2. Check errors in log file.
sudo tail -n10 /var/log/mail.log

3. Search for error :
"Recipient addresses must be specified on the command line or via the -t option"

4. Login in moodle as admin user.
                Navigate to :  Site Administration -> Server -> PHP info

5. Search for : Loaded Configuration File

6. Open it for editing on server.

7. Check if smtp is uncommented :

                [mail function]
                                SMTP = localhost
                                smtp_port = 25
                               
8. Open for editing file : /etc/postfix/main.cf

9. In section relayhost, add your MS Exchange server name :
                relayhost = exchange.domain.lv

10. Add www-data user to mail group :
                sudo adduser www-data mail

11. Check if /etc/hosts has correct values.

12. Restart apache2, php5-fpm




0 comments :

Post a Comment

Comment: