[Dovecot] dovecot as lda : nothing happens
Hi,
On debian lenny, I try to configure my setup (with Postfix virtual domains) to use dovecot as lda.
I adjusted my settings to postfix and dovecot, but nothing happens...
The dovecot.log is always empty and nothing seems to change, as if it had no effect.
Here are my changes, if someone sees what would be problematic ...
Thanks Denis
main.cf ######
virtual_transport = dovecot dovecot_destination_recipient_limit = 1
# conf -> http://pastebin.com/mfdf596e
master.cnf ########
dovecot unix - n n - - pipe
flags=DRhu user=www-data:www-data argv=/usr/lib/dovecot/deliver -d $(recipient) http://pastebin.com/m41e07df0
## conf -> http://pastebin.com/m41e07df0 ## postconf -n -> http://pastebin.com/m293a05f7
dovecot.conf ##########
protocol lda { postmaster_address = root@xxx auth_socket_path = /var/run/dovecot/auth-master mail_plugins = cmusieve log_path = /var/log/dovecot.log }
## conf -> http://pastebin.com/m5c55d5b2 ## dovecot -n -> http://pastebin.com/m268fdb89
On 07/18/2009 10:50 PM denis wrote:
Hi,
On debian lenny, I try to configure my setup (with Postfix virtual domains) to use dovecot as lda.
I adjusted my settings to postfix and dovecot, but nothing happens...
The dovecot.log is always empty and nothing seems to change, as if it had no effect.
Here are my changes, if someone sees what would be problematic ...
Thanks Denis
main.cf ######
virtual_transport = dovecot dovecot_destination_recipient_limit = 1
# conf -> http://pastebin.com/mfdf596e
master.cnf ########
dovecot unix - n n - - pipe
flags=DRhu user=www-data:www-data argv=/usr/lib/dovecot/deliver -d $(recipient) http://pastebin.com/m41e07df0
## conf -> http://pastebin.com/m41e07df0 ## postconf -n -> http://pastebin.com/m293a05f7
dovecot.conf ##########
protocol lda { postmaster_address = root@xxx auth_socket_path = /var/run/dovecot/auth-master mail_plugins = cmusieve log_path = /var/log/dovecot.log }
## conf -> http://pastebin.com/m5c55d5b2 ## dovecot -n -> http://pastebin.com/m268fdb89
What is listed in /etc/postfix/transport? Is the domain part of the recipient address listed in mydestination? Also show a few lines from /var/log/mail.log - from 'connect from ...' until 'mail delivered ...'.
Regards, Pascal
The trapper recommends today: fabaceae.0919923@localdomain.org
Hi,
Thank you for your answers.
Noel Butler a écrit :
I suggest you use a current version of dovecot, 1.0.15 is old and IIRC unsupported
at a quick look though, your settings in LDA and in master.cf appear fine. Although you might want to remove log_path when using a modern version and put it in global I made the update to the version in lenny-backports 1.1.13-2~bpo50+1 and I deleted log_path = /var/log/dovecot.log
Pascal Volk a écrit :
What is listed in /etc/postfix/transport?
Nothing, I have deleted
Is the domain part of the recipient address listed in mydestination?
No, all information are retrieved from mysql via user_query = SELECT path as home, 33 as uid, 33 as gid FROM mail_users WHERE alias='%u'
Also show a few lines from /var/log/mail.log - from 'connect from ...' until 'mail delivered ...'.
Jul 19 10:07:47 altern postfix/smtpd[5757]: connect from mirapoint7.brutele.be[212.68.199.151] Jul 19 10:07:57 altern postgrey[12261]: action=pass, reason=client AWL, client_name=mirapoint7.brutele.be, client_address=212.68.199.151, sender=denlistes@altern.org, recipient=denis@collectifs.net Jul 19 10:07:57 altern postfix/smtpd[5757]: 8B35E46122: client=mirapoint7.brutele.be[212.68.199.151] Jul 19 10:07:57 altern postfix/cleanup[9641]: 8B35E46122: message-id=4A62D1D3.9050602@altern.org Jul 19 10:07:57 altern postfix/qmgr[20198]: 8B35E46122: from=denlistes@altern.org, size=974, nrcpt=1 (queue active) Jul 19 10:07:57 altern postfix/smtpd[6839]: connect from localhost[127.0.0.1] Jul 19 10:07:57 altern postfix/smtpd[6839]: D6B4646123: client=localhost[127.0.0.1] Jul 19 10:07:57 altern postfix/cleanup[9641]: D6B4646123: message-id=4A62D1D3.9050602@altern.org Jul 19 10:07:57 altern postfix/smtpd[6839]: disconnect from localhost[127.0.0.1] Jul 19 10:07:57 altern postfix/qmgr[20198]: D6B4646123: from=denlistes@altern.org, size=1508, nrcpt=1 (queue active) Jul 19 10:07:57 altern amavis[7460]: (07460-16) Passed CLEAN, [212.68.199.151] [85.27.31.43] denlistes@altern.org -> denis_collectifs.net@altern.domainepublic.net, Message-ID: 4A62D1D3.9050602@altern.org, mail_id: LbrTEMulIqHc, Hits: -7.556, size: 974, queued_as: D6B4646123, 304 ms Jul 19 10:07:57 altern postfix/smtp[9642]: 8B35E46122: to=denis_collectifs.net@altern.domainepublic.net, orig_to=denis@collectifs.net, relay=127.0.0.1[127.0.0.1]:10024, delay=11, delays=10/0/0/0.31, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=07460-16, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D6B4646123) Jul 19 10:07:57 altern postfix/qmgr[20198]: 8B35E46122: removed Jul 19 10:07:57 altern postfix/local[9647]: D6B4646123: to=denis_collectifs.net@altern.domainepublic.net, relay=local, delay=0.08, delays=0.01/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -m /var/alternc/mail/d/denis_collectifs.net/.procmailrc) Jul 19 10:07:57 altern postfix/qmgr[20198]: D6B4646123: removed Jul 19 10:07:59 altern postfix/smtpd[5757]: disconnect from mirapoint7.brutele.be[212.68.199.151]
Thank Denis
Pascal Volk a écrit :
Is the domain part of the recipient address listed in mydestination?
No, all information are retrieved from mysql via user_query = SELECT path as home, 33 as uid, 33 as gid FROM mail_users WHERE alias='%u' ^^^^^^^ Is this the query from the file '/etc/postfix/myalias.cf'? Oh no, it's
On 07/19/2009 10:32 AM denis wrote:
the 'user_query' from dovecot-sql.conf.
postmap -q denis@collectifs.net mysql:/etc/postfix/myalias.cf
returns
denis_collectifs.net@altern.domainepublic.net?
Is altern.domainepublic.net on of the domains in mydestination?
Also show a few lines from /var/log/mail.log - from 'connect from ...' until 'mail delivered ...'. … Jul 19 10:07:57 altern postfix/local[9647]: D6B4646123: to=denis_collectifs.net@altern.domainepublic.net, relay=local, delay=0.08, delays=0.01/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -m /var/alternc/mail/d/denis_collectifs.net/.procmailrc) …
altern.domainepublic.net seems to be a 'local domain' - not a virtual domain. The email was delivered to the command procamil, not piped to Dovecots deliver.
Please attach the the most current output from dovecot -n
and
postconf -n
to your reply.
Regards, Pascal
The trapper recommends today: c01dcofe.0920018@localdomain.org
Pascal Volk a écrit :
On 07/19/2009 10:32 AM denis wrote:
Pascal Volk a écrit :
Is the domain part of the recipient address listed in mydestination?
No, all information are retrieved from mysql via user_query = SELECT path as home, 33 as uid, 33 as gid FROM mail_users WHERE alias='%u'
^^^^^^^
Is this the query from the file '/etc/postfix/myalias.cf'? Oh no, it's the 'user_query' from dovecot-sql.conf.
Yes, sorry.
postmap -q denis@collectifs.net mysql:/etc/postfix/myalias.cf
returns denis_collectifs.net@altern.domainepublic.net?
No,
postmap -q denis_collectifs.net mysql:/etc/postfix/myalias.cf
returns
/var/alternc/mail/d/denis_collectifs.net
Is altern.domainepublic.net on of the domains in mydestination?
Yes.
Also show a few lines from /var/log/mail.log - from 'connect from ...' until 'mail delivered ...'.
… Jul 19 10:07:57 altern postfix/local[9647]: D6B4646123: to=denis_collectifs.net@altern.domainepublic.net, relay=local, delay=0.08, delays=0.01/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -m /var/alternc/mail/d/denis_collectifs.net/.procmailrc) …
altern.domainepublic.net seems to be a 'local domain' - not a virtual domain. The email was delivered to the command procamil, not piped to Dovecots deliver.
Yes, and all the mails are alias from altern.domainepublic.net like denis@collectifs.net is denis_collectifs.net@altern.domainepublic.net ...
Please attach the the most current output from
dovecot -n
andpostconf -n
to your reply.
dovecot - n http://pastebin.com/d31978026 postconf -n http://pastebin.com/d3242f46a
Thanks a lot ! Denis
participants (2)
-
denis
-
Pascal Volk