Monday, June 29, 2009

Postfix กับการส่ง email ด้วยหลาย ๆ Relay

---+------------------------+
---| relay ISP
---| 202.25.25.25:25
---+------------------------+
----------^
----------|
----------|
+-------------------------+
| 202.25.25.24
| postfix
| 10.0.0.1
+------------------------+
----------|
----------|
----------v
---+-------------------------+
---| relay LOCAL
---| 10.0.0.25:25
---+-------------------------+


Normally when you need to send massive emails via shared gateway. The possibility way is to set your gateway to relay to ISP's smtp. But what happen if a huge destination emails is in local network. You have to send every local email by local relay?

Please try this

# Create a hash transport map
# touch /etc/postfix/transport
# Add this lines to /etc/postfix/transport
mydomain.com relay:10.0.0.25:25
# Create Map
#postmap /etc/postfix/transport
# Add your transportation to /etc/postfix/main.cf
# postconf -e "transport_maps = hash:/etc/postfix/transport"
# Then reload your postfix
#/etc/init.d/postfix reload

No comments: