serversideup / ansible-postal Goto Github PK
View Code? Open in Web Editor NEW⚡️ Deploy a secure Postal server in under 6 minutes using Ansible.
License: MIT License
⚡️ Deploy a secure Postal server in under 6 minutes using Ansible.
License: MIT License
Hi @jaydrogers,
Thanks so much for making this available.
If you change the SSH port in group_vars/all
then running the playbook fails at:
TASK [common : Enable UFW firewall]
with the following:
fatal: [send1.example.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host send1.example.com port 22: Operation timed out", "unreachable": true}
I have never been able to figure out how to switch the SSH port successfully within a single playbook, so my own server setup is split into two playbooks. One is all the stuff that needs to happen before the port switch and the other is all the stuff that happens afterward. In that second playbook, I have:
vars:
- ansible_port : "{{ ssh_port }}"
The playbook is failing for me on the Obtain Let's Encrypt Certificate task. It mentions a timeout and it is likely a firewall issue to reference /opt/postal/.acme.sh/acme.sh.log for more info. See below link with my output of that log. I thought maybe it had to do with Port 80 not being open on Vultr but I added a Port 80 allow rule to my firewall on Vultr for the VM and still no dice. So for some reason, LE can't seem to verify for the cert because it can't access the verification file on the VM via port 80. This is my guess, but open to any input and how this can be fixed.
Hi,
I have tested the recipe and works great, would like to have the option to add custom SSL's.
Hi @jaydrogers
Have you upgraded postal for a server deployed via this playbook? Do you use the standard postal-autoupgrade
?
Hi again @jaydrogers,
i was just doing some performance tuning on my postal server in preparation for doing a relatively large-ish mass newsletter mailing (~32K mails). It worked surprisingly well.
In the course of tweaking the settings for the server, i discovered that the mysql config that ansible-postal places at /etc/mysql/mariadb.conf.d/postal.cnf
seems to be non-functional.
by default It's trying to configure the innodb_buffer_pool_size
to be 256M, but on my running system, that value was 128M (determined by querying that variable in mysql). I also tried putting some other values into /etc/mysql/mariadb.conf.d/postal.cnf
and they were ignored on restart of mariadb.
in order to make the changes i was trying to make, i had to edit /etc/mysql/my.cnf
.
the server was a fresh install of 18.04 with no modifications made to mariadb / mysql other than running the ansible-postal playbook.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.