How to rewrite From: address based on Sender IP address

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
zcs
Posts: 8
Joined: Sun Apr 19, 2020 12:18 pm

How to rewrite From: address based on Sender IP address

Post by zcs »

Example:

Code: Select all

zimbraMtaMyNetworks: 127.0.0.0/8  192.168.100.1/32 192.168.100.2/32 
Any email sent from 192.168.100.1 should rewrite any

Code: Select all

/^from: (.*)$/ REPLACE from: server-a@example.com PREPEND X-From: $1
Any email sent from 192.168.100.2 should rewrite

Code: Select all

/^from: (.*)$/ REPLACE from:: server-b@example.com PREPEND X-From: $1
Any possibility to implement this using custom script or any inbuilt feature ?
Post Reply