Hi,
I have searched the mail list archives and wasn't able to find an
answer, so I'm hoping somebody can help me out.
I've been using Courier for IMAP/S and POP3/S access on my Postfix based
MTA for the last couple of years. It works great, but I'm currently
building a new system that has all user accounts, and aliases stored in
Postgresql tables.
I am using Maildrop to handle the final delivery of the mail to the
accounts, all of which are virtual. I want to set up an autoreply
system that uses a value stored in a users table, but am having problems
getting maildrop to see the variable.
In authpgsqlrc, I have:
PGSQL_AUXOPTIONS_FIELD 'autoreply=' || autoreply || ',disabled=' ||
disabled
This concats the autoreply and disabled field in the Postgresql table
into a single field that Courier-authlib can parse. If autoreply is set
to 1, I want maildrop to reply to the message and store the sender
address so that the sender will only get a single automated response. I
have found examples of how to do this using a file in the users account,
but not from a database field.
My question is - how can I access the values returned in
PGSQL_AUXOPTIONS_FIELD from maildroprc? I have tried import
PGSQL_AUXOPTIONS_FIELD, import options, etc, etc and none print out the
value of that field. Is there a way to do this without adding code to
maildrop?
Thanks
Dave