<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
and created a WEB-INF/php.ini file:
[PHP]
[mail function]
SMTP = <remote host>
smtp_port = 587
smtp_username = <username>
smtp_password = <password>
sendmail_from = <email address>
These settings are apparently not reaching the MailModule, which still tries to connect to the default SMTP server at localhost on port 25. So, it looks like php.ini has no effect. How can this be fixed?