Postfix trivial rewrite problem

Draft | Approver: psycore

Postfix trivial rewrite problem

tutname=Postfix Trivial Rewrite Problem|tutautor=PsyCore|tutversion=1.0|tutquelle=http://listi.jpberlin.de/pipermail/postfixbuch-users/2005-June/017828.html

Error message

This problem deals with the following error message:

postfix/trivial-rewrite[0]: fatal: mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf(0,lock|fold_fix): table lookup problem

Troubleshooting

In the file

/etc/postfix/master.cf

file contains the following entry:

rewrite   unix  -       -       -       -       -       trivial-rewrite

This must be changed as follows:

rewrite   unix  -       -       n       -       -       trivial-rewrite

Now we have to restart Postfix and MySQL:

$ ./etc/init.d/postfix restart
$ ./etc/init.d/mysql restart

Lost emails are forwarded over time and have not been lost.

en/linux/postfix-rewrite.txt ยท Last modified: 2023/11/16 00:36
CC Attribution-Noncommercial-Share Alike 4.0 International