/usr/share/doc/automx/examples/automx.conf.example-complex is in automx 0.10.0-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | [automx]
provider = example.com
; debug = yes
# We care about any domain that we get a query for
domains = *
[DEFAULT]
action = settings
account_type = email
account_name = Foobar - ${cn}
account_name_short = Whatever you like
display_name = ${givenName} ${sn}
smtp = yes
smtp_server = mail.example.com
smtp_port = 587
smtp_encryption = starttls
smtp_auth = plaintext
smtp_auth_identity = ${deliverToAddress}
smtp_default = yes
imap = yes
imap_server = mail.example.com
imap_port = 143
imap_encryption = starttls
imap_auth = plaintext
imap_auth_identity = ${deliverToAddress}
pop = yes
pop_server = mail.example.com
pop_port = 110
pop_encryption = starttls
pop_auth = plaintext
pop_auth_identity = ${deliverToAddress}
host = ldap://primary.example.com, ldap://fallback1.example.com
base = ou=mail,ou=it,dc=example,dc=com
result_attrs = deliverToAddress, cn, givenName, sn
scope = sub
filter = (&(objectClass=*)(recipientAddress=%s))
bindmethod = sasl
saslmech = EXTERNAL
usetls = yes
reqcert = demand
cert = /etc/ssl/certs/yourservercert.pem
key = /etc/ssl/private/yourserverkey.pem
cacert = /etc/ssl/certs/yourca.pem
[global]
backend = ldap
[lululala.net]
backend = file
autodiscover = /var/www/automx/templates/autoconfig.xml
# More options are merged from global! And see, we do not provide a static
# XML file for the autoconfig service (in this example).
[foobar.org]
backend = filter
section_filter = filter.foobar.org
# You may nearly specify any command here. Even ssh remote command invocation
# was tested by the author. It works, as long as you get an emailaddress back.
filter.foobar.org = /bin/echo "%s"
[filter.foobar.org]
backend = sql
action = settings
# Just a sqlite3 example here!
host = sqlite:///var/www/yoursqlite3.db
query = SELECT displayname, mailaddr FROM mail WHERE mailaddr='%s';
result_attrs = displayname, mailaddr
display_name = ${displayname}
smtp = yes
smtp_server = mail.somewhere.org
smtp_port = 587
smtp_encryption = starttls
smtp_auth = plaintext
smtp_auth_identity = ${mailaddr}
smtp_default = yes
imap = yes
imap_server = mail.somewhere.org
imap_port = 143
imap_encryption = starttls
imap_auth = plaintext
imap_auth_identity = ${mailaddr}
pop = no
|