Skip to content

bug report: ENABLE_QUOTA=0 produces sed error. #3706

@casperklein

Description

@casperklein

📝 Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.

👀 What Happened?

In #3703, I've replaced sed statements with our sedfile wrapper. This revealed a not working sed statement:

[  DEBUG  ]  Setting up Dovecot quota
[  ERROR  ]  No difference after call to 'sed' in 'sedfile' (sed -i s|check_policy_service inet:localhost:65265||g /etc/postfix/main.cf)

👟 Reproduction Steps

Start DMS with ENABLE_QUOTA=0:

docker run --rm --interactive --tty --name dms-test_example \
                --env OVERRIDE_HOSTNAME=mail.example.test \
                --env POSTFIX_INET_PROTOCOLS=ipv4 \
                --env DOVECOT_INET_PROTOCOLS=ipv4 \
                --env ENABLE_CLAMAV=0 \
                --env ENABLE_AMAVIS=0 \
                --env ENABLE_RSPAMD=0 \
                --env ENABLE_OPENDKIM=0 \
                --env ENABLE_OPENDMARC=0 \
                --env ENABLE_POLICYD_SPF=0 \
                --env ENABLE_SPAMASSASSIN=0 \
                --env LOG_LEVEL=trace \
                --env ENABLE_QUOTAS=0 \
                mailserver-testing:ci

Related script:

# disable quota policy check in postfix
sed -i "s|check_policy_service inet:localhost:65265||g" /etc/postfix/main.cf

🐋 DMS Version

Branch from #3703 not merged yet

💻 Operating System and Architecture

Debian

⚙️ Container configuration files

📜 Relevant log output

No response

Improvements to this form?

No response

Metadata

Metadata

Assignees

Labels

kind/bug/reportA report about a bugmeta/needs triageThis issue / PR needs checks and verification from maintainers

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions