>It's actually quite simple: > 1) Create a file with the MySQL credentials and the query > 2) Include the created file in transport_maps within main.cf > > /etc/postfix/mysql_relay_transport_maps.cf > user = dbuser > password = dbpass > dbname = maildb > hosts = unix:/var/run/mysqld/mysqld.sock > query = SELECT transport FROM domain WHERE domain = '%s' > > /etc/postfix/main.cf > transport_maps = > btree:/etc/postfix/transport_maps, > proxy:mysql:/etc/postfix/mysql_relay_transport_maps.cf
Thank you kindly, is there some short code for the entire email address, because just domain won’t cut it (were chosing transport based on full emailaddress)