stdevPavelmc / mailad

Software to provision a mail server with users from a Windows or Samba 4 Active Directory
GNU General Public License v3.0
33 stars 11 forks source link

[FEAT] Independent Proxy settings for host/AV/Spamassassin etc #150

Closed Joe1962 closed 2 years ago

Joe1962 commented 2 years ago

Problem description The proxy settings: PROXY_HOST="" PROXY_PORT="" PROXY_USER="" PROXY_PASS="" are global. However,we often use local clamav update mirrors, which would then fail to update.

Proposed solution Use independent proxy settings for AV, for example: PROXY_AV_HOST="" PROXY_AV_PORT="" PROXY_AV_USER="" PROXY_AV_PASS=""

lfdominguez commented 2 years ago

can be an additional ENV_VAR like USE_PROXY_FOR_CLAMAV_UPDATE

Joe1962 commented 2 years ago

can be an additional ENV_VAR like USE_PROXY_FOR_CLAMAV_UPDATE

Probably more efficient that way.

stdevPavelmc commented 2 years ago

I was thinking about this, the flag/var is the most efficient way it seems.

I was thinking also on spamassasin but that is more in-frequent that the AV one... so not for not.

Just ClamAV...

stdevPavelmc commented 2 years ago

Something like this:

### ClamAV uses the declared proxy to update it's database?
# Proxy setting is below, keep reading.
#
# If you are in a proxied env and you have a local ClamAV mirror
# you will need to exclude ClamAV to use it, so this flag is for
# that.
#
# options: yes/no (default yes, case matters!)
AV_UPDATES_USE_PROXY=yes
Joe1962 commented 2 years ago

I was thinking also on spamassasin but that is more in-frequent that the AV one... so not for not.

I agree, never heard of anyone with a spamassasin mirror. Local clamav mirrors are very common here, though.