[Dovecot] LMTP over STDIN/STDOUT (non root user)

Andrzej Adam Filip AnFi at onet.eu
Mon Aug 15 11:30:27 EEST 2011


Timo Sirainen <tss at iki.fi> wrote:
> On Sun, 2011-08-14 at 23:34 +0200, Andrzej Adam Filip wrote:
>>   lmtp program seems to accept custom configuration file (-c _file_).
>>   The file specifies both passdb and userdb using Passwd-file.
>>   How to make lmtp skip attempts to contact auth server?
>
> Well, since LMTP by design is intended to deliver mails to multiple
> users, which requires userdb lookup, this is kind of a kludgy way to
> use it.

LMTP offers *also* a sensible way to reduce number of execution of
deliver program, does not it? :-)
Such use does make sense when retrieving messages from high volume
mailing lists even after "half day break".

> If you really want to, you can do it by patching the LMTP sources:
>
> --- a/src/lmtp/main.c   Mon Aug 15 01:18:01 2011 +0300
> +++ b/src/lmtp/main.c   Mon Aug 15 01:24:39 2011 +0300
> @@ -81,7 +81,6 @@
>         enum master_service_flags service_flags = 0;
>         enum mail_storage_service_flags storage_service_flags =
>                 MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT |
> -               MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
>                 MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP |
>                 MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
>                 MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT;

Thank for the patch/consideration.

Do you intend to include it into official code base sometime in the
(near) future?

-- 
[pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu
We gave you an atomic bomb, what do you want, mermaids?
  -- I. I. Rabi to the Atomic Energy Commission



More information about the dovecot mailing list