I want to send all mail for a domain to a Discourse forum server running in docker on the same machine that users mail-receiver. Mail-receiver I have set to use SMTP on port 2025. SMTP set to use normal port 25 for all other mail coming to the server domain. To be concrete, server is at pterosaur.space, and Discourse runs at jackrail.space on the same server. So in /etc/postfix/transport I have:
jackrail.space smtp:localhost:2025
But all that happens is this error:
pterosaur postfix/smtpd[4648]: NOQUEUE: reject: RCPT from mail-io1-f52.google.com[209.85.166.52]: 554 5.7.1 jackrail.test@jackrail.space: Relay access denied; from=andrew.bernard@gmail.com to=jackrail.test@jackrail.space proto=ESMTP helo=<mail-io1-f52.google.com>
Postfix is supposed to be simple but I find I go round in circles. I must be doing something fundamentally wrong. I read the manuals and just know less. This must surely be a common use case, but I am unable to find any examples the same - or perhaps I dont understand them.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…