Email Problem Moodle 2.4.3+

Email Problem Moodle 2.4.3+

by Yasir Siddique -
Number of replies: 4

Hi I am Using Moodle 2.4.3+ cant send emails to users 

moodle shows message sent but user are not recieving emails 

both builtin and SMTP are not seding emails please help sad

Average of ratings: -
In reply to Yasir Siddique

Re: Email Problem Moodle 2.4.3+

by Ken Task -
Picture of Particularly helpful Moodlers

Remotely hosted?  Shared/Dedicated?  Hosting Provider?  Operating system? (Linux/Windows/MacOSX).

Have you read: http://docs.moodle.org/24/en/Messaging_settings

'spirit of sharing', Ken

In reply to Ken Task

Re: Email Problem Moodle 2.4.3+

by Yasir Siddique -

VPS Server  Linux Operating system

Yes Dear i have tried all of settings 

In reply to Yasir Siddique

Re: Email Problem Moodle 2.4.3+

by Ken Task -
Picture of Particularly helpful Moodlers

Well, that's a start ... but

1. not all VPS's are alike (package offerings) - many have a cap on the number of messages one can send (spamming protection for their network) and

2. there are different Linux distros (Ubuntu/CentOS).

CentOS/Ubuntu/Other?  VPS - hosting provider?  Package (not all provide the same).  Hosting providers many times have FAQ's and how-2's ... not all are setup the same.  Have you consulted hosting providers forums?

Generic commands seeking an MTA (mail transfer agent - a must have even if you set up Moodle to use SMTP correctly):

ps aux |grep sendmail

ps aux |grep postfix

ps aux |grep exim

OR use

whereis sendmail

whereis postfix

whereis exim

To test the sending of mail from server, one could install something like alpine - text based command line mailer.  Config it and send a test message to yourself.

Have you checked server logs?  (the following for CentOS) found normally in /var/log:

maillog

or apache logs ... normally found in /var/log/httpd/

error_log

'spirit of sharing', Ken

In reply to Yasir Siddique

Re: Email Problem Moodle 2.4.3+

by Ken Task -
Picture of Particularly helpful Moodlers

Oh, yeah 2 more things ... recently had this happen ... there is a setting in Moodle for the address to use with 'noreply' when messages are distributed.  Is that a valid EMail address - valid domain?

And, when one post something to a forum to which users are subscribed run the cron job a few times via browser - until the distribution of messages kicks in.  That output (of cron) sometimes gives hints as to issues.   Also, after doing so, check your server's mailque.  Could be there is a cap/choke and only 50 such messages can be sent at one time ... the others get stuck in the que for later attempts at delivery by whatever is setup on your server.  That's a provider policy with some VPS systems.

'spirit of sharing', Ken