From postfixer99 at gmail.com Sun Jun 7 13:04:40 2020
From: postfixer99 at gmail.com (Carsten)
Date: Sun, 7 Jun 2020 13:04:40 +0200
Subject: automx2 - no pop3 and no Outlook > 2016 ?
Message-ID: <363529d8-e5df-3341-3e3f-41aa1d16cf42@gmail.com>
Hello,
today, i spent hours getting automx2 running, but i still have 2 main
problems:
- How can i set options for POP3? This is really important for me and my
customers (because imap should not always be used).
- Outlook 2016 won't get configuration data as it expects .json Format:
(The requests seems to be redirected via a MS server (see ip-address ->
whois)
autoconfig.automx.org:443 52.125.138.0 - - [07/Jun/2020:12:29:47 +0200]
"GET
/autodiscover/autodiscover.json?Email=foobar%40mydomain.de&Protocol=ActiveSync&RedirectCount=1
HTTP/1.1" 404 5091 "-" "OutlookMobileCloudService-Autodetect/1.0.0"
Thanks in advance!
Carsten
From hakon at alstadheim.priv.no Sun Jun 21 10:19:15 2020
From: hakon at alstadheim.priv.no (=?UTF-8?Q?H=c3=a5kon_Alstadheim?=)
Date: Sun, 21 Jun 2020 10:19:15 +0200
Subject: New to list -- install instructions not current?
Message-ID: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
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
contrib/flask.sh run
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;
---
From automx2 at seichter.de Sun Jun 28 09:50:25 2020
From: automx2 at seichter.de (Ralph Seichter)
Date: Sun, 28 Jun 2020 09:50:25 +0200
Subject: New to list -- install instructions not current?
In-Reply-To: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
References: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
Message-ID: <87r1tzeiim.fsf@wedjat.horus-it.com>
* H?kon Alstadheim:
> I get as far as "contrib/flask.sh run" which I can not do, since there
> is no relevant contrib/flask.sh in my installation directory.
You are right. There is indeed a step missing in the documentation,
namely downloading the content of the "contrib" directory, which
contains utility scripts like flask.sh.
I have opened https://gitlab.com/automx/automx2/-/issues/18 .
-Ralph
From automx2 at seichter.de Sun Jun 28 10:03:28 2020
From: automx2 at seichter.de (Ralph Seichter)
Date: Sun, 28 Jun 2020 10:03:28 +0200
Subject: automx2 - no pop3 and no Outlook > 2016 ?
In-Reply-To: <363529d8-e5df-3341-3e3f-41aa1d16cf42@gmail.com>
References: <363529d8-e5df-3341-3e3f-41aa1d16cf42@gmail.com>
Message-ID: <87o8p3ehwv.fsf@wedjat.horus-it.com>
* Carsten:
> How can i set options for POP3?
POP3 is not currently supported. These days people tend to access their
email using multiple devices, and that is one of the reasons IMAP is far
more prevalent.
> Outlook 2016 won't get configuration data as it expects .json Format
The original version of Autodiscover uses XML, as documented by
Microsoft. I am not sure if Autodiscover version 2, which is also not
supported by automx2 at this time, can be deactivated in Outlook, so I
suggest you ask Microsoft support about it.
-Ralph
From me at junc.eu Sun Jun 28 12:59:19 2020
From: me at junc.eu (Benny Pedersen)
Date: Sun, 28 Jun 2020 12:59:19 +0200
Subject: New to list -- install instructions not current?
In-Reply-To: <87r1tzeiim.fsf@wedjat.horus-it.com>
References: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
<87r1tzeiim.fsf@wedjat.horus-it.com>
Message-ID: <0e364473c3ac56997fddc26407cc5fed@junc.eu>
Ralph Seichter skrev den 2020-06-28 09:50:
> * H?kon Alstadheim:
>
>> I get as far as "contrib/flask.sh run" which I can not do, since there
>> is no relevant contrib/flask.sh in my installation directory.
>
> You are right. There is indeed a step missing in the documentation,
> namely downloading the content of the "contrib" directory, which
> contains utility scripts like flask.sh.
>
> I have opened https://gitlab.com/automx/automx2/-/issues/18 .
in gentoo its not needed to use anything in contrib, only the sample to
setup apache or nginx
its currently not using venv, but it seems to work anyway :=)
i seek more info on integration of automx into postfixadmin hooks
From hakon at alstadheim.priv.no Sun Jun 28 14:12:18 2020
From: hakon at alstadheim.priv.no (=?UTF-8?Q?H=c3=a5kon_Alstadheim?=)
Date: Sun, 28 Jun 2020 14:12:18 +0200
Subject: New to list -- install instructions not current?
In-Reply-To: <87r1tzeiim.fsf@wedjat.horus-it.com>
References: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
<87r1tzeiim.fsf@wedjat.horus-it.com>
Message-ID:
Den 28.06.2020 09:50, skrev Ralph Seichter:
> * H?kon Alstadheim:
>
>> I get as far as "contrib/flask.sh run" which I can not do, since there
>> is no relevant contrib/flask.sh in my installation directory.
> You are right. There is indeed a step missing in the documentation,
> namely downloading the content of the "contrib" directory, which
> contains utility scripts like flask.sh.
>
> I have opened https://gitlab.com/automx/automx2/-/issues/18 .
>
> -Ralph
Much obliged. Runs nicely, have not pointed any users at it yet though.
/usr/bin/automx-test from the old automx gives output that looks
sensible to me,
better than the old automx at least.
For the record, here are some notes on my set-up (running on debian):
------------file /etc/init.d/automx2: ----
#! /bin/sh
### BEGIN INIT INFO
# Provides:????????? automx2
# Required-Start:
# Required-Stop:
# Default-Start:???? 2 3 4 5
# Default-Stop:????? 0 1 6
# Short-Description: email auto config automx2
# Description:?????? see
https://gitlab.com/automx/automx2/-/blob/master/doc/automx2.adoc
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON="/usr/local/sbin/automx2"
INTERPRETER="/var/wwwautomx2/venv/bin/python3"
HOME=~automx2
NAME="automx2"
DESC="automatic email client config"
USER="automx2"
PIDFILE="/var/run/automx2.pid"
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
set -e
case "$1" in
? start)
??????? status_of_proc $DAEMON $INTERPRETER >/dev/null && exit 0
??? log_daemon_msg "Starting $DESC" "$NAME"
??? start-stop-daemon --start --exec "$INTERPRETER" --startas "$DAEMON"
--chuid "$USER" --user "$USER" --chdir "$HOME" --background --no-close
--pidfile "$PIDFILE" --make-pidfile < /dev/null > "/var/log/automx2.log"
2>&1
??? log_end_msg $?
??? ;;
? stop)
??? log_daemon_msg "Stopping $DESC" "$NAME"
??? start-stop-daemon --stop --oknodo --exec "$INTERPRETER" --startas
"$DAEMON" --user "$USER"? --pidfile "$PIDFILE" --remove-pidfile
??? log_end_msg $?
??? ;;
? restart|force-reload)
??? $0 stop
??? sleep 1
??? $0 start
??? ;;
? status)
??? status_of_proc $DAEMON $INTERPRETER
??? ;;
? *)
??? echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
??? exit 1
??? ;;
esac
exit 0
--- /usr/local/sbin/automx2 ends ---
# grep automx2 /etc/passwd
automx2:x:1026:1026::/var/wwwautomx2:/bin/bash
From hakon at alstadheim.priv.no Sun Jun 28 14:18:15 2020
From: hakon at alstadheim.priv.no (=?UTF-8?Q?H=c3=a5kon_Alstadheim?=)
Date: Sun, 28 Jun 2020 14:18:15 +0200
Subject: New to list -- install instructions not current?
In-Reply-To: <0e364473c3ac56997fddc26407cc5fed@junc.eu>
References: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
<87r1tzeiim.fsf@wedjat.horus-it.com>
<0e364473c3ac56997fddc26407cc5fed@junc.eu>
Message-ID: <3bcf1df3-8525-050e-963a-95aa2e6e162e@alstadheim.priv.no>
Den 28.06.2020 12:59, skrev Benny Pedersen:
> Ralph Seichter skrev den 2020-06-28 09:50:
>> * H?kon Alstadheim:
>>
>>> I get as far as "contrib/flask.sh run" which I can not do, since there
>>> is no relevant contrib/flask.sh in my installation directory.
>>
>> You are right. There is indeed a step missing in the documentation,
>> namely downloading the content of the "contrib" directory, which
>> contains utility scripts like flask.sh.
>>
>> I have opened https://gitlab.com/automx/automx2/-/issues/18 .
>
> in gentoo its not needed to use anything in contrib, only the sample
> to setup apache or nginx
>
> its currently not using venv, but it seems to work anyway :=)
>
> i seek more info on integration of automx into postfixadmin hooks
Well, for someone who has no idea what "pip" (or was it pep?) is, and
would rather not have to know, the contrib way was no hassle, and It is
now running (via venv, with its own non-privileged user) .
From automx2 at seichter.de Sun Jun 28 15:05:38 2020
From: automx2 at seichter.de (Ralph Seichter)
Date: Sun, 28 Jun 2020 15:05:38 +0200
Subject: New to list -- install instructions not current?
In-Reply-To:
References: <74ddab12-ec97-b023-c2af-99095bf9443b@alstadheim.priv.no>
<87r1tzeiim.fsf@wedjat.horus-it.com>
Message-ID: <87pn9j1gt9.fsf@wedjat.horus-it.com>
* H?kon Alstadheim:
> /usr/bin/automx-test from the old automx gives output that looks
> sensible to me, better than the old automx at least.
You may also be interested in https://gitlab.com/automx/automx2-discover
> For the record, here are some notes on my set-up (running on debian)
Thanks. While I have written the Gentoo Linux package myself, I have
little influence on other distributions. Still, I submitted a Debian
RFP; let's see if anybody picks it up. I have also notified the Arch
Linux folks about the new relase.
-Ralph