Hi Jeremy,
On Wed, Jul 29, 2020 at 11:11:22AM +0100, Jeremy Harris via Exim-users wrote:
> On 29/07/2020 10:48, Frank Heydlauf via Exim-users wrote:
> > My test:
> > export EXIM_HELONAME=myheloname
> > # restart exim
> > swaks --from="<>" --to=$ME --server=localhost
>
> I'm guessing that you're not actually running exim from
> the shell you set the environment variable in.
To avoid this I stop/start exim with 'kill -TERM' and '/usr/sbin/exim4 -bd -q5m'
where /usr/sbin/exim4 is the binary (verified).
The env variables are exported in the very same shell, the exim is
started from.
If this wouldn't work, the active-hostname would not be set either - but that works:
root@14c3c675c896:/# ps ax | grep exim
4401 ? Ss 0:00 /usr/sbin/exim4 -bd -q5m
6695 pts/0 S+ 0:00 grep exim
root@14c3c675c896:/# kill -TERM 4401
root@14c3c675c896:/# ps ax | grep exim
6697 pts/0 S+ 0:00 grep exim
root@14c3c675c896:/# export EXIM_HOSTNAME=justanothertest
root@14c3c675c896:/# /usr/sbin/exim4 -bd -q5m
root@14c3c675c896:/# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 justanothertest LF.net custom MTA conf v3.0 Wed, 29 Jul 2020 13:20:49 +0200
quit
221 justanothertest closing connection
Connection closed by foreign host.
Very strange :(
--
Regards
Frank