New to list -- install instructions not current?

Håkon Alstadheim hakon at alstadheim.priv.no
Sun Jun 21 10:19:15 CEST 2020


Hi all, I'm new to the list and to automx2.

Trying to follow 
https://gitlab.com/automx/automx2/-/blob/master/doc/automx2.adoc , I get 
as far as

<code> contrib/flask.sh run </code> which I can not do, since there is 
no relevant contrib/flask.sh in my installation directory.

viz: # find ./ -name contrib
./venv/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib

I'm wondering if the installation istructions are out of sync with the 
rest of the git repo, or if some part of my system is failing.

I'm running on debian,  python3 --version  gives "Python 3.7.3".

Also,

Before I got that far, I managed to create /etc/automx2/automx2.conf:

[automx2]
# A typical production setup would use loglevel = WARNING
#loglevel = WARNING
loglevel = DEBUG

# Echo SQL commands into log? Used for debugging.
#db_echo = no
db_echo = yes

# SQLite database in a UNIX-like file system
db_uri = sqlite:////var/lib/automx2/db.sqlite

# Number of proxy servers between automx2 and the client (default: 0).
# If your logs only show 127.0.0.1 or ::1 as the source IP for incoming
# connections, proxy_count probably needs to be changed.
# proxy_count = 1  # <1>
---

and a sqlite table :


PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE provider (
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
short_name VARCHAR NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO provider VALUES(123,'Familien Alstadheim','Alstadheim');
CREATE TABLE server (
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
port INTEGER NOT NULL,
type VARCHAR NOT NULL,
socket_type VARCHAR NOT NULL,
user_name VARCHAR NOT NULL,
authentication VARCHAR NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO server 
VALUES(124,'imap.alstadheim.priv.no',993,'imap','SSL','%EMAILLOCALPART%','plain');
INSERT INTO server 
VALUES(125,'smtp.alstadheim.priv.no',587,'smtp','STARTTLS','%EMAILLOCALPART%','plain');
CREATE TABLE ldapserver (
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
port INTEGER NOT NULL,
use_ssl BOOLEAN NOT NULL,
search_base VARCHAR NOT NULL,
search_filter VARCHAR NOT NULL,
attr_uid VARCHAR NOT NULL,
attr_cn VARCHAR,
bind_password VARCHAR,
bind_user VARCHAR,
PRIMARY KEY (id),
CHECK (use_ssl IN (0, 1))
);
CREATE TABLE domain (
id INTEGER NOT NULL,
name VARCHAR NOT NULL,
provider_id INTEGER NOT NULL,
ldapserver_id INTEGER,
PRIMARY KEY (id),
UNIQUE (name),
FOREIGN KEY(provider_id) REFERENCES provider (id),
FOREIGN KEY(ldapserver_id) REFERENCES ldapserver (id)
);
INSERT INTO domain VALUES(127,'alstadheim.priv.no',123,NULL);
CREATE TABLE server_domain (
server_id INTEGER NOT NULL,
domain_id INTEGER NOT NULL,
PRIMARY KEY (server_id, domain_id),
FOREIGN KEY(server_id) REFERENCES server (id),
FOREIGN KEY(domain_id) REFERENCES domain (id)
);
INSERT INTO server_domain VALUES(124,127);
INSERT INTO server_domain VALUES(125,127);
CREATE TABLE alembic_version (
         version_num VARCHAR(32) NOT NULL,
         CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
);
COMMIT;

---




More information about the automx-users mailing list