I need to setup a service that will receive an email such a $uniqueID@domain.com lookup that uniqueID in a MySQL database for an email address then forward the incoming email to the email address (which will be external to the server).
I want to do this with an MTA only not use anything like dovecot in the mix as there wont be any IMAP or POP3 requirements. Can anyone provide a rough guide how I would go about this with exim or postfix?