Proper outgoing mail configuration (Moodle 3.9.4)

Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Pablo Britos -
Хариу нийтлэлийн тоо: 6

Hello,

I 'm trying to set up the mail properly.

The SMTP server configuration is the default one (empty fields)
I created a "noreply" email account on my server for the no-reply address.

I think, many users will reply to this email address anyway, so I'm asking to the experts. It is convenient to configure the allowed email domains for the most common domains, gmail.com, hotmail.com, yahoo.com etc.?

What is the usual way to do?

Thanks, Pablo.

Үнэлгээний дундаж: -
Pablo Britos-н хариуд

Re: Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Visvanath Ratnaweera -
Particularly helpful Moodlers зураг Translators зураг
Hi

I don't know, whether I understood the second question. Technically, if Moodle is configured to send its mails from a "noreply" address and that "noreply" mailbox exists, then users who reply to them by just clicking on "Reply" in their mail reader will write to that mailbox. As a design, I find it odd. Why is the address called "noreply", if it exists, and worse, you read mails going there? More intuitive for me is not to create that mailbox and let the mail provider of its domain send a rejected mail to the user. Kind of a wake-up call.

Well, I don't dare answer the first question, it is for an expert.
нүд ирмэх
Visvanath Ratnaweera-н хариуд

Re: Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Pablo Britos -
Hi.

Thank you very much for your time. What you say makes sense to me, it helps the user to realise that they have to do it directly from the platform.

The first question is about the allowedemaildomins field in the non-reply and domain section. As I understand and according to the tests I have done, it allows the sender's email to appear when arrives messages either direct messages or from forums. My question on this point is: it is convenient to add all popular email domains?. I don't know if it can cause any problem, I don't have experience in this aspect.

Thanks, Pablo.
Pablo Britos-н хариуд

Re: Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Ken Task -
Particularly helpful Moodlers зураг

Your original posting asked about outgoing mail configuration ... so we understand that one ... so this is an extension ...

"it is convenient to add all popular email domains?"

Are we now talking allowed email domains?  Email addresses students are allowed to use?

Here's a query to run on you DB to find out what email addresses your teachers/student/participants have used in their profile:

from mysql client:

use moodle; (or whatever you called your DB for your Moodle)

select username,firstname,lastname,email from mdl_users;

How many email addresses do you see from gmail.com,etc.?

Many users actually have setup gmail.com, yahoo.com, or other addresses to get away from SPAM/Junk mail.  They might never check nor expect valid email sent to those addresses.   They might have used their real email address to get signed up for your moodle and then edited preferences and changed their email address.

Now if your Moodle is setup for a corp or multiple corps, then restricting email addresses to those corp addresses would make sense.

In K12, as an example, students have been given a user@student.schooladdress.whatever address ... yes, makes sense to restrict to the top level of that @schooladdress.whatever.

I understand it's hard to wrap one's mind around and you want a simple answer to what is really a complicated thing and unique to each servers setup/usage/etc..  All of this is configurable in Moodle ... so maybe you need to see for yourself! инээмсэглэл

'SoS', Ken


Pablo Britos-н хариуд

Re: Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Visvanath Ratnaweera -
Particularly helpful Moodlers зураг Translators зураг
Hi

You wrote:
> The first question is about the allowedemaildomins field in the non-reply and domain section. As I understand and according to the tests I have done, it allows the sender's email to appear when arrives messages either direct messages or from forums.

Correct. https://docs.moodle.org/en/Mail_configuration#Outgoing_mail_configuration says, "The setting 'Allowed email domains' (allowedemaildomains) allows you to enter domains allowed by your mail server so that forum post notification emails can be sent from users' real addresses."

> My question on this point is: it is convenient to add all popular email domains?

If you decided to send mail from the "noreply" address, then you don't need this.

> I don't know if it can cause any problem,

Yes, it will in the majority of cases. That is why the documentation says "domains allowed by your mail server". Do you think Google will like your Moodle server sending mail claiming that they come from a Gmail mailbox?

A place this works is within an institution, where all users have mail addresses from a known number of domains, say @example.com and @students.example.com, and the mail administrators of the institution gave the Moodle server permission to send mail on their behalf or even gave Moodle server access to their SMTP server to send mail. That is about the technical feasibility. It doesn't mean that it is always a sensible thing to do. See the answer to your second question in my previous post.

Pablo Britos-н хариуд

Re: Proper outgoing mail configuration (Moodle 3.9.4)

дэргэд Ken Task -
Particularly helpful Moodlers зураг

In a former life as an Email server admin for multiple entities, all I can say is 'Wow!'

What's the purpose of email coming from a moodle server?

There are forums ... we are participating in one discussion here, are we not?   Did you ever look at the header of a message coming from these forums?

Your message to the forum delivered to the address am using to get mail from this forum has this:

"Pablo Britos (via Moodle.org)" <noreply@moodle.org>

I can't directly communicate with you ... heck, you might not want me to! инээмсэглэл

As a teacher, I might want to get notifications of assignment submissions ... am not going to reply to those messages, am I?

Or, notifications of students who are in danger of dropping out of the class ... they aren't accessing/interacting/completing assignments, etc.

As the moodle server admin, do you get those 'nags' from your server?   Informing you that your version of Moodle is behind and the 'strong suggestion' that you keep up to date?

The noreply address ... if one attempts to use gmail.com (some folks thing Google collects too much info - and they do collect), hotmail.com, or yahoo.com users systems and whatever their mail protections are will probably tag that as spam ... not coming from the true server from which the message generated ... and not even deliver it to the spam folder ... but drop it on the floor - meaning it is obliterated, address is blocked from that time forward ... even if the intent was legit.

On your Moodle server, are you running a full blown mail server ... that can send as well as receive?

Does your moodle servers fully qualified domain name have in DNS the following records: MX, SPF, DKIM.

If you do setup a noreply inbox and your mail server doesn't have caps ... how large an inbox can get before it rejects any new messages, you could fill up all available free space on the device.   And if you have an all in one Moodle server - web for moodle, db for any applications ... your DB's will suffer - get corrupt - maybe even to the point of no recovery.

That noreply address has to be checked ... by a human?  Guess one could figure out a way to empty the inbox if it got too large, but then what was the point?

So ... my 2 cents: the noreply address goes to a non-existent user (noreply) @yourfullyqualifeddomainname of the moodle server.   That mail *never leaves* your server.

If you have a ton of outgoing mail, do use an SMTP relay.

Believe me when I say, you don't want to run a full blown mail server ... period.   That 'hat' and that 'hat' alone is a full time job ... time better spent developing content for the Moodle and interacting with students/particiants, me thinks.

Uhhh ... there is no 'best way' ... depends upon too many factors that one cannot really control beyond your Moodle server.

My 2 cents, of course ... you are certainly free to try/setup whatever you like!  One last piece of advice, whatever you setup, take notes, so if you discover a 'catch 22' - undesirable unintended consquence, you can reverse what you did and try something else! инээмсэглэл

'SoS', Ken