Re: [Dovecot] mail delivery location wrong
On Mon, 8 Aug 2011 18:17:29 -0400 Sahil Tandon articulated: > On Mon, 2011-08-08 at 14:41:59 +0200, Firma Averlon wrote: > > > The reason why not receiving e-Mails is simply: When sending the > > mails they are stored in a different directory as where dovecot will > > look for them > > > > Error message from log: > > Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: > > data=/home/vmail//vmail/Maildir > > > > What you immediatly see: "vmail//vmail" > > > > main.cf of postfix: > > > > virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf > > Does the LDAP query inside this file explicitly return the domain part > of the recipient address? Did you try using "postmap" to see what a look-up returns? -- Jerry ✌ dovecot.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __
Re: [Dovecot] mail delivery location wrong
On Mon, 2011-08-08 at 14:41:59 +0200, Firma Averlon wrote: > The reason why not receiving e-Mails is simply: When sending the > mails they are stored in a different directory as where dovecot will > look for them > > Error message from log: > Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: > data=/home/vmail//vmail/Maildir > > What you immediatly see: "vmail//vmail" > > main.cf of postfix: > > virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf Does the LDAP query inside this file explicitly return the domain part of the recipient address? -- Sahil Tandon
Re: [Dovecot] mail delivery location wrong
looks like your missing the -d option to lda. Quoting Firma Averlon : Hi, thanks for offering the oportunity to place a question here. I am now already working since a week to get postfix and dovecot working on a ubuntu 11.04 server. Hard task. First step was naturally to get familiar with the idea behind the archtitecture. I have come very far, but the "last dirty mile" is probably the hardest. My architecture: Postfix Dovecot OpenLDAP Thunderbird as client with pop3 I can meanwhile send e-mails and open my mailbox in thunderbird (not receiving mails so far). The reason why not receiving e-Mails is simply: When sending the mails they are stored in a different directory as where dovecot will look for them Error message from log: Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: data=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: data=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir++: root=/home/vmail//vmail/Maildir, index=, control=, inbox=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir++: root=/home/vmail//vmail/Maildir, index=, control=, inbox=/home/vmail//vmail/Maildir What you immediatly see: "vmail//vmail" Although, when authenticating, the result is: Aug 8 14:06:30 server dovecot: auth(default): master out: USER#0113#011user...@av.loc#011gid=5000#011home=/home/userxxx#011uid=5000#011mail=/home/vmail/av.loc/userxxx/Maildir/ The following settings are in place: main.cf of postfix: virtual_mailbox_domains = /etc/postfix/vhosts virtual_mailbox_base = /home/vmail virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf virtual_minimum_uid = 1000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_transport = dovecot mailbox_command = /usr/lib/dovecot/deliver beside others. master.cf of postfix dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -a ${recipient} dovecot.conf sendmail_path = /usr/sbin/sendmail mail_location = maildir:/home/vmail/%d/%n/Maildir beside others. I guess, these are the ones influencing where to store the mail and pick it up. A list of the related filesystem: /home/vmail/ drwx-w--w- 4 vmail vmail 4096 2011-08-08 08:56 av.loc/ drwx-- 3 vmail vmail 4096 2011-08-08 09:42 vmail/ Wher you can see, the structure according "mail_location" parameter of dovecot.conf does show effect, but the mails are stored in /home/vmail//vmail.". The whole bunch of documentation I have read meanwhile makes my head circle around. You could hopefully give me some help. -- Mit freundlichen Grüßen / Kind Regards Hr. Karl-Heinz Fischbach
Re: [Dovecot] mail delivery location wrong
Hi Jerry, thanks for reply. In fact, I tried already without but with the same result. As far as I understand the documentation with dovecot all "normal" params are related to local mailboxes/users/domains and all "virtual." params take effect for virtual mailboxes and they do not interfere with each other. Anyhow. Behaviour does not change without it. Mit freundlichen Grüßen / Kind Regards Hr. Karl-Heinz Fischbach On 08.08.2011 17:15, Jerry wrote: On Mon, 08 Aug 2011 14:41:59 +0200 Firma Averlon articulated: The following settings are in place: main.cf of postfix: virtual_mailbox_domains = /etc/postfix/vhosts virtual_mailbox_base = /home/vmail virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf virtual_minimum_uid = 1000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_transport = dovecot mailbox_command = /usr/lib/dovecot/deliver Why use a mailbox command? I don't have one and I deliver via virtual using dovecot. You have dovecot listed in the master.cf file. Are you trying to deliver to both virtual and non-virtual users?
Re: [Dovecot] mail delivery location wrong
On Mon, 08 Aug 2011 14:41:59 +0200 Firma Averlon articulated: > The following settings are in place: > main.cf of postfix: > > virtual_mailbox_domains = /etc/postfix/vhosts > virtual_mailbox_base = /home/vmail > virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf > virtual_minimum_uid = 1000 > virtual_uid_maps = static:5000 > virtual_gid_maps = static:5000 > virtual_transport = dovecot > mailbox_command = /usr/lib/dovecot/deliver Why use a mailbox command? I don't have one and I deliver via virtual using dovecot. You have dovecot listed in the master.cf file. Are you trying to deliver to both virtual and non-virtual users? -- Jerry ✌ dovecot.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ All theoretical chemistry is really physics; and all theoretical chemists know it. Richard P. Feynman
[Dovecot] mail delivery location wrong
Hi, thanks for offering the oportunity to place a question here. I am now already working since a week to get postfix and dovecot working on a ubuntu 11.04 server. Hard task. First step was naturally to get familiar with the idea behind the archtitecture. I have come very far, but the "last dirty mile" is probably the hardest. My architecture: Postfix Dovecot OpenLDAP Thunderbird as client with pop3 I can meanwhile send e-mails and open my mailbox in thunderbird (not receiving mails so far). The reason why not receiving e-Mails is simply: When sending the mails they are stored in a different directory as where dovecot will look for them Error message from log: Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: data=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir: data=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir++: root=/home/vmail//vmail/Maildir, index=, control=, inbox=/home/vmail//vmail/Maildir Aug 8 14:09:01 server dovecot: deliver(vmail): maildir++: root=/home/vmail//vmail/Maildir, index=, control=, inbox=/home/vmail//vmail/Maildir What you immediatly see: "vmail//vmail" Although, when authenticating, the result is: Aug 8 14:06:30 server dovecot: auth(default): master out: USER#0113#011user...@av.loc#011gid=5000#011home=/home/userxxx#011uid=5000#011mail=/home/vmail/av.loc/userxxx/Maildir/ The following settings are in place: main.cf of postfix: virtual_mailbox_domains = /etc/postfix/vhosts virtual_mailbox_base = /home/vmail virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual.cf virtual_minimum_uid = 1000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_transport = dovecot mailbox_command = /usr/lib/dovecot/deliver beside others. master.cf of postfix dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -a ${recipient} dovecot.conf sendmail_path = /usr/sbin/sendmail mail_location = maildir:/home/vmail/%d/%n/Maildir beside others. I guess, these are the ones influencing where to store the mail and pick it up. A list of the related filesystem: /home/vmail/ drwx-w--w- 4 vmail vmail 4096 2011-08-08 08:56 av.loc/ drwx-- 3 vmail vmail 4096 2011-08-08 09:42 vmail/ Wher you can see, the structure according "mail_location" parameter of dovecot.conf does show effect, but the mails are stored in /home/vmail//vmail.". The whole bunch of documentation I have read meanwhile makes my head circle around. You could hopefully give me some help. -- Mit freundlichen Grüßen / Kind Regards Hr. Karl-Heinz Fischbach