|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Theodore Knab (tjk
annapolislinux.org)Date: Mon Jun 03 2002 - 14:52:55 CDT
I found a note in the postfix-docs that says I can setup an auto-reply
for virtual recipients users. I want to use LDAP to do this. Has anyone
done this ?
The postfix documentation reads:
Example 4: setting up a virtual vacation autoresponder
In order to set up an autoreply for virtual recipients while still
delivering mail as normal, set up a rule in a virtual table ( please
ignore the text in the virtual configuration file about virtual
domains)
/etc/postfix/main.cf
virtual_maps = hash:/etc/postfix/virtual.db
/etc/postfix/virtual:
user
domain.name user
domain.name, user
autoreply.domain.name
I am storing the Courier users on a LDAP database with the qmail.schema and
the couriermail account schema.
Non Vacation mode:
--------------------
dn: uid=rsample2-02,ou=accounts,dc=mycoll,dc=edu
uidNumber: 1485
gidNumber: 1001
userPassword: hidden
uid: rsample2-02
cn: Roberta S. Sample
mail: rsample2-02
mycoll.edu
mail: rsample2-02
imap.mycoll.edu
mail: Roberta.Sarah.Sample
imap.mycoll.edu
mailHost: imap.mycoll.edu
accountStatus: active
homeDirectory: /var/imap/mycoll/rnecker2-02
mailMessageStore: /var/imap/mycoll/rnecker2-02/Maildir
mailForwardingAddress: rsample2-02
imap.mycoll.edu
mailQuota: 20000000S, 8000C
deliverymode: normal
mailbox: rsmaple2-02/Maildir/
objectClass: qmailuser
objectClass: couriermailaccount
Vacation mode:
------------------
dn: uid=rsample2-02,ou=accounts,dc=mycoll,dc=edu
uidNumber: 1485
gidNumber: 1001
userPassword: hidden
uid: rsample2-02
cn: Roberta S. Sample
mail: rsample2-02
mycoll.edu
mail: rsample2-02
imap.mycoll.edu
mail: Roberta.Sarah.Sample
imap.mycoll.edu
mailHost: imap.mycoll.edu
accountStatus: active
homeDirectory: /var/imap/mycoll/rnecker2-02
mailMessageStore: /var/imap/mycoll/rnecker2-02/Maildir
mailForwardingAddress: rsample2-02
imap.mycoll.edu
mailQuota: 20000000S, 8000C
deliverymode: reply
mailReplyText: I am on vacation. If it is important call me in Japan at
011-81-427-91-2700. mailbox: rsmaple2-02/Maildir/
objectClass: qmailuser
objectClass: couriermailaccount
This will give me the vacation notice, but what do I do to send it back ?
ldapvcat_timeout = 10
ldapvcat_server_host = ldap.mycoll.edu
ldapvcat_search_base = ou=accounts,dc=mycoll,dc=edu
ldapvcat_server_port = 389
ldapvcat_domain = mycoll.edu, hash:/etc/postfix/searchdomains
ldapvcat_query_filter = (&(mail=%s)(deliverymode=reply))
ldapvcat_result_attribute = mailReplyText
Theodore Knab
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]