changeset 42:af4632c42979

fix init conf to fix subscription emails
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 07 Jun 2021 09:52:13 +0300
parents f903ebdfa3b3
children 4d90d48a19ec
files conf/Init.luan
diffstat 1 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/conf/Init.luan	Sun Jan 31 15:35:37 2021 -0700
+++ b/conf/Init.luan	Mon Jun 07 09:52:13 2021 +0300
@@ -7,11 +7,11 @@
 local System = require "java:java.lang.System"
 local Logging = require "luan:logging/Logging.luan"
 local logger = Logging.logger "Init_default"
-
+local pairs = Luan.pairs or error()
 
 local Init = {}
 
-System.setProperty("mail.smtp.host", "127.0.0.1")
+System.setProperty("mail.smtp.host", "mail.smtp2go.com")
 System.setProperty("mail.mime.base64.ignoreerrors", "true")
 System.setProperty("mail.mime.address.strict", "false")
 System.setProperty("mail.mime.decodetext.strict", "false")
@@ -37,17 +37,24 @@
 
 Init.defaultHost = "me.nabble.com:8080"
 Init.domain = Init.defaultHost
---Init.mailDomain = Init.defaultHost
+Init.mailDomain = Init.defaultHost
 Init.nabbleHost = Init.defaultHost
+Init.mailDomain = "me.nabble.com"
 
---[=[
+local popMailServer = "pop.fastmail.com"
+
 local function getPop3Server(addr, pwd)
 	local server = MailHome.getPop3Server(popMailServer, addr, pwd)
 	server.useSsl()
 	return server
 end
 
-local pop3 = {}  -- fill in
+local pop3 = {
+	lists = 'mailingListArchivePop3Server'
+	fwd = 'fwdPop3Server'
+	ml = 'subscriptionsPop3Server'
+	sb = 'subscriptionBouncesPop3Server'
+}
 
 local pop3Servers = {
 	lists = 'mailingListArchivePop3Server'
@@ -55,10 +62,10 @@
 	ml = 'subscriptionsPop3Server'
 	sb = 'subscriptionBouncesPop3Server'
 }
+
 for name, password in pairs(pop3) do
 	Init[pop3Servers[name]] = getPop3Server( name.."@"..Init.mailDomain, password )
 end
-]=]
 
 --local HashSet = require "java:java.util.HashSet"
 --Init.sysadmins = HashSet.new {}  -- list of emails