i need some help to change my sender mail address, because i have some mail addresses and i don’t own the domain. In NS7 i added these addresses to the /etc/postfix/generic file and it worked
In NS8 i tested the following, but then i cant send mails:
First command: runagent -m mail1
First i edit the generic file with: podman exec -ti postfix vi /etc/postfix/generic
Cannot comment on whether your solution works or if it is the right way to accomplish your goal.
However found out posttix in the (Alpine) container abandoned the Berkey Database (hash) due to license issues. Nowadays it uses Lightning Memory-Mapped Database Manager (LMDB). Meaning postmap creates *.lmdb databases.
Instead of:
smtp_generic_maps = hash:/etc/postfix/generic
try:
smtp_generic_maps = lmdb:/etc/postfix/generic
However I do not think your solution will survive an update, the generic file should live on a persistent storage location (volume) such as /etc/postfix/main.cf.d