Hi all.
I use LMTP transport to deliver mails into Cyrus and when asking DSN success I 
got an action "relayed".
I think LMTP is a final transport like local and virtual mailbox, but the DSN 
action value for both is "delivered".
This should be "delivered" too for LMTP transport ?

See example below :

Your message was successfully delivered to the destination(s)
listed below. If the message was delivered to mailbox you will
receive no further notifications. Otherwise you may still receive
notifications of mail delivery errors from other systems.

                   The mail system

<u...@localhost.net>: delivery via virtual: delivered to maildir

<u...@localhost.com>: delivery via
    127.0.0.1[127.0.0.1]:2003: 250 2.1.5 Ok: Stored

<u...@localhost.org>: delivery via local: delivered to mailbox

--835751710F.1234450008/smtp.localhost.net
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; smtp.localhost.net
Original-Envelope-Id: "id0001"
X-Postfix-Queue-ID: 835751710F
X-Postfix-Sender: rfc822; sen...@localhost.net
Arrival-Date: Thu, 12 Feb 2009 14:46:46 +0000 (UTC)

Final-Recipient: rfc822; u...@localhost.net
Action: delivered
Status: 2.0.0
Diagnostic-Code: X-Postfix; delivery via virtual: delivered to maildir

Final-Recipient: rfc822; u...@localhost.com
Action: relayed
Status: 2.1.5
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 250 2.1.5 Ok: Stored

Final-Recipient: rfc822; u...@localhost.org
Action: delivered
Status: 2.0.0
Diagnostic-Code: X-Postfix; delivery via local: delivered to mailbox

---
Below a patch (postfix 2.5.6) to change LMTP Action value from "relayed" to 
"delivered"


*** src/smtp/smtp_rcpt.c        2006-01-07 21:16:40.000000000 +0000
--- src/smtp/smtp_rcpt.c.1      2009-02-12 17:32:42.000000000 +0000
***************
*** 144,150 ****
      if (session->features & SMTP_FEATURE_DSN)
        rcpt->dsn_notify &= ~DSN_NOTIFY_SUCCESS;

!     dsb_update(why, resp->dsn, "relayed", DSB_MTYPE_DNS, session->host,
               DSB_DTYPE_SMTP, resp->str, "%s", resp->str);

      status = sent(DEL_REQ_TRACE_FLAGS(request->flags),
--- 144,151 ----
      if (session->features & SMTP_FEATURE_DSN)
        rcpt->dsn_notify &= ~DSN_NOTIFY_SUCCESS;

!     dsb_update(why, resp->dsn, (state->misc_flags & SMTP_MISC_FLAG_USE_LMTP) 
? "delivered" : "relayed",
!              DSB_MTYPE_DNS, session->host,
               DSB_DTYPE_SMTP, resp->str, "%s", resp->str);

      status = sent(DEL_REQ_TRACE_FLAGS(request->flags),


thanks,
Sébastien


Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Reply via email to