X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=115-188-8-213-adsl.sparkbb.co.nz;
X-Received: from [192.168.1.66] (115-188-8-213-adsl.sparkbb.co.nz [115.188.8.213])
by netwin.co.nz (SurgeMail 7.3p) with ESMTP (TLS) id 8090995-1391920
for <surgemail-list@netwin.co.nz>; Wed, 06 Feb 2019 21:44:36 +0000
X-Return-Path: surgemail-support
Subject: Re: [SurgeMail List] Gateway based on sender IP address
To: surgemail-list@netwin.co.nz
References: <ea09624f-1aae-1b53-21bd-980043d7b2a6@serve.net>
<83614242-97c6-2f56-1b38-613d4f61f92a@netwinsite.com>
<7f0e6295-af1d-1909-c5a2-1fd2bdfb9a21@serve.net>
<fb193bf0-629c-4dc1-b3ee-89f4ddcfc900@netwinsite.com>
<415df2e9-cd36-7c89-13aa-929b2adb816c@serve.net>
From: Surgemail Support
Message-ID: <f08c33f5-0f59-1fbf-4cd9-5eca82e46d56@netwinsite.com>
Date: Thu, 7 Feb 2019 10:44:32 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <415df2e9-cd36-7c89-13aa-929b2adb816c@serve.net>
Content-Language: en-US
X-Authenticated-User: surgemail-support
X-Rcpt-To: <surgemail-list@netwin.co.nz>
X-SpamDetect: : 0.000000
X-Info: aspam skipped due to (g_smite_skip_relay)
X-Encryption: SSL encrypted
X-IP-stats: Incoming Last 0, First 3, in=81, out=0, spam=0 ip=115.188.8.213
List-Unsubscribe: <mailto:surgemail-list-leave@netwin.co.nz?subject=unsubscribe>
X-Mailing-List: surgemail-list@netwin.co.nz
List-ID: <surgemail-list@netwin.co.nz>
Precedence: bulk
Reply-To: surgemail-list@netwin.co.nz
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
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