JR Swartz:
> I established MX records for each of the virtual domains and email is
> flowing fine. However, when web site owners send newsletters out from their
> web site content management systems, the undeliverable emails get sent to
> root on the webserver instead of being sent to the owners virtual domain (MX
> record) on the newly separated mailserver. Hence, I get every undeliverable
> email.
Specify the correct bounce address on the sendmail command line.
sendmail -f [email protected] other-sendmail-parameters...
Otherwise, SMTP servers will return undeliverable mail to the
account of your web daemon.
According to http://us.php.net/manual/en/function.mail.php
Description
bool mail ( string $to , string $subject , string $message [,
string $additional_headers [, string $additional_parameters ]]
)
Sends an email.
Parameters
...
additional_parameters (optional)
The additional_parameters parameter can be used to pass additional
flags as command line options to the program configured to be
used when sending mail, as defined by the sendmail_path
configuration setting. For example, this can be used to set
the envelope sender address when using sendmail with the -f
sendmail option.
Thus, one should use:
mail($to, $subject, $message, $additional_headers,
"-f [email protected]");
With this, all correct implementations of SMTP will send bounces
to [email protected] instead of your apache daemon.
Wietse