This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name autoconfig.example.de autodiscover.example.de; | |
| listen 443 ssl; | |
| listen [::]:443 ssl; | |
| location /initdb { | |
| allow 127.0.0.1; | |
| deny all; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mv automx2.service /etc/systemd/system/automx2.service | |
| systemctl enable /etc/systemd/system/automx2.service | |
| systemctl start automx2.service | |
| systemctl status automx2.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| After=network.target | |
| Description=MUA configuration service | |
| Documentation=https://rseichter.github.io/automx2/ | |
| [Service] | |
| WorkingDirectory=/home/automx2 | |
| Environment=FLASK_APP=automx2.server:app | |
| Environment=FLASK_CONFIG=production | |
| ExecStart=/usr/bin/python3 -m flask run --host=127.0.0.1 --port=4243 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clear database # | |
| DELETE FROM provider; | |
| DELETE FROM server; | |
| DELETE FROM domain; | |
| DELETE FROM server_domain; | |
| # define a provider # | |
| INSERT INTO provider VALUES(100, "long_name_example.com", "short_name"); | |
| # define servers (imap + stmp) # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl 'http://127.0.0.1:4243/mail/config-v1.1.xml?emailaddress=user@example.com' \ | |
| 2>/dev/null | xmllint --format - | |
| --- | |
| <?xml version="1.0"?> | |
| <clientConfig version="1.1"> | |
| <emailProvider id="automx2-1000"> | |
| <identity/> | |
| <domain>example.com</domain> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FLASK_APP=automx2.server:app python -m flask run --host=127.0.0.1 --port 4243 | |
| # --- different console --- # | |
| curl http://localhost:4243/initdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [automx2] | |
| loglevel = DEBUG # or WARNING | |
| db_echo = no | |
| db_uri = sqlite:////home/automx2/automxdb.sqlite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| su automx2 | |
| cd /home/automx2/ | |
| wget https://github.com/rseichter/automx2/raw/master/contrib/setupvenv.sh | |
| chmod u+x setupvenv.sh | |
| ./setupvenv.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install flask automx2 | |
| sudo apt install python3-venv | |
| sudo adduser --create-home automx2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo useradd --create-home automx2 |