[Dovecot] PATCH: sendmail-like DSNs in Dovecot deliver (EX_TEMPFAIL always)

Steffen Kaiser skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Wed May 9 16:31:41 EEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've put together an always tempfail & sendmail-like DSN report back 
patch.

Because I don't know how to transform the rejection reason into sysexit.h 
codes, it always tempfails.

The hooks are so that:

a) config file setting:

lda_mode = mode

b) command line:

deliver --mode mode

where mode is default or sendmail.

When no mode is specified, it defaults to "default", which is the current 
behaviour.

In sendmail mode, mail_send_rejection() simply prints the rejection reason 
to stdout, logs it and returns EX_TEMPFAIL.
Ideally, the return value would be specific to the reason. I haven't poked 
into this deeply, but it doesn't look straight forward.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRkHNQS9SORjhbDpvAQIhdggAq79RHKa1gIUTFwAu7Gd2maIUkDTgbNu6
8+MEQHujOPkV6wcF+5ih/hkht5BnuBUiIbnp2dvKGaUcHY8avzYD6BEc6gIAyJjM
YIKDANI5+BVnQWUdiQMlQrSrRIZBqFziL8v/LvICJUsiOqCKT7se37KuUOK14gXO
FSghuPta0rorogJ8kh+VGdmnqNVzKb6eKrnFQUggiezTmTcHY6/DRsLbsKV//fyW
cybualj+THF9cj+EajwCMsYypc9KOdVg6lhcCD87oskDmMqcG5lwF2HU9nclnMxE
6pOnaLGNfKmWyeAKOLgvMimjhkU74+NBwQ+b4h61JzZ6lbiZKWX7wA==
=gE8Z
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deliver_sendmail.patch.gz
Type: application/octet-stream
Size: 1319 bytes
Desc: 
Url : http://dovecot.org/pipermail/dovecot/attachments/20070509/9c45fcf3/attachment.obj 


More information about the dovecot mailing list