Canvas not sending mails. Doubts regarding outgoing_mail.yml - email

I've recently installed Canvas LMS on a cloud server. Everything was ok, except for outgoing mails. I'm really new at this, and I don't know how it works. I would appreciate very much if someone could help me with some doubts...
1- What is correct?
a) address: smtp.gmail.com
b) address: "smtp.gmail.com"
Which data should be quoted in outgoing_mail.yml?
2- I've tried filling the fields with my personal gmail address info, but I receive a warning mail about suspicious activities. That means that Canvas actually tries to connect to my gmail account. That's a good sign! But even when I tell to gmail that I recognize this activity, it won't let me continue...
When I enter the Yahoo's smtp information, nothing happens... not even a warning mail...
3- I wanna know if I have to run "canvas_init restart" everytime I edit that configuration file. And "/etc/init.d/apache2 restart"?
I really need your help!! Many thanks in advance!!!

Related

Outlook Not Receiving Emails Sent From Django Website

My Django website has several forms which users fill out and when they submit them an e-mail is sent to my email address. This works when I use my Hotmail address as the receiving address, but not when I use my Outlook email address (the address I'd like to use). I also tried another Outlook address and it worked. So it's just my Outlook that's not receiving them. The Outlook address is also the sending address.
I have no idea why my Outlook address won't receive e-mails from my website, yet it receives e-mails sent from other sources. It displays no error messages so I really have nothing to go off. I have Googled a lot but can't find exactly what I'm looking for.
I know my question is vague, but I'm hoping someone can at least point me in the right direction or give me something to look into, because there are no error messages or anything for me to go off. I have also been through the settings in Outlook and can't find anything that would be blocking it.
PS I didn't include any code as I really don't know how it would help, though I can if you think it would be useful.
Thank you.
Have you checked your SPAM/JUNK folder. This might be possible that emails are getting delivered to your SPAM folder instead of INBOX.
Check your Firewall Settings might be your Firewall is creating the problem.
Check out some possible fixes mentioned here: https://www.tipsoverflow.com/why-outlook-not-receiving-mails-but-can-send-fixed/

Make new gmail email not be grabbed by pop3

This seems like a fairly obvious thing but I can't figure out how to do it and am hoping one of your geniuses can help me out!
We have a Gmail email account and then a ticket system that checks that account and sends an auto-reply to the sender saying that the email was received. This is checked via POP3 but can also be done via IMAP if necessary.
What I want is this: For certain messages, I'd like to file them immediately in Gmail and have them go to a special folder and have them NOT be checked by the ticket system. That's all.
I tried creating a filter in Gmail to move them, skip the inbox, mark as read, all of that. They still get picked up by the ticket system.
I thought POP3 only checked the INBOX on any server, so I expected that if I skipped the inbox then it would not be accessible. This doesn't seem to be the case.
Please let me know if there are any tricks I can do.
Thank you so much!
Ben
The problem that you are running into is that when connecting to GMail via POP3, you are actually accessing the "All Mails" folder and not the Inbox, so filtering the messages does not remove them from the list presented to your client via POP3.
Switching to IMAP should solve this problem, however, since you'd be able to open whatever folder you wanted.

Script Sending mails with Gmail: Failed to authenticate on SMTP server

I am having some hard time getting my PHP script to send emails with a SMTP Gmail account. I am using PHP and Symfony2 SwiftMailer, but it seems that the problem lies with my Gmail account configuration. In my logs, I end up with the following error message:
"ERROR - Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "new.user.name#gmail.com" using 1 possible authenticators"
Luckily, I had another Gmail account working with another application, seemlessly. Rescuing these parameters (user and password) on my new box, eveything works just fine.
in parameters.yml I have (working fine):
parameters:
mailer_transport: gmail
mailer_host: ~
mailer_user: old.user.account#gmail.com
mailer_password: old-password
And here is the version giving auth error message:
parameters:
mailer_transport: gmail
mailer_host: ~
mailer_user: new.user.account#gmail.com
mailer_password: new-password
Needless to say I have checked, rechecked and checked yet again user and password.
I reviewed my Gmail account settings under "Forwarding and POP/IMAP" in my new account: I could find nothing about SMTP.
Searches made me aware some captcha policy may interfere with SMTP accounts. I read here that I should try to enter a captcha phrase, which I do here, and get the nice message:"Account access enabled", "Please try signing in to your Google account again from your new device or application."
Trying again. No luck.
All this is happening from my local dev environment (both OK mails, and NOT OK mails).
How I could get to use SMTP with a newly created Gmail Account ? Any idea ?
Actually, double-checking my inbox, I saw I received a mail from Google explaining someone was trying to enter my account. There, I found a link to the configuration parameter I was looking for:
https://www.google.com/settings/security/lesssecureapps
==> I just had to check: "Make my account less secure.", and was able to get mails sent.
In the mean time, I have found that Gmail SMTP service is getting pretty unrelyable and introduces captcha every now and again (here). I seems there is not much you can do about it. On the other hand, I read stronger passwords seem to help in some cases (here).
I must also say that with a newly created account, I was not able to get this working. Even unchecking the "make my account overly secure" option. It really looks like Gmail is phasing out its SMTP service.
UPDATE
I wanted to mention that there are some excellent and free (or very, very cheap for high volumes) alternatives for sending emails. For example, you could check Mandrill, SendGrid or Amazon SES, among others.
Using the link https://www.google.com/settings/security/lesssecureapps gave me the message: this setting is disabled by your administrator.
I had to go to admin.google.com and login with the same account details and look for the same setting there. Full url was https://admin.google.com/AdminHome#ServiceSettings/notab=1&service=securitysetting&subtab=lesssecureappsaccess
Then the first link worked, so also there I enabled less secure apps. Now I was able to use Gmails SMTP.
Maybe this helps someone: I had the same encounter with gmail, but in my case, when I logged into the gmail account that I configured in my code as SMTP mail sender user, I was greeted by a warning message saying that somebody tried to use my user and pass and that attempt was blocked (hence my error message). It asked me to confirm if that was me or not, so after I clicked the 'That was me' button and tried my code again all worked fine.
Making my account less secure helped me https://myaccount.google.com/lesssecureapps

Cpanel: How to check if the email function is activated - contact forms from users don't get sent to my email

I have a website with a contact form.
For some reason the emails aren't getting sent to me, and the code should be fine.
My guess is that the mailing function from Cpanel is disabled.
How can I check if it is active/disabled?
The other option is that the server isn't giving the permition to do it. I really don't know what can be the problem. Can someone help me to solve this one out?
Thanks!
The host must have disabled nodody user mailing capabilities. In that case its better you change your code for sending emails via SMTP authentication method.

Website is not sending emails to email add on MS Exhange

Having problems with setting up my website to use MS Exchange to send emails. I dont want to use the hosts email system.
The MS Exhange has been set up, with email addresses created.
My webpages are using Persits.MailSender which the host supports.
Do i need to change MX records? A records?
Sorry, im not clued up with network side of things, any help would be appreciated
When i email direct, the email address on the exchange picks up the emails. BUT if i email through the website, it goes to the annoying webmail the host is provinding, and not to the exchange
I find this strange, the same email address receiving emails at different places!
Im using ASP, and I have a website set up, which has been sending emails for the last 12 months, the host has messed up (again) somewhere, but doesnt know what is wrong (as usual)
There are no errors, the email always gets sent.... but to the wrong place.
I would look into actually trapping and knowing your errors. That way you can see precisely why it fails and have something to work with. As it stands, your question isn't really answerable. No language nor framework is provided. We don't know if the mail server is confirmed to be working or accessible outside your netowrk; we don't know how your are referencing it or if you are passing user credentials; we don't know what error you're getting...
At this point, you're not debugging, you're just sort of swinging in the dark. Find the point of failure and then research that data point to get a solution. Debug, catch errors, log, step through your code. All good ideas.
Ok i figured it out, I deleted the mail domain on the host as that was the first place the website looks to send an email. Once the mail domain was deleted the emails were sent to the external hosted mailserver MS Exchange email address. Yay!