[Dovecot] qmail dovecot lda

Alessio Cecchi alessio at skye.it
Thu Feb 6 13:04:12 UTC 2014


Il 06/02/2014 13:25, Florin Portase ha scritto:

> SETUP:
>
> qmail + dovecot 2.2.10 + pigeonhole 0.4.2
>
> I have a user who's quota is at 98% so theoretically when this user is
> receiving any mails qmail shout send a rejection message like user is
> overquota
>
> /vpopmail/domains/medianetork.ro/.qmail-default
>
> #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
> | DTLINE=${DTLINE/$USER-} /var/qmail/bin/preline -f
> /usr/libexec/dovecot/dovecot-lda -d $EXT@$USER -a $EXT@$USER
>
> If I let enabled only this line
> | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
> everything is working OK
>
> 1st test: from yahoo mail
> - - send an _attachment of 2mb ( way over quota )
>
> and the response:
> @4000000052f370fd3381b504 info msg 3793: bytes 4268 from
> <<>@medianetork.ro> qp 19703 uid 420
> @4000000052f370fd3381b8ec starting delivery 6: msg 3793 to remote
> pflorin1 at yahoo.com
> @4000000052f370fd3381b8ec status: local 0/10 remote 1/120
> @4000000052f371011135ec04 delivery 6: success:
> 66.196.118.33_accepted_message./Remote_host_said:_250_ok_dirdel/
> @4000000052f371011135f3d4 status: local 0/10 remote 0/120
>
> 2nd test: from lotus domino
> - - send an _attachment of 2mb ( way over quota )
>
> @4000000052f34f832bc8fa0c info msg 3774: bytes 3444 from
> <<>@medianetork.ro> qp 13708 uid 420
> @4000000052f34f832bc8fa0c starting delivery 2: msg 3774 to remote
> pflorin1 at fr.ibm.com
> @4000000052f34f832bc8fdf4 status: local 0/10 remote 1/120
> @4000000052f34f84346185e4 delivery 2: failure:
> Connected_to_195.75.94.105_but_sender_was_rejected./Remote_host_said:_501_Syntax_error_in_parameters_or_arguments:_(-132)/
>
>
> Also gmail complains about Syntax error

Qmail send the over quota messagge only if is vdelivermail to finaly 
delivery the email in the user's mailbox. If the finally delivery is 
made by dovecot LDA should be it to sent a bounce with over quota messagge.

In 15-lda.conf try to add

submission_host = localhost

Let me know if works.
-- 
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz
Cloud Email Hosting -> http://www.qboxmail.com
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


More information about the dovecot mailing list