Attachment size

Hi,

I would like to ask if you manage somehow to skip an issue like below:

Note: This report exceeds the maximum length of 1048576 characters and thus
was truncated.

but for containers edition. In the past I was able to managed this using i.e. that solution: I need help I cant see the reports be sent out because of maximum length - #13 by llopez

However it’s not so simple for docker as we cannot modify systemctl as it’s not a service. I was trying to play with MTA setup and setting a size, but it’s not an option here:

  - MTA_SIZE=10048576

I’m just wondering if there is a way to make it. Any help would be appreciated.

I think you can implement the previous solution you referenced by downloading gvmd and adjusting the start_gvmd.sh file, and using that rather than the image hosted on DockerHub:

[ -z "$GVMD_ARGS" ] && GVMD_ARGS="--listen-mode=666"

add the other argunents:

[ -z "$GVMD_ARGS" ] && GVMD_ARGS="--listen-mode=666 --max-email-attachment-size=-1 --max-email-include-size=-1"

Something like this should work.

To build the container from the local gvmd repository you need to replace the image with a build instruction to point tot the local prod.DockerFile:

  gvmd:
    build:
      context: .docker
      dockerfile: prod.Dockerfile
    restart: on-failure
1 Like