-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Authentication Required" when trying to send a mail using Gmail #42
Comments
Check the fail 2 ban log ? 2019-10-19 15:45:35,096 fail2ban.filter [6770]: ERROR No failure-id group in 'sendmail.*authentication failure (-13) SASL(-13):' 2019-10-19 15:45:35,096 fail2ban.transmitter [6770]: WARNING Command ['set', 'smtp-auth', 'addfailregex', 'sendmail.*authentication failure \(-13\) SASL\(-13\):'] has failed. Received RegexException("No failure-id group in 'sendmail.*authentication failure \(-13\) SASL\(-13\):'",) 2019-10-19 15:45:35,096 fail2ban [6770]: ERROR NOK: ("No failure-id group in 'sendmail.*authentication failure \(-13\) SASL\(-13\):'",) 2019-10-19 15:45:35,096 fail2ban.filter [6770]: INFO encoding: UTF-8 2019-10-19 15:45:35,096 fail2ban.filter [6770]: INFO maxRetry: 3 2019-10-19 15:45:35,096 fail2ban.filter [6770]: INFO findtime: 43200 2019-10-19 15:45:35,096 fail2ban.actions [6770]: INFO banTime: 86400 Here my smtp-auth.conf file
|
I can see some errors because fail2ban couldn't send its emails:
Apart from that, the rest seems normal. I don't have a smtp-auth.conf file like you. |
it's possible share your smtp conf ? |
Do you mean the files in To be more precise, here are the files I modified:
Apart from these files, I didn't configure anything else in Exim4. |
Also, I configured UFW to allow traffic on port 465 as instructed in the tutorial. |
I'm sorry my bad. i am talk about fail2ban config to exim/sendmail.conf ? |
Haha, no problem :) Did you mean this file?
I think this is the default file. I didn't modify it myself. |
I also have this one (which is surely more relevant since I use exim).
|
Since it is possible that Google has blocked my server from authenticating (honestly I don't have other hypothesis at this point), I should probably setup my own SMTP server. Have you resources about doing this? Today I tried to reconfigure Exim to use it as a Send-only Mail Server following this tutorial : https://www.linode.com/docs/email/exim/deploy-exim-as-a-send-only-mail-server-on-ubuntu-12-04/ But it seems that Google still refuses my mail:
I am a bit desperate because, even when just sending a mail (not even using gmail's SMTP), it looks like my server is blocked. I just want my server to be able sending mails to my personal gmail address. Are there alternative solutions? |
I think On this situation you need set the hosts file right way. 127.0.1.1 test.example.com test xxx.xxx.xx.x test.example.com test ::1 localhost` I think write right way |
I ran into the same issue while setting up a new server. Btw: i'm using 2FA with an app-password |
Thank you for your suggestions, I will try them ASAP |
Hello all. Sorry I haven't replied. I'm caught up in the middle of some personal stuff and haven't had a chance to work on this. Hoping to get to it in the next few weeks! |
Check new method ;) simple way SSMTP ;)Check Pull Requests ;) Other thing about gmail. maybe you need Enable Less Secure APPs on google account!! |
I finally managed to make it work thanks to PR #44 and with 2FA. Thank you :) |
Hello,
First of all, I want to thank you for this amazing tutorial. I learned a lot thanks to it :)
I followed your instructions to setup Exim4 on a Raspberry Pi server so that it can send mails using a Gmail account I created for this purpose. It has been working well for a while.
But for some reason, it stopped working last week. Looking at
/var/log/exim4/mainlog
, I can see logs like this each time I try to send a mail:So it seems like an authentication error. I followed the Google Support link which is written in the logs but it didn't help. Here is what I tried:
/etc/exim4/passwd.client
/etc/exim4/passwd.client
At this point, I don't understand what is wrong. I don't think it comes from the way I configured the server since it has been working for a long time. Is it possible that Google decided to prevent my server from sending mails?
The text was updated successfully, but these errors were encountered: