Added Return-Path header in LMTP

This commit is contained in:
Andris Reinman 2017-08-23 15:59:40 +03:00
parent 3b53a80860
commit 5cbaa4c77a

View file

@ -142,7 +142,7 @@ const serverOptions = {
// create Delivered-To and Received headers
let header = Buffer.from(
'Delivered-To: ' + recipient + '\r\n'
['Delivered-To: ' + recipient, 'Return-Path: <' + (sender || '') + '>'].join('\r\n') + '\r\n'
//+ 'Received: ' + generateReceivedHeader(session, queueId, os.hostname().toLowerCase(), recipient) + '\r\n'
);