[SUCS Devel] [Git][sucs/sucs][master] start the primary email server rile for silver

Imran Hussain imranh at sucs.org
Mon Feb 27 18:58:39 GMT 2017


Imran Hussain pushed to branch master at sucs / SUCS


Commits:
26304ec6 by Imran Hussain at 2017-02-27T18:58:14+00:00
start the primary email server rile for silver

- - - - -


1 changed file:

- + ansible/roles/primary-email-server/tasks/main.yml


Changes:

=====================================
ansible/roles/primary-email-server/tasks/main.yml
=====================================
--- /dev/null
+++ b/ansible/roles/primary-email-server/tasks/main.yml
@@ -0,0 +1,87 @@
+# dpkg-reconfigure exim4-config
+
+#### basic debconf stuff we can preset
+
+- name: configure exim to be a real boy... i mean male... mail server
+  debconf:
+    name: exim4-config
+    question: exim4/dc_eximconfig_configtype
+    value: internet site; mail is sent and received directly using SMTP
+    vtype: select
+  notify: dpkg reconfigure exim
+
+- name: configure exim to mbox or maildir (hint: maildir, fuk mbox)
+  debconf:
+    name: exim4-config
+    question: exim4/dc_localdelivery
+    value: Maildir format in home directory
+    vtype: select
+  notify: dpkg reconfigure exim
+
+- name: configure exim to be a carry... mail for people we like (ourselves)
+  debconf:
+    name: exim4-config
+    question: exim4/dc_relay_nets
+    value: 137.44.10.0/25; 137.44.6.5; 137.44.19.200; 137.44.19.37; 137.44.19.112
+    vtype: string
+  notify: dpkg reconfigure exim
+
+- name: configure exim to have some sort of identity
+  debconf:
+    name: exim4-config
+    question: exim4/mailname
+    value: sucs.org
+    vtype: string
+  notify: dpkg reconfigure exim
+
+- name: configure exim to be schizophrenic
+  debconf:
+    name: exim4-config
+    question: exim4/dc_other_hostnames
+    value: sucs.org; sucs.swan.ac.uk; silver.sucs.org; silver.sucs.swan.ac.uk; lists.sucs.org; lists.sucs.swan.ac.uk
+    vtype: string
+  notify: dpkg reconfigure exim
+
+- name: configure exim to be a good listener 
+  debconf:
+    name: exim4-config
+    question: exim4/dc_local_interfaces:
+    value: ::1;127.0.0.1;137.44.10.1;137.44.10.61
+    vtype: string
+  notify: dpkg reconfigure exim
+
+- name: configure exim to do dns up the wahzoo
+  debconf:
+    name: exim4-config
+    question: exim4/dc_minimaldns
+    value: false
+    vtype: select
+  notify: dpkg reconfigure exim
+
+- name: configure exim to send all the shit to admin@
+  debconf:
+    name: exim4-config
+    question: exim4/dc_postmaster
+    value: admin at sucs.org
+    vtype: string
+  notify: dpkg reconfigure exim
+
+- name: configure exim to throw config files all over the place
+  debconf:
+    name: exim4-config
+    question: exim4/use_split_config
+    value: true
+    vtype: select
+  notify: dpkg reconfigure exim
+
+#### install shit
+
+- name: install the latest version of exim and mail stuffs
+  package:
+    name: "{{ item }}"
+    state: latest
+  with_items:
+    - exim4-daemon-heavy #main exim
+    - spf-tools-perl #spf check at smtp runtime
+    - sasl2-bin #for auth
+    - spamassassin #nobody likes spam
\ No newline at end of file



View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/26304ec6c1e4c6e840df305fe0e23d62b5685715
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20170227/6caaaecd/attachment-0001.html>


More information about the Devel mailing list