This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2009-10-18 17:51:55
Size: 1771
Editor: ppp91-77-133-0
Revision 3 as of 2009-10-20 04:28:23
Size: 1789
Editor: ppp91-77-134-103
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
and after that go all other '''''local/*''''': and after that go all other '''''local/*''''' thru dovecot LDA:
Line 25: Line 25:
        command="sm -8c $channel dovecot"         command="sm -8Hc $channel dovecot"

Dovecot LDA as local delivery agent for ZMailer

1. Add to zmailer/sm.conf:

# dovecot LDA
dovecot SPfne  /usr/local/libexec/dovecot/deliver  deliver -e -n -d $u

2. Change zmailer/scheduler.conf like this:

Go local/file* and local/pipe* thru "mailbox" delivery agent:

        # zmailer local delivery transport agent
        command="mailbox -8HS -l ${LOGDIR}/mailbox"

and after that go all other local/* thru dovecot LDA:

        # DOVECOT as the local delivery agent:
        command="sm -8Hc $channel dovecot"

Then all deliveries to local users will go thru dovecot LDA, AND if users want to run pipes / store to files thru their .forward files, they can do that too. (That is why there are tag-matchers for "local/file*" and "local/pipe*" before "local/*" in that scheduler.conf file; those are for cases which must not run thru dovecot LDA.)

But little problem now: if you will start use "-e" deliver param, Zmailer start complain on reject case: "(this is abnormal, investigate!)".

Fix Zmailer: in zmailer/transports/libta/diagnostic.c:

-      case EX_NOPERM:
       case EX_PROTOCOL:
       case EX_USAGE:
                      " (this is abnormal, investigate!)");
               s += strlen(s);
               /* fall through */
+      case EX_NOPERM:
       case EX_NOUSER:
       case EX_NOHOST:
       case EX_UNAVAILABLE:

Or fix Dovecot: in dovecot-1.2.6/src/deliver/deliver.c:

                if (stderr_rejection)
-                       return EX_NOPERM;
+                       return EX_UNAVAILABLE;

None: LDA/ZMailer (last edited 2009-12-23 06:06:30 by ppp91-78-85-68)