Cent OS 6.9
Create /etc/postfix/virtual-regexp with the following content:- /.+@.+/ email@service.com
Edit /etc/postfix/main.cf and add virtual-regexp to the virtual_maps configuration (if configuration does not exist, add the line):
- virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp
Build the mapfile:
- postmap /etc/postfix/virutal-regexp
Finally, create a vritual.db (if file does not exist):
- touch /etc/postfix/virtual && postmap /etc/postfix/virtual
Source: