Artificial intelligent assistant

How to use remote postfix relay that uses external smtp Below is my use case I want to send email via postfix relay that refers another postfix relay server which is using an external SMTP server: [client] --->[Postfix1]---->[Postfix2]----->[External SMTP] So I will be creating docker image for Postfix1 with keeping all the information of Postfix2 in main.cf file, & Postfix2 will have all the necessary details of External SMTP server. So if user wants to send email they configure Postfix1 in their configuration which then communicates with Postfix2 and Postfix2 passes that request thru external SMTP server. Is this possible?? I have done the same setup but I am getting "Relay access denied (in reply to RCPT TO command)" I have added all the authentication files and information by referring some of the other post but it didn't help, for example: < Can you please guide me on what I am doing wrong?

You need to

* Tell `Postfix1` to forward all traffic to the relayhost `Postfix2`
* Configure `Postfix2` to accept traffic from `Postfix1`



This is done with the configuration snippets (Make sure you have only one of the directives in each `main.cf`):

* Postfix1:




# forward all traffic to Posfix2
relayhost = Postfix2
# make sure you receive bounces
bounce_notice_recipient = postmaster@your.domain


* Postfix2:




# add remote Postfix to local networks
mynetworks = [other IPs]
# relaying accepts mail from local networks
smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination



You should take care of the authentication at `Postfix1`, without a proper setup it would be possible to send massive amounts of SPAM through `Postfix1`.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3ce3229e72f1cded0979789d47de99ce