Tomas Tikovsky
2005-08-15 06:44:20 UTC
Hello
I have following problem.
Users having multiple addresses maps using virtual_alias_maps to single
email address. And that is used by virtual_mailbox_maps to find out
mailbox name
that is DIFFERENT than mail localpart
for example.
***@domain.tld and ***@domain.tld are both addressess of
user admin
When i deliver mail using virtual delivery agent im fine because i can
use virtual_mailbox_maps.
When try to deliver by maildrop or procmail i dont know how to lookup
real username like in virtual_mailbox_maps.
in master.cf one can use macros like ${recipient}, ${sender}or ${user}
unfortunately $user contains mail localpart like postmaster for
***@domain.tld. My mailbox name is however admin.
i cant use $home in virtual environment (at least postfix complain that
unknown macro was used in master.cf)
Im using courier-imap and courier authentication library but users
authenticates using their real username not mail address.
I saw in previous releases of maildrop ldap configuration file that was
used to configure lookup of user mailbox. Its gone know
so my only idea is to use virtual_mailbox_map in /etc/maildroprc like this
$maildir = postmap -q ***@domain.tld
ldap:/etc/postfix/virtual_mailbox.cf
that command should produce something like admin/ (mailbox of user admin
located in /var/spool/mail/)
any ideas how to do it more cleanly?
PS: I'm trying to do this for realtime mail notification that is sent to
users logged into novell netware server. They are immediately informed
about new mail upon receiving.
Thanks
Tom
I have following problem.
Users having multiple addresses maps using virtual_alias_maps to single
email address. And that is used by virtual_mailbox_maps to find out
mailbox name
that is DIFFERENT than mail localpart
for example.
***@domain.tld and ***@domain.tld are both addressess of
user admin
When i deliver mail using virtual delivery agent im fine because i can
use virtual_mailbox_maps.
When try to deliver by maildrop or procmail i dont know how to lookup
real username like in virtual_mailbox_maps.
in master.cf one can use macros like ${recipient}, ${sender}or ${user}
unfortunately $user contains mail localpart like postmaster for
***@domain.tld. My mailbox name is however admin.
i cant use $home in virtual environment (at least postfix complain that
unknown macro was used in master.cf)
Im using courier-imap and courier authentication library but users
authenticates using their real username not mail address.
I saw in previous releases of maildrop ldap configuration file that was
used to configure lookup of user mailbox. Its gone know
so my only idea is to use virtual_mailbox_map in /etc/maildroprc like this
$maildir = postmap -q ***@domain.tld
ldap:/etc/postfix/virtual_mailbox.cf
that command should produce something like admin/ (mailbox of user admin
located in /var/spool/mail/)
any ideas how to do it more cleanly?
PS: I'm trying to do this for realtime mail notification that is sent to
users logged into novell netware server. They are immediately informed
about new mail upon receiving.
Thanks
Tom