adjust base postfix role to use lmdb on rhel10 hosts #13035
Labels
No labels
announcement
anubis
authentication
aws
backlog
blocked
bodhi
ci
cloud
communishift
copr
database
day-to-day
dc-move
deprecated
dev
discourse
dns
downloads
easyfix
epel
firmitas
forgejo_migration
Gain
High
Gain
Low
Gain
Medium
gitlab
greenwave
hardware
help wanted
high-trouble
koji
koschei
lists
low-trouble
medium-trouble
mirrorlists
monitoring
Needs investigation
odcs
OpenShift
ops
outage
packager_workflow_blocker
pagure
permissions
Priority
Needs Review
Priority
Next Meeting
Priority
🔥 URGENT 🔥
Priority
Waiting on Assignee
Priority
Waiting on External
Priority
Waiting on Reporter
rabbitmq
release-monitoring
releng
request-for-resources
s390x
security
SMTP
sprint-0
sprint-1
src.fp.o
staging
unfreeze
waiverdb
websites-general
wiki
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/tickets#13035
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rhel10 doesn't ship with bdb, so hash: maps don't work in postfix.
Use lmdb: instead.
So, we need to adjust our roles/base/postfix to install a config using lmdb on rhel10.
Either only on rhel10, or switching everything to use lmdb if it's available.
Metadata Update from @zlopez:
So as a test I tried to migrate mailman01.stg to lmdb. Here is what I needed to do:
/etc/postfix/main.cfchangehash/btreetolmdbdnf install postfix-lmdb(I think this will not be needed on RHEL 10)postalias lmdb:/etc/aliasesto create.lmdbfilepostmap lmdb:/var/lib/mailman3/data/postfix_domains(this is only needed for mailman3, but all the files converted from bdb to lmdb needs to be converted like this)postmap lmdb:/var/lib/mailman3/data/postfix_lmtp(this is only needed for mailman3, but all the files converted from bdb to lmdb needs to be converted like this)setsebool domain_can_mmap_files 1(there will be permission denied otherwise)This makes the postfix running with lmdb instead of bdb. I will try to reflect this in ansible and create PR. I think it won't be an issue to convert all the existing postfix deployments to bdb.
I created the PR for postfix here infra/ansible#3120
Tested it out today on staging, have to do some adjustment that ansiblelint didn't caught, but it worked on staging proxies, mailman and correctly created lmdb files.
I also tested it out on pkgs and pagure to check it will not do anything and confirmed that it completely skipped the lmdb parts.
I think we can close this ticket and every machine should be automatically converted when playbooks will be ran next time.