I am setting up a mail server using postfix and dovecot. I am using virtual users that are stored in a sql database. I've checked the mail queue is empty and the logs show that the mail is received but not forwarded. I've posted the relevant parts of the main.cf and master.cf below:
main.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
master.cf
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
I've also tried replacing /usr/local/libexec/dovecot/deliver with a shell script which would log if the command executed, but no log is saved.