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

Timo Sirainen tss at iki.fi
Mon Aug 15 01:24:54 EEST 2011


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. 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;




More information about the dovecot mailing list