After importing my old databases, the mail local_recipient map is suddenly not working any more
After importing old databases everythimng looks fine now.
But the mail local_recipient maps are not working (/etc/postfix/main.cf looks fine, as before, and postfix was restarted). Mails to test@example.org rejected with Error 550 Recipient address rejected: User unknown in local recipient table
/* as in your installation guide */ transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = hash:/var/lib/mailman3/data/postfix_domains
The files appears to be present: /var/lib/mailman3/data# dir 4 -rw-rw---- 1 mailman mailman 339 Oct 20 21:13 postfix_domains 8 -rw-r----- 1 mailman mailman 12288 Oct 20 21:13 postfix_domains.db 4 -rw-rw---- 1 mailman mailman 2714 Oct 20 21:13 postfix_lmtp 12 -rw-r----- 1 mailman mailman 12288 Oct 20 21:13 postfix_lmtp.db
What else is needed to get the list-addresses working and not rejected? It worked before the import.
Uh, it seems to be the OLD domain from the (old) database. I have to fix the domain, too.
systemctl stop mailman3 systemctl stop mailmanweg
mysqldump mailman3 > mailman3-olddomain.sql sed "s/olddomain/newdomain/g" mailman3-olddomain.sql > mailman3-newdomain.sql mysql mailman3 < mailman3-newdomain.sql
systemctl start mailman3 systemctl start mailmanweg
solved my problem of "how to change the mail domain name".
participants (1)
-
Wikinaut