Need help to reconfigure Koha Mail with Gmail
Dear Koha Community Our koha mail system is set up to use a gmail account to process outbound email, using the "less secure apps" option in the gmail account. This has stopped working for us (and I'm sure for many others) now that Google have disabled this feature. I am looking for specific advice on how to reconfigure Koha so it continues to work with gmail (setting up an "app password" perhaps?). I have seen a little discussion about this on the list but no real guidance. Can anyone help please? We are running Koha 19.11.22 (installed from packages) on Debian and we're using postfix 3.1.15 as our mail transport agent. Thanks! Chris Brown (Greenhill Community Library in the UK)
Hi! On Mon, Jun 20, 2022 at 06:40:58PM +0100, Chris Brown wrote:
Our koha mail system is set up to use a gmail account to process outbound email, using the "less secure apps" option in the gmail account. This has stopped working for us (and I'm sure for many others) now that Google have disabled this feature. I am looking for specific advice on how to reconfigure Koha so it continues to work with gmail (setting up an "app password" perhaps?). I have seen a little discussion about this on the list but no real guidance. Can anyone help please?
This is not related to Koha, and cannot be fixed in Koha, but needs to be fixed on your SMTP connection (in postfix) I did a blog post (in a different context) on how to set up a google "app password": To get such an app password, you first have to secure your account with Two Factor Authentication (2FA) (if you haven't already done that): Go to https://myaccount.google.com Find "2-Step Verification" under the Security headline Go through the process. I use the "Google Authenticator" app on my mobile phone After you've set this up, you'll find the new option "App passwords" under "Security" / "Signing into Google" Select an app ("Mail") and give it a custom name (eg "offlineimap"), click on "generate" and copy the password (you'll never see it again!) The full blog post is here: https://domm.plix.at/perl/2022_05_use_multiple_gmail_accounts_via_mutt_and_o... Then you will need to figure out how make postfix use that new password. A little bit of googling found this: https://www.linode.com/docs/guides/configure-postfix-to-send-mail-using-gmai... Which also goes through the process of setting up an app password. Greetings, domm -- #!/usr/bin/perl https://domm.plix.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Thank you Thomas, the linode guide you supplied a link to is exactly what I need. I'll take a look at this tomorrow when I'm feeling more awake. Chris Brown On Mon, Jun 20, 2022 at 7:27 PM Thomas Klausner <domm@plix.at> wrote:
Hi!
On Mon, Jun 20, 2022 at 06:40:58PM +0100, Chris Brown wrote:
Our koha mail system is set up to use a gmail account to process outbound email, using the "less secure apps" option in the gmail account. This has stopped working for us (and I'm sure for many others) now that Google have disabled this feature. I am looking for specific advice on how to reconfigure Koha so it continues to work with gmail (setting up an "app password" perhaps?). I have seen a little discussion about this on the list but no real guidance. Can anyone help please?
This is not related to Koha, and cannot be fixed in Koha, but needs to be fixed on your SMTP connection (in postfix)
I did a blog post (in a different context) on how to set up a google "app password":
To get such an app password, you first have to secure your account with Two Factor Authentication (2FA) (if you haven't already done that):
Go to https://myaccount.google.com Find "2-Step Verification" under the Security headline Go through the process. I use the "Google Authenticator" app on my mobile phone After you've set this up, you'll find the new option "App passwords" under "Security" / "Signing into Google" Select an app ("Mail") and give it a custom name (eg "offlineimap"), click on "generate" and copy the password (you'll never see it again!)
The full blog post is here: https://domm.plix.at/perl/2022_05_use_multiple_gmail_accounts_via_mutt_and_o...
Then you will need to figure out how make postfix use that new password.
A little bit of googling found this:
https://www.linode.com/docs/guides/configure-postfix-to-send-mail-using-gmai...
Which also goes through the process of setting up an app password.
Greetings, domm
-- #!/usr/bin/perl https://domm.plix.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/} _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Chris. I've used these instructions when testing bugs in Koha (using the koha-testing-docker development environment), so not a production system: https://gitlab.com/-/snippets/1893788#user-content-enabling-email-for-testin... I haven't tested these in a while, as there is now an easier way for testing email in more recent versions of Koha. David Nind
Just to let y'all know that our Koha is now happily sending mail via gmail again. Thanks again to Thomas for the pointers on how to get postfix to authenticate using a Google "App Password". Chris Brown On Mon, Jun 20, 2022 at 7:27 PM Thomas Klausner <domm@plix.at> wrote:
Hi!
On Mon, Jun 20, 2022 at 06:40:58PM +0100, Chris Brown wrote:
Our koha mail system is set up to use a gmail account to process outbound email, using the "less secure apps" option in the gmail account. This has stopped working for us (and I'm sure for many others) now that Google have disabled this feature. I am looking for specific advice on how to reconfigure Koha so it continues to work with gmail (setting up an "app password" perhaps?). I have seen a little discussion about this on the list but no real guidance. Can anyone help please?
This is not related to Koha, and cannot be fixed in Koha, but needs to be fixed on your SMTP connection (in postfix)
I did a blog post (in a different context) on how to set up a google "app password":
To get such an app password, you first have to secure your account with Two Factor Authentication (2FA) (if you haven't already done that):
Go to https://myaccount.google.com Find "2-Step Verification" under the Security headline Go through the process. I use the "Google Authenticator" app on my mobile phone After you've set this up, you'll find the new option "App passwords" under "Security" / "Signing into Google" Select an app ("Mail") and give it a custom name (eg "offlineimap"), click on "generate" and copy the password (you'll never see it again!)
The full blog post is here: https://domm.plix.at/perl/2022_05_use_multiple_gmail_accounts_via_mutt_and_o...
Then you will need to figure out how make postfix use that new password.
A little bit of googling found this:
https://www.linode.com/docs/guides/configure-postfix-to-send-mail-using-gmai...
Which also goes through the process of setting up an app password.
Greetings, domm
-- #!/usr/bin/perl https://domm.plix.at for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/} _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Brown -
David Nind -
Thomas Klausner