Postifx problems with mail delivery reports and reading confirmation.

Created:

2016-11-16 12:49:13 UTC

Modified:

2017-04-24 11:21:53 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Postifx problems with mail delivery reports and reading confirmation.

Applicable to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

If " Return-Path " in mail header is not null/empty, then customers using Exchange and Fetchmail have a problem with mail delivery reports and reading confirmation.

    Return-Path: <>   <=== Valid

Return-Path: <MAILER-DAEMON> <== Invalid

Cause

The issue is caused by Exchange and Fetchmail configuration.

Resolution

Check your postfix configuration:

# grep plesk_virtual /etc/postfix/master.cf
plesk_virtual unix - n n - - pipe flags=DORhu user=popuser:popuser argv=/usr/lib64/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames

If it looks like example above delete flag 'R' from /etc/postfix/master.cf . It should look like the following:

    plesk_virtual unix - n n - - pipe flags=DOhu user=popuser:popuser argv=/usr/lib64/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames

Flag "R" means prepend a Return-Path: message header with the envelope sender address according to documentation:

http://www.postfix.org/pipe.8.html

To apply changes restarted postfix:

    [root@plesk02 ~]# /etc/init.d/postfix restart
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]

After that you will be able to receive notification without 'Return-Path' variable:

    DomainKey-Status: no signature
X-Original-To: info@domain.ltd
Delivered-To: info@domain.ltd

Instead of the previous configuration where 'Return-Path' was set to <MAILER-DAEMON> :

    DomainKey-Status: no signature
Return-Path: <MAILER-DAEMON>
X-Original-To: info@domain.ltd
Have more questions? Submit a request
Please sign in to leave a comment.