DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

2820 Separating smtp mail to Exchange

  • gaztech46
  • Topic Author
  • Offline
  • New Member
  • New Member
More
03 Feb 2011 13:09 #66056 by gaztech46
2820 Separating smtp mail to Exchange was created by gaztech46
Hi,

Just bought a 2820. Wow what a great router! Does everthing I need. however, I need to work out how to do the following:

I currently use a fixed public IP and only use one WAN. Everything works fine. I want to add another Internet WAN. This one though will be have a dynamic IP. What I want to do is to keep all my mail send/receive on my static IP, plus any VPN traffic and send all other requests (mainly internet browsing) to WAN2. It looks like the router will do this but I can't work out how. Is it simply down to port mapping? If so, how do I exclude ports such as 24 and 110 from WAN2?

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
03 Feb 2011 19:43 #66073 by mikeysoft
Replied by mikeysoft on topic 2820 Separating smtp mail to Exchange
I'm wanting to do this exact same arrangement too...any help appreciated!

WAN1 - server traffic (mainly email server, in/out)
WAN2 - PC traffic (all web, gaming, ftp, etc.)

I'm guessing something to do with IP objects (can set IP ranges to distinguish machines for WAN1 and those for WAN2). Then what?

Don't want it to be based on rules for speed or TCP/UDP/etc.

Thanks

Please Log in or Create an account to join the conversation.

More
03 Feb 2011 20:27 #66074 by jaller79
Replied by jaller79 on topic Dual WAN router anti - spam functionality
Question

my thoughts on this - same issue i asked bt if we could have 2 reverse dns checks to check mail does not get listed as spam.

We are currently adding an additional line to our network using a
Draytek Vigor 2820n - this allows 2 adsl lines for Internet and mail.

The lines will be load balanced using the Draytek.

Line 1 has a Static ip from BT -
Line 2 will have a new Static ip from BE -

Currently - our outgoing mail is forwarded to smtp.btconnect.com - when
we setup a second load balanced line how do we add a second reverse DNS
records for the domain for the static ip address.

Can you have 2 entries for reverse DNS & how do we request?
1. Static from BT
2. Static from provider 2
https://www.bethere.co.uk/web/beportal/homepage

In the end we have moved to hosted exchange and ammended mx record to point to new hosted mail server.

Other options may be to :
send direct via dns
use a thirdpart mail relay service that accepts multiple mail reverse records.

ja
www.allertech.co.uk

thanks

John

Please Log in or Create an account to join the conversation.

More
04 Feb 2011 09:23 #66081 by rpg
Replied by rpg on topic 2820 Separating smtp mail to Exchange
To make sure all you SMTP traffic goes out via WAN1 all you have to do is add a load balancing rule to the Draytek 2820.

Under WAN -> Load Banance Policy create two rules:

Protocol: Any
WAN: WAN1 - NO FAILOVER
SRC IP start: leave blank
SRC IP end: leave blank
Dest IP start: leave blank
Dest IP end: leave blank
Dest Port start: 25
Dest Port end: 25

That will ensure that all Port 25 traffic SMTP goes out on WAN 1. If you enable fail over then when WAN1 goes down it will try and send those outgoing emails to smtp.btconnect.com via WAN2 (O2) which will reject them!

You then want a second rule:

Protocol: Any
WAN: WAN2 - This time you can enable fail over if required
SRC IP start: leave blank
SRC IP end: leave blank
Dest IP start: leave blank
Dest IP end: leave blank
Dest Port start: leave blank
Dest Port end: leave blank

So basically, the server tries to send an email to your ISP SMTP gateway - the router looks to see outgoing traffic on port 25 - the rule matches rule 1 so sends it out on WAN1.

A workstation browses the net (port 80). Rule 1 does not apply so it looks at rule 2. That does apply so goes out on WAN2 (or WAN1 if failover enabled and WAN2 down).

Hope that helps...

Please Log in or Create an account to join the conversation.

More
04 Feb 2011 13:15 #66087 by mikeysoft
Replied by mikeysoft on topic 2820 Separating smtp mail to Exchange
Thanks that's exactly what I was looking for. Hadn't noticed you could specify port ranges and IP ranges in the load balancing!

Please Log in or Create an account to join the conversation.

More
06 Feb 2011 19:40 #66116 by jaller79
Replied by jaller79 on topic Try this site too
http://www.draytek.com/user/SupportAppnotesDetail.php?ID=10

thanks

John

Please Log in or Create an account to join the conversation.

Moderators: ChrisSami