Canvas LMS sending emails with Postfix

235 views
Skip to first unread message

Aitor Alvarez

unread,
Feb 1, 2017, 7:39:24 PM2/1/17
to Canvas LMS Users
I am trying to set up Postfix with Canvas LMS and emails don't seem to be going out. I tried Postfix on its own and it sends emails correctly.

My outgoing_mail.yml has the following parameters:

production:

  address: "localhost"

  port: "25"

  domain: "web.com"

  outgoing_address: "mye...@web.com"

  default_name: "Canvas CTI"

  delivery_method: "sendmail"


In my log file in /var/log/maillog nothing gets recorded from Canvas, only the emails that I sent as test from the command line, which makes me believe that there must be a component in Canvas that doesn't connect correctly with Postfix. 
If I go to the web interface, under /jobs I see all the notifications being delayed, with attempts 0/15. If I go to Canvas log file it is almost empty. How can I get more info from Canvas so I can debug this?

Any help would be much appreciated.

Thanks

Graham Ballantyne

unread,
Feb 1, 2017, 7:41:07 PM2/1/17
to canvas-l...@googlegroups.com
Is the delayed jobs processor running? "Attempts 0/15" would indicate that it might not be. What does `ps -ef | grep delay` return?
--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

Aitor Alvarez

unread,
Feb 1, 2017, 8:04:05 PM2/1/17
to canvas-l...@googlegroups.com
I get the following:

sysadmin 19802  9056  0 14:57 pts/0    00:00:00 grep delay

To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

Graham Ballantyne

unread,
Feb 1, 2017, 8:06:16 PM2/1/17
to canvas-l...@googlegroups.com
So, looks like it isn't running, then. Which guide did you follow when you were setting up Canvas, Quick Start, or Production Start?

----- On 1 Feb, 2017, at 17:04, Aitor Alvarez <aitora...@gmail.com> wrote:
I get the following:

sysadmin 19802  9056  0 14:57 pts/0    00:00:00 grep delay

On Wed, Feb 1, 2017 at 2:41 PM, Graham Ballantyne <gra...@sfu.ca> wrote:
Is the delayed jobs processor running? "Attempts 0/15" would indicate that it might not be. What does `ps -ef | grep delay` return?

----- On 1 Feb, 2017, at 16:39, Aitor Alvarez <aitora...@gmail.com> wrote:
I am trying to set up Postfix with Canvas LMS and emails don't seem to be going out. I tried Postfix on its own and it sends emails correctly.
My outgoing_mail.yml has the following parameters:

production:

  address: "localhost"

  port: "25"

  domain: "web.com"

  outgoing_address: "mye...@web.com"

  default_name: "Canvas CTI"

  delivery_method: "sendmail"


In my log file in /var/log/maillog nothing gets recorded from Canvas, only the emails that I sent as test from the command line, which makes me believe that there must be a component in Canvas that doesn't connect correctly with Postfix. 
If I go to the web interface, under /jobs I see all the notifications being delayed, with attempts 0/15. If I go to Canvas log file it is almost empty. How can I get more info from Canvas so I can debug this?

Any help would be much appreciated.

Thanks

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Aitor Alvarez

unread,
Feb 1, 2017, 8:11:54 PM2/1/17
to canvas-l...@googlegroups.com
Production start. The emails were working for a while, but since I was using gmail as a relay and there were a lot of emails going out, I thought Google blacklisted my ip, that's why I was trying Postfix. How can I restart the delayed jobs processor?

On Wed, Feb 1, 2017 at 3:06 PM, Graham Ballantyne <gra...@sfu.ca> wrote:
So, looks like it isn't running, then. Which guide did you follow when you were setting up Canvas, Quick Start, or Production Start?

----- On 1 Feb, 2017, at 17:04, Aitor Alvarez <aitora...@gmail.com> wrote:
I get the following:

sysadmin 19802  9056  0 14:57 pts/0    00:00:00 grep delay

On Wed, Feb 1, 2017 at 2:41 PM, Graham Ballantyne <gra...@sfu.ca> wrote:
Is the delayed jobs processor running? "Attempts 0/15" would indicate that it might not be. What does `ps -ef | grep delay` return?

----- On 1 Feb, 2017, at 16:39, Aitor Alvarez <aitora...@gmail.com> wrote:
I am trying to set up Postfix with Canvas LMS and emails don't seem to be going out. I tried Postfix on its own and it sends emails correctly.
My outgoing_mail.yml has the following parameters:

production:

  address: "localhost"

  port: "25"

  domain: "web.com"

  outgoing_address: "mye...@web.com"

  default_name: "Canvas CTI"

  delivery_method: "sendmail"


In my log file in /var/log/maillog nothing gets recorded from Canvas, only the emails that I sent as test from the command line, which makes me believe that there must be a component in Canvas that doesn't connect correctly with Postfix. 
If I go to the web interface, under /jobs I see all the notifications being delayed, with attempts 0/15. If I go to Canvas log file it is almost empty. How can I get more info from Canvas so I can debug this?

Any help would be much appreciated.

Thanks

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-users+unsubscribe@googlegroups.com.

Graham Ballantyne

unread,
Feb 2, 2017, 1:27:24 PM2/2/17
to canvas-l...@googlegroups.com
You can start it up again same way you started it the first time, by running the canvas_init script. https://github.com/instructure/canvas-lms/wiki/Production-Start#automated-jobs
I get the following:

To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

German Acevedo

unread,
Feb 22, 2017, 1:24:13 AM2/22/17
to Canvas LMS Users
I had the same problem, what I did was:
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/canvas_init stop
sudo /etc/init.d/canvas_init start
sudo /etc/init.d/canvas_init restart

To check if delayed jobs are runing:
sudo /etc/init.d/canvas_init status

You should see something like this:
german@server2:/var/canvas/config$ sudo /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
german@server2:/var/canvas/config$
german@server2:/var/canvas/config$ sudo /etc/init.d/canvas_init restart
Stopping pool 26182...
Daemonizing...
german@server2:/var/canvas/config$ sudo /etc/init.d/canvas_init status
Delayed jobs running, pool PID: 28911
german@server2:/var/canvas/config$




In the outgoing_mail.yml file I used the following values:


production:
  delivery_method: "sendmail"
  address: "localhost"
  port: "25"
  domain: "mycanvasdomain.com"
  outgoing_address: "nor...@mycanvasdomain.com"
  default_name: "VidaReal Canvas"

Hope this help you
German
I get the following:

To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Graham Ballantyne
IT Services
Simon Fraser University

--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/eC89EfLr-mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages