{"id":945,"date":"2019-11-14T11:32:56","date_gmt":"2019-11-13T22:32:56","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=945"},"modified":"2019-11-14T11:34:43","modified_gmt":"2019-11-13T22:34:43","slug":"using-google-smtp-with-archiva-in-synology","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=945","title":{"rendered":"Using Google SMTP with Archiva in Synology"},"content":{"rendered":"<h3>Pre-requisite<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.ronella.xyz\/?p=771\" target=\"_blank\" rel=\"noopener noreferrer\">Configured Archiva in Synology<\/a><\/li>\n<\/ul>\n<h3>Procedure<\/h3>\n<ol>\n<li>Open the <strong>archiva.xml<\/strong> file found in the following location:\n<pre style=\"white-space: pre;\">\/volume1\/@appstore\/Tomcat7\/src\/conf\/Catalina\/localhost<\/pre>\n<\/li>\n<li>Update the <strong>Resource<\/strong> entry with the name <strong>mail\/Session<\/strong> to become the following:\n<pre style=\"white-space: pre;\">&lt;Resource name=\"mail\/Session\" auth=\"Container\"\r\n      type=\"javax.mail.Session\"\r\n      mail.smtp.host=\"smtp.gmail.com\"\r\n          mail.smtp.port=\"587\"\r\n          mail.smtp.auth=\"true\"\r\n          mail.smtp.user=\"&lt;USERNAME&gt;\"\r\n          password=\"&lt;PASSWORD&gt;\"\r\n          mail.smtp.starttls.enable=\"true\"\r\n          mail.transport.protocol=\"smtp\"\/&gt;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><strong>Token<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>USERNAME<\/td>\n<td>Google Account<\/td>\n<\/tr>\n<tr>\n<td>PASSWORD<\/td>\n<td><a href=\"https:\/\/www.ronella.xyz\/?p=913\" target=\"_blank\" rel=\"noopener noreferrer\">Google App Password<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Save the updated file and wait for <strong>Archiva<\/strong> to restart.<br \/>\n<blockquote><p>If you've updated the archiva.xml file and save it, Tomcat will detect it and it will restart the Archiva application.<\/p><\/blockquote>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Pre-requisite Configured Archiva in Synology Procedure Open the archiva.xml file found in the following location: \/volume1\/@appstore\/Tomcat7\/src\/conf\/Catalina\/localhost Update the Resource entry with the name mail\/Session to become the following: &lt;Resource name=&#8221;mail\/Session&#8221; auth=&#8221;Container&#8221; type=&#8221;javax.mail.Session&#8221; mail.smtp.host=&#8221;smtp.gmail.com&#8221; mail.smtp.port=&#8221;587&#8243; mail.smtp.auth=&#8221;true&#8221; mail.smtp.user=&#8221;&lt;USERNAME&gt;&#8221; password=&#8221;&lt;PASSWORD&gt;&#8221; mail.smtp.starttls.enable=&#8221;true&#8221; mail.transport.protocol=&#8221;smtp&#8221;\/&gt; Token Description USERNAME Google Account PASSWORD Google App Password Save the updated file and wait for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[45,44,28],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/945"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=945"}],"version-history":[{"count":1,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/945\/revisions"}],"predecessor-version":[{"id":946,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/945\/revisions\/946"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}