[Dovecot] LMTP over STDIN/STDOUT (non root user)
tss at iki.fi
Mon Aug 15 12:39:31 EEST 2011
On 15.8.2011, at 11.30, Andrzej Adam Filip wrote:
> 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? :-)
Depends on how you're intending to run it. If you can manage to keep the session open between mail deliveries, then it'll work, but I don't really know how you could do that.
>> 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 |
> Thank for the patch/consideration.
> Do you intend to include it into official code base sometime in the
> (near) future?
More information about the dovecot