I'm currently making the move from Sendmail to Postfix. My current (Sendmail) mailserver delivers most incoming mail to local mailboxes, but some of the incoming mail needs to be forwarded to another external mailserver (
mail.externaldomain.dom) which is listening to a non standard port (
10025).
In Sendmail, this involved creating a mailer that delivers to port 10025 ("
ESMTP10025"), then create a rule in mailertable.db that specifies all mail addressed to mail.externaldomain.dom should use the new mailer, then simply forward the incoming mail to mail.domain.dom in
virtusertable.
So for instance, mail arrives at my mailserver address to
user1@mydomain.dom. Virtusertable contains a line that reads:
Code:
user1@mydomain.dom user1@mail.externaldomain.dom
Sendmail then uses the ESMTP10025 mailer to forward the incoming mail to port 10025 on mail.externaldomain.dom.
This works perfectly in Sendmail.
But how do I do this with Postfix?