multiple section_filters

Steve Meier smeier at webster.edu
Wed Jan 13 23:15:33 CET 2016


Can someone tell me if this is correct?  It seems like the first filter in
the section_filter list is being applied no matter what..

 

[webster.edu]

backend = filter

section_filter = o365, wumail

wumail = /root/getMailConfig.py "%u" | egrep "@\w+\.webster\.edu$"

o365 = /root/getMailConfig.py "%u" | egrep "@websteru\.onmicrosoft\.com$"

 

[wumail]

backend = script

script = /usr/bin/python /root/getMailConfig.py "%u"

result_attrs = wuserver

action = settings

 

sign_mobileconfig = yes

sign_cert = /etc/nginx/server.crt

sign_key = /etc/nginx/server.key

 

smtp = yes

smtp_server = smtp.webster.edu

smtp_port = 587

smtp_encryption = ssl

smtp_auth = plaintext

smtp_refresh_ttl = 6

smtp_default = yes

 

imap = yes

imap_server = ${wuserver}

imap_port = 995

imap_encryption = ssl

imap_auth = plaintext

imap_refresh_ttl = 6

 

pop = no

pop_server = ${wuserver}

pop_port = 993

pop_encryption = ssl

pop_auth = plaintext

pop_refresh_ttl = 6

 

 

[o365]

backend = file

action = settings

autodiscover = /usr/share/automx/o365.xml

 

 

I have checked my getMailConfig script and it is behaving properly..

 

[1149] root at testVM:/usr/share/automx# /root/getMailConfig.py "test4" | egrep
"@\w+\.webster\.edu$"

[1150] root at testVM:/usr/share/automx# /root/getMailConfig.py "test4" | egrep
"@websteru\.onmicrosoft\.com$"

test4 at websteru.onmicrosoft.com

[1151] root at testVM:/usr/share/automx# /root/getMailConfig.py "test3" | egrep
"@\w+\.webster\.edu$"

test3 at bailey.webster.edu

[1152] root at testVM:/usr/share/automx# /root/getMailConfig.py "test3" | egrep
"@websteru\.onmicrosoft\.com$"

 

When o365 is first in section_filter, it is applied for both test4 and
test3.  When wumail is first, it is being applied for both.

 

I am trying to follow information supplied here:

https://github.com/sys4/automx/blob/master/doc/txt/automx.conf.5.txt

https://github.com/sys4/automx/blob/master/src/conf/automx.conf.example-comp
lex

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.sys4.de/pipermail/automx-users/attachments/20160113/de750d43/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4827 bytes
Desc: not available
URL: <https://mail.sys4.de/pipermail/automx-users/attachments/20160113/de750d43/attachment-0001.p7s>


More information about the automx-users mailing list