This commit is contained in:
Christoph Haas 2026-06-18 00:58:14 +02:00
parent 1e6978260a
commit 9b110d7b53

View file

@ -30,7 +30,7 @@ Now you need to make Postfix use this database mapping:
```sh ```sh
postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
```sh ```
The “postconf” command conveniently adds configuration lines to your `/etc/postfix/main.cf` file. It also activates the new setting instantly so you do not have to reload the Postfix process. The “postconf” command conveniently adds configuration lines to your `/etc/postfix/main.cf` file. It also activates the new setting instantly so you do not have to reload the Postfix process.
@ -38,7 +38,7 @@ The test data you created earlier added the domain “example.org” as one of y
```sh ```sh
postmap -q example.org mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf postmap -q example.org mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
```sh ```
<Aside type="tip" title="Access denied?"> <Aside type="tip" title="Access denied?">
If you get an error like “postmap: warning: connect to mysql server 127.0.0.1: Access denied for user mailserver@localhost'” then please double check the password of the mailserver database user. It is either wrong in the CF file or you did not create the database user correctly using the GRANT query on the previous page. If you get an error like “postmap: warning: connect to mysql server 127.0.0.1: Access denied for user mailserver@localhost'” then please double check the password of the mailserver database user. It is either wrong in the CF file or you did not create the database user correctly using the GRANT query on the previous page.