"Return-Path" with backend set to "mail" doesn't work whith php5 + Postfix because Postfix overwrite the php "Return-Patt" passed.
The solution is pass like fifth parameter to mail function "-r fromAddres@foo.it" and so in lib/SGL/Emailer.php at row 217 I've changed:
case 'mail':
$backend = 'mail';
break;
with:
case 'mail':
$backend = 'mail';
$aParams['-r'] = "-r ".$this->options['fromEmail'];
break;
"Return-Path" with backend set to "mail" doesn't work whith php5 + Postfix because Postfix overwrite the php "Return-Patt" passed. The solution is pass like fifth parameter to mail function "-r fromAddres@foo.it" and so in lib/SGL/Emailer.php at row 217 I've changed:
case 'mail': $backend = 'mail'; break;
with:
case 'mail': $backend = 'mail'; $aParams['-r'] = "-r ".$this->options['fromEmail']; break;
....and now it's work correctly.