Actually, plan 'b', try this:
g_gateway_ignorewild_ip "ip.of.sending.servers"
that might do exactly what you want.
chrisP.
On 7/02/2019 7:21 AM, Bob Fera wrote:
If I remove the "gateway" settings, will g_route and
g_route_except to behave the same way as g_gateway and
g_gateway_ifnot for local email addresses?
Bob Fera
I.T. Manager
Zenith Information Group
18757 Burbank Blvd., Suite 116
Tarzana, CA 91356
Phone: 818-206-8634 Ext. 160
Fax: 818-345-2605
www.zis.com
Members of NACHA
The Electronic Payments Association
On 2/5/2019 5:45 PM, Surgemail
Support wrote:
What I'm suggesting is remove g_gateway rule, and replace it
with g_route rule to send everything to the gateway, with the
exception... ?
ChrisP.
On 6/02/2019 2:22 PM, Bob Fera
wrote:
Hmm, not sure....
I have g_gateway (domain=*) set to a smarthost, and ideally
I'd like to bypass that smarthost for messages coming from IP
address x.x.x.x. (I'm also utilizing g_gateway_ifnot.)
Currently the only case where I'm using g_route is to send
mail destined for one particular domain to a different host
(sounds like I could use g_gateway for that, too). How does
g_route_except interact with those other settings? In other
words what takes priority over what?
If we can't get this concept to work and I have to do the
routing based on sender email address, is there any way to
restrict that a particular sender email comes from a specific
IP address(es)? And, in that case, can "dest" in g_route be
"*" (i.e. use MX)?
Thanks,
Bob
Bob Fera
I.T. Manager
Zenith Information Group
18757 Burbank Blvd., Suite 116
Tarzana, CA 91356
Phone: 818-206-8634 Ext. 160
Fax: 818-345-2605
www.zis.com
Members of NACHA
The Electronic Payments Association
On 2/5/2019 4:57 PM, Surgemail
Support wrote:
Does this help you?
g_route_except "ip.address"
ChrisP.
On 6/02/2019 12:09 PM, Bob Fera
wrote:
Hello all,
I've been hunting around with no luck on this. Is there
any way to get Surgemail to send outbound mail to a
specific gateway/smarthost (or, more specifically in my
case, no smarthost) depending on the ip address the
message came from (i.e. the sender's ip address)?
"g_route" does it based on sender's email address, which I
guess I'll use if I have to, but in my particular case the
IP address would be better.
Given that, does "g_route" allow "*" for the "dest" field
(i.e. use MX record to send directly and bypass the
smarthost)?
In other words, and for more context, I'm trying to get
emails generated by a specific system on my network to go
out directly rather than through my smarthost/scanning
service.
Thanks!
Bob
--
Bob Fera
I.T. Manager
Zenith Information Group
18757 Burbank Blvd., Suite 116
Tarzana, CA 91356
Phone: 818-206-8634 Ext. 160
Fax: 818-345-2605
www.zis.com
Members of NACHA
The Electronic Payments Association
|