problem - automx with filter
Gabriele Schaarschmidt
schaarschmidt at zdv.uni-tuebingen.de
Mon Apr 2 14:18:14 CEST 2012
Hi,
I want to use a filter to get the username from a file 'genericstable.txt',
because the IMAP username has no relation to the emailaddress.
Here is my automx.conf:
--------------------------------------
# file: /etc/automx.conf
[automx]
debug = yes
provider = example.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 = /usr/bin/grep "%u"
/usr/local/lib/automx/mail/genericstable.txt | /usr/bin/awk '{print $1}'
smtp = yes
smtp_server = smtpserv.example.de
smtp_port = 25
smtp_encryption = starttls
smtp_auth = plaintext
smtp_auth_identity = ${username}
smtp_default = yes
imap = yes
imap_server = ${username}.mail.example.de
imap_port = 993
imap_auth = plaintext
imap_auth_identity = ${username}
pop = yes
pop_server = ${username}.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
---------------------------------------------------
I see this errors in apache2-error log:
[Mon Apr 02 13:56:40 2012] [error] [client 134.2.x.xx] debug, request
GET: QUERY_STRING={'emailaddress':
['gabriele.schaarschmidt at example.de']}
/usr/bin/grep: |: No such file or directory
/usr/bin/grep: {print $1}: No such file or directory
[Mon Apr 02 13:56:40 2012] [error] [client 134.2.x.xx]
data.configure(): ('ERROR while calling filter', (4675, 512),
'/usr/local/lib/automx/mail/genericstable.txt:xxxxxxx
gabriele.schaarschmidt at example.de')
[Mon Apr 02 13:56:40 2012] [error] [client 134.2.x.xx] debug, response:
xxxxxxx is the exact username from genericstable.txt
What is wrong?
Grüße,
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
------------------------------------------------------------------------
-------------- 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/20120402/6565b778/attachment.bin>
More information about the automx-users
mailing list