rye / lopenvas

A Dockerized OpenVAS installation
0 stars 1 forks source link

Fix sendmail configuration #10

Open rye opened 5 years ago

rye commented 5 years ago

We need to have a line DH<mailhost>.<domain> and DM<who we're masquerading as> inserted into the sendmail.cf file.

We might also need to have the lines:

R$+ < @ $* [REDACTED] .> $* $#mx1smtp $@ mailhost.[REDACTED] $: $1
R$+ < @ $* > $* $#smtp $@ mx1.[REDACTED] $: $1 < @ $2 > $3

in the configuration as well, but I'm not sure. Those should be the only significant configuration changes necessary. (Specifically, the DH macro, as that specifies where mail gets routed through which is key information.)

I think this should be exposed via environment variable and fixed in that way.

rye commented 5 years ago

Better yet — use DSsmtp.[REDACTED] for a "smart relay", and update /etc/hosts to include a FQDN.