Postfix Select RELAY according to the letter target address

zhaozj2021-02-16  124

Thank you for

Malarium

of

Ma Jide's Week: http://www.ieasy.org/coffee/archives/cat_ec.html

Provide solution! Postfix Select RELAY according to the letter target address

First post the question: Now the demand is that the machine can only access free addresses so if you let Postfix send trust to the target, you can't send it. I have to use a SMTP server that can send a message to all the SMTP servers as RELAY (of course it allows RELAY after certification)

And I hope that IP according to the IP of the target, if it is free IP, postfix is ​​directly sent if not, only uses relay

How to set it? ------------------ then now solution

Thanks to a master pointing point :) "Man 5 Transport" tells the steps I made First Edit / etc / postfix / Transport Add # Start PKU.EDU.CN SMTP: .pku.edu.cn SMTP: Sohu.com SMTP : # SMTP Directly Send *: # Other Address Using Main.cf Defined by Main (Default Relay) Send # End Postmap / etc / Postfix / Transport at / etc / postfix / main TRANSPORT_MAPS = Hash: / etc / postfix / TransportPostFix Reload

This solves my problem, but I haven't reached my demand for free IP to choose Relay. If you have any new ideas, please discuss :)

Published by Coffee 23:05 | Reply (0) | Quote

转载请注明原文地址:https://www.9cbs.com/read-8564.html

New Post(0)