Hi Sel?uk,
You need to set alias delivery at Qmail level, I did a similar setup with
Dovecot & Postfix, and virtual domains and aliases, I found the easier
solution was to define Virtual Alias Maps for Postfix so it would ask
dovecot deliver to the correct mailbox user.
YMMV...
Kerem
On Mon, Apr 25, 2011 at 9:46 AM, Selcuk MIYNAT <
selcuk.miynat at endersys.com.tr> wrote:
> Hi,
>
> I am trying to use dovecot as lda.
>
> I have put this line in my .qmail-default file:
> #|/var/qmail/bin/preline -f /usr/local/libexec/dovecot/dovecot-lda -d $EXT@
> $USER
>
> It is working correct with real addresses but couldn't find forwarding
> addresses.
>
> This is my /usr/local/etc/dovecot-sql.conf:
> driver = mysql
> connect = host=localhost user=vpopmailuser password=vpopmailpassword
> dbname=vpopmail
> default_pass_scheme = PLAIN
> password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user,
> pw_clear_passwd AS password FROM vpopmail WHERE pw_name = '%n' AND
pw_domain
> = '%d'
> user_query = SELECT pw_dir as home, 89 AS uid, 89 AS gid FROM vpopmail
> WHERE pw_name = '%n' AND pw_domain = '%d'
>
> It is querying vpopmail table all the time but forwarding addresses are in
> the valias table, so it couldn't find forwarding addresses.
>
> How can I solve this?
>
> --
> Selcuk MIYNAT
> Endersys Ltd.
> Sistem Destek Muhendisi / System Support Engineer
>
> Phone : +90 216-4709423 | Fax : +90 216-4709508
> Web : http://www.endersys.com.tr
>
> Blog : http://blog.endersys.com
> Twitter : http://www.twitter.com/endersys
> LPI : The #1 Linux Certification for IT Professionals
> LPI (Linux Professional Institute) Turkey http://www.lpi-turkey.com
>
> Endersys is the first Advanced Business Partner of Red Hat in Turkey !
> http://www.europe.redhat.com/partners/endersys/
>
--
Kerem Erciyes - Sistem Danismani
http://keremerciyes.com