-1

'lo

I would like to configure the retrun-path of postfix using the ServerName parameter of Apache.
Or with an other parameter of Apache.
Is it possible?

Exemple :
I have /home/toto2/ with /etc/apache2/site-enabled/toto2.conf
configuration file:

DocumentRoot /home/toto2/public_html
ServerName toto2.domaine.com
ServerAdmin retour_toto2@domaine.com

I would like that when I send an email from one of the websites (with the php mail function), by default, return-path = apache servername

1 Answers1

0

There is no need to involve postfix in this, when you use the php mail() function (or pear::mail, etc), you can define any and all valid mail headers including the reply-to:, return-path, and so on.

NickW
  • 10,183
  • 1
  • 18
  • 26
  • I am not the developer of these sites. this is why I want a better solution by modifying the server configuration – Damien ARNAUD Feb 27 '13 at 13:52
  • In that case you'll need to call a script from inside postfix to parse headers and insert the ones you need.. – NickW Feb 27 '13 at 14:28
  • thank I have find: /etc/apache2/site-enabled/xxx.conf IfModule mod_php5.c php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@domain.name" IfModule – Damien ARNAUD Feb 27 '13 at 15:22