Re: [exim] Exim server behind NAT router (and HELO)

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Toralf Lund
CC: Exim Mailing List
Betreff: Re: [exim] Exim server behind NAT router (and HELO)
On Tue, 15 Mar 2005, Toralf Lund wrote:

> I'm running an Exim (version 4.43 on Linux) server on a private network with
> an address-translating router. Works rather well, but the address translation
> means that the HELO won't be valid


Use primary_hostname or helo_data.

> I can't just insert the info there, either, as the router has dynamic
> address setup, so the address it translates to as well as the associated
> hostname might change.


primary_hostname isn't expanded but helo_data is. Write some code that
dynamically finds out your externally-visible hostname, e.g. using dynamic
DNS, and use that for your helo_data setting.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}