problem - automx with filter
Gabriele Schaarschmidt
schaarschmidt at zdv.uni-tuebingen.de
Wed Apr 4 11:12:54 CEST 2012
Hi,
many thanks for your suggestion.
I have tried it with several combinations of using %u, %s or ${username},
but unfortunately without success until now.
Attached is the actual automx.conf.
In the eroor_log of apache2 I see:
----------------
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] debug, request
GET: QUERY_STRING={'emailaddress':
['gabriele.schaarschmidt at uni-tuebingen.de']}
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] debug, response:
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] <?xml
version='1.0' encoding='utf-8'?>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] <clientConfig
version="1.1">
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18]
<emailProvider id="uni-tuebingen.de">
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18]
<domain>uni-tuebingen.de</domain>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] <displayName/>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] <displayShortName/>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] </emailProvider>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18] </clientConfig>
[Wed Apr 04 11:10:35 2012] [error] [client 134.2.3.18]
------------------
After easter-holidays I'll try and test again :-)
best wishes,
Gabriele Schaarschmidt
------------------------------------------------------------------------
Gabriele Schaarschmidt schaarschmidt at zdv.uni-tuebingen.de
Postmasterin Zentrum für Datenverarbeitung
Universität Tübingen http://www.zdv.uni-tuebingen.de
Wächterstr.76, 72074 Tübingen Tel. 07071-2970325 Fax 07071-295912
------------------------------------------------------------------------
----- Nachricht von c at roessner-network-solutions.com ---------
Datum: Tue, 3 Apr 2012 10:05:35 +0200
Von: Christian Rößner <c at roessner-network-solutions.com>
Betreff: Re: problem - automx with filter
An: Gabriele Schaarschmidt <schaarschmidt at zdv.uni-tuebingen.de>
Cc: automx-users at automx.org
> Hi,
>
>> username = /usr/bin/grep "%u"
>> /usr/local/lib/automx/mail/genericstable.txt | /usr/bin/awk '{print
>> $1}'
>
>
> Please try to put the command into a script file. For example create
> a directory /usr/local/share/automx and create it as:
>
> filter.sh with the following content:
>
> -----
> #!/bin/sh
>
> /usr/bin/grep "$1" /usr/local/lib/automx/mail/genericstable.txt |
> /usr/bin/awk '{print $1}'
>
> exit 0
> -----
> chmod +x the file.
>
> then modify your filter as followed:
>
> username = /usr/local/share/automx/filter.sh %u
>
> You also must put the stuff under this line into an extra backend
> called username:
>
> -----
> [username]
> smtp = yes
> smtp_server = smtpserv.example.de
> smtp_port = 25
> smtp_encryption = starttls
> smtp_auth = plaintext
> smtp_auth_identity = %u
> smtp_default = yes
>
> imap = yes
> imap_server = %u.mail.example.de
> imap_port = 993
> imap_auth = plaintext
> imap_auth_identity = %s
>
> pop = yes
> pop_server = %u.mail.example.de
> pop_port = 995
> pop_auth = plaintext
>
>
> [example.de]
> debug = yes
>
>
> backend = filter
> #backend = global
> # example.com uses settings from the global section
> -----
>
> We already encountered problem like yours and it might be necessary
> to fix our documentation here.
>
> You may want no rename your filter, because you can see that stands
> for a section that will be read afterwards. I am also not quite
> sure, if that looks okay wiht %u, as it just is the username part of
> the email. Is that what you want?
>
> Best wishes
>
> -Christian Rößner
>
> ---
> Roessner-Network-Solutions
> Bachelor of Science Informatik
> Nahrungsberg 81, 35390 Gießen
> F: +49 641 5879091, M: +49 176 93118939
> USt-IdNr.: DE225643613
> http://www.roessner-network-solutions.com
>
>
----- Ende der Nachricht von c at roessner-network-solutions.com -----
-------------- next part --------------
# file: /etc/automx.conf
[automx]
debug = yes
provider = uni-tuebingen.de
domains = *
# The DEFAULT section is always merged into each other section. Each section
# can overwrite settings done here.
[DEFAULT]
account_type = email
account_name = Example
account_name_short = Example
# If a domain is listed in the automx section, it may have its own section. If
# none is found here, the global section is used.
[global]
backend = filter
action = settings
section_filter = username
username = /zdv-system/mailadr/filter.sh %u
[username]
debug = yes
smtp = yes
smtp_server = smtpserv.uni-tuebingen.de
smtp_port = 25
smtp_encryption = starttls
smtp_auth = plaintext
smtp_auth_identity = ${username}
###smtp_auth_identity = %u
smtp_default = yes
imap = yes
###imap_server = %u.mail.uni-tuebingen.de
imap_server = ${username}.mail.uni-tuebingen.de
imap_port = 993
imap_auth = plaintext
###imap_auth_identity = %u
imap_auth_identity = ${username}
pop = yes
###pop_server = %u.mail.uni-tuebingen.de
pop_server = ${username}.mail.uni-tuebingen.de
pop_port = 995
pop_auth = plaintext
pop_auth_identity = ${username}
[uni-tuebingen.de]
debug = yes
backend = filter
#backend = global
# example.com uses settings from the global section
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5293 bytes
Desc: S/MIME Signatur
URL: <http://mail.state-of-mind.de/pipermail/automx-users/attachments/20120404/069e070b/attachment.bin>
More information about the automx-users
mailing list