[Dovecot] mail_executable's process environment

Mike Malsman
Tue, 21 Oct 2008 00:02:36 -0000

Hello,

I recently had to get Dovecot 1.1.4 to write to a "pop3/imap-before-
smtp" db such that my MTA could permit relay after a successful
authentication with Dovecot.

The 'pop3' and 'imap' processes are executed only after a
successful
auth, so replacing them with wrappers which write to the db seemed the
natural choice.  Lo and behold, someone thought of something like
this, as the 'mail_executable' directive exists - neat.

Upon inspection of the processes' environment I'm pleased to see that
there's a load of useful information in there.  However, one essential
component in my case is the destination network address, which is
missing.  I added it with the attached patch, exposed as 'LOCAL_IP'.
Works for me.

Is this something that would be useful to anyone else?

-Mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-1.1.4-local.ip.patch
Type: application/octet-stream
Size: 448 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20081020/4b8baf55/attachment-0002.obj>
-------------- next part --------------