Robert Schetterer <robert at schetterer.org> writes:>> Anyway, why use lmtp over lda ? > > i.e avoid backscatter by overquotaA clarification on this: backscatter (or rather, ambiguous NDR notices that claim many users are over quota rather than just one) is a result of a local mailer that support multiple recipient delivery in one invocation, but can only return one result code to the MTA. Since Dovecot's deliver-lda does not support multiple recipient delivery, this is not a problem. LMTP can support multiple deliveries of the same message per invocation, but replies with individual SMTP codes to avoid the above problem. It can take advantage of this to efficiently implement single instance storage if it is enabled.> performance should better tooApart from multiple deliveries or SIS, I'm not sure this is true, or significant if it were. Joseph Tam <jtam.home at gmail.com>
Hi all
I decided to upgrade to 2.0 i compiled dovecot with ssl and mysql, but
i have problems with lmtp configuration.
this is the error.
pr 27 01:04:36 debian dovecot: auth: Fatal:
net_connect_unix(auth-worker) in directory
/usr/local/dovecot/var/run/dovecot failed: Permission denied
(euid=65534(nobody) egid=65534(nogroup) missing +r perm: auth-worker,
euid is not dir owner)
Apr 27 01:04:36 debian dovecot: lmtp(25961): Error: userdb
lookup(user at exemple.org): Disconnected unexpectedly
Apr 27 01:04:36 debian dovecot: master: Error: service(auth): command
startup failed, throttling
dovecot.conf
auth_mechanisms = plain login
disable_plaintext_auth = no
first_valid_uid = 5000
last_valid_uid = 5000
mail_access_groups = mail
mail_location = maildir:/var/vmail/%d/%u/Maildir
ssl = no
passdb {
args = /etc/dovecot/sql.conf
driver = sql
}
plugin {
quota = maildir:User quota
}
protocols = imap pop3 lmtp
service auth {
unix_listener auth-userdb {
group = mail
mode = 0660
user = vmail
}
unix_listener /var/spool/postfix/private/auth {
group = mail
mode = 0660
user = postfix
}
user = nobody
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
}
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/sql.conf
driver = sql
}
protocol imap {
imap_client_workarounds = delay-newmail
mail_plugins = quota imap_quota
}
protocol pop3 {
mail_plugins = quota
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
}
!include conf.d/*.conf
20-lmtp.conf
protocol lmtp {
# Space separated list of plugins to load (default is global mail_plugins).
#mail_plugins = $mail_plugins
postmaster_address = admin at exemple.org
}
I think is a permisson problem, in the conf i set group = mail mode
= 0660 user = vmail i should not have problems, rigth?
Thanks you all
2011/4/27 Joseph Tam <jtam.home at gmail.com>:> Robert Schetterer <robert at schetterer.org> writes:
>
>>> Anyway, why use lmtp over lda ?
>>
>> i.e avoid backscatter by overquota
>
> A clarification on this: backscatter (or rather, ambiguous NDR notices
> that claim many users are over quota rather than just one) is a result
> of a local mailer that support multiple recipient delivery in one
> invocation, but can only return one result code to the MTA.
>
> Since Dovecot's deliver-lda does not support ?multiple recipient
delivery,
> this is not a problem.
>
> LMTP can support multiple deliveries of the same message per invocation,
> but replies with individual SMTP codes to avoid the above problem.
> It can take advantage of this to efficiently implement single instance
> storage if it is enabled.
>
>> performance should better too
>
> Apart from multiple deliveries or SIS, I'm not sure this is true, or
> significant if it were.
>
> Joseph Tam <jtam.home at gmail.com>
>
Am 27.04.2011 00:50, schrieb Joseph Tam:> Robert Schetterer <robert at schetterer.org> writes: > >>> Anyway, why use lmtp over lda ? >> >> i.e avoid backscatter by overquota > > A clarification on this: backscatter (or rather, ambiguous NDR notices > that claim many users are over quota rather than just one) is a result > of a local mailer that support multiple recipient delivery in one > invocation, but can only return one result code to the MTA. > > Since Dovecot's deliver-lda does not support multiple recipient delivery, > this is not a problem.> > LMTP can support multiple deliveries of the same message per invocation, > but replies with individual SMTP codes to avoid the above problem. > It can take advantage of this to efficiently implement single instance > storage if it is enabled.in my understanding lmtp acts more like a mta so overquota "reject" can be send during smtp income stage i.e with postfix, to the sender client with lda this isnt possible cause the the mta does give the whole mail to lda which and mta send "recieved" to the sender client ( so the bounce must be send later by binary sendmail etc ) whatever this is the behavior i ve tested in my setups, may Timo correct me if i fail here> >> performance should better too > > Apart from multiple deliveries or SIS, I'm not sure this is true, or > significant if it were.yes this should be meassured, youre right i dont know too if its really performance relevant, but multiple deliver is nice to have anyway, why should not use it> > Joseph Tam <jtam.home at gmail.com>however i see no reason to use lda longer in my setups as lmtp exits youre right the backscatter case is really rare anyway -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria