Some of
them send mails to the internet, so I cannot change the PTR of the
firewall to one of those hostnames. I need exim to identify itself in
the HELO sequence as the PTR record for the firewall; RFC 822 states:
HELLO (HELO)
This command is used to identify the sender-SMTP to the
receiver-SMTP. The argument field contains the host name of
the sender-SMTP.
Now to the receiver SMTP, my host appears as the firewall, so IMHO, it
must identify itself with the hostname set in the DNS for the firewall.
[...]
HELO is for identifying the mailserver, not the domain it sends for.
there is no reason why the hostname of the mailserver should match the
domain names of the mails it sends out
I agree.
if both HELO and the PTR record say mail.server.com there is no problem,
whatever the domain of the send mail might be.
Exactly, and herein lies my problem...