https://projects.duckcorp.org/https://projects.duckcorp.org/favicon.ico?16699090422022-03-15T23:54:58ZDuckCorp ProjectsDuckCorp Infrastructure - Bug #759: redmine instances don't send any notificationhttps://projects.duckcorp.org/issues/759?journal_id=24012022-03-15T23:54:58ZMarc Dequènesduck@duckcorp.org
<ul></ul><p>We could disable it per IP I think but I've never done that so we'll need to dig into rspamd's config. Another way would be a add a local relay that would handle the retries. Or it could even send outside by itself.</p> DuckCorp Infrastructure - Bug #759: redmine instances don't send any notificationhttps://projects.duckcorp.org/issues/759?journal_id=24382022-03-20T03:28:44ZPierre-Louis Bonicolipierre-louis.bonicoli@ir5.eu
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>50</i></li><li><strong>Security</strong> set to <i>No</i></li></ul><p>The following configuration works fine (within the controller <code>/etc/redmine/dc/configuration.yml</code> needs to be updated too):<br /><pre>
# cat /etc/rspamd/local.d/greylist.conf
whitelisted_ip = "10.0.7.2";
# systemctl restart rspamd.service
</pre></p>
<p>Should this configuration be added to ansible? Something like that would work:<br /><pre>
diff --git a/ansible/playbooks/tenants/duckcorp/web/projects.duckcorp.org.yml b/ansible/playbooks/tenants/duckcorp/web/projects.duckcorp.org.yml
index 79f76c3..e4b9c13 100644
--- a/ansible/playbooks/tenants/duckcorp/web/projects.duckcorp.org.yml
+++ b/ansible/playbooks/tenants/duckcorp/web/projects.duckcorp.org.yml
@@ -1,5 +1,15 @@
---
+- hosts: mx1_servers:&container_hosts
+ tasks:
+ copy:
+ dest: /etc/rspamd/local.d/greylist.conf
+ content: |-
+ whitelisted_ip = "{{ XXX }}";
+ owner: root
+ group: rspamd
+ mode: u=rw,g=r,o=
+
- hosts: Toushirou
</pre></p> DuckCorp Infrastructure - Bug #759: redmine instances don't send any notificationhttps://projects.duckcorp.org/issues/759?journal_id=24712022-06-22T02:12:49ZMarc Dequènesduck@duckcorp.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>Pierre-Louis Bonicoli</i></li></ul><p>Quack,</p>
<p>Sorry to reply late.</p>
<p>The configuration seems fine. This file is managed by Ansible already, see <em>ansible/roles/dc-rspamd/templates/local.d/greylist.conf</em> (although empty).</p>
<p>I updated the mail configuration and noticed the change being overwritten, so I adapted the rules to add the fix.</p>
<p>I'm not closing the ticket since the Redmine configuration also needs to be handled in Ansible (sorry no time for that right now). I assigned the ticket to you, I hope you don't mind.</p>