Hello All, For some reason, I want to set two mail servers on one machine. One of them is Postfix. The setup is such that Postfix should receive mails at port 4567 and should send mails corresponding to domain "kmail4u.com" to port 25 of the same machine where other mail server(coded by me) is waiting for incoming mails.
I have installed and configured bind9 which properly associates domain kmail4u.com with the IP address of the machine. And postfix listens to port 4567. But, when I send a mail to port 4567 addressed to x...@kmail4u.com, I get a delivery failure with message "mail for kmail4u.com loops back to myself" This is a part of main.cf file which tries to set this domain as virtual mailbox domain. relay_domains = $mydomain gmail.com yahoo.co.in virtual_transport = smtp:kmail4u.com:25 virtual_mailbox_domains = kmail4u.com virtual_mailbox_maps = hash:/etc/postfix/vmailbox And /etc/postfix/vmailbox contains, @kmail4u.com XXXX Can anybody suggest how I can achieve this set up? Thanks, Mayuresh