Hi all I'm a new openwrt user coming from DD-WRT, been using openwrt for about 1 month now. After familiarization everything appears to work well. However today I noticed that I cannot receive emails from my gmail account using outlook, I think it has been like this from the start. The error I receive is "cannot connect to the server" I have 6 email accounts and they all work.
These are the things I have tried reading from some users with similar issues:
Connect to another server
Reduced MTU from 1420 - 1280 in small increments.
I remember having issues with DD-WRT with my own ISP email and that was rectified by setting my MTU to 1420, never with gmail.
Did you embark into any forms of adblock, banip, proxying, DNS modifications or similar things that might overblock? gmail's webinterface should work on OpenWrt.
No everything is stock...i did change the nordvpn wireguard dns to 1.1.1.1 and 1.0.0.1 i did try the original dns from nord but that made no difference so went back to cloudfare
Keep in mind im accessing gmail via outlook not online gui
Just as a test i installed my backup router with DDWRT and using the same wireguard config file and gmail works fine. Not sure where else to investigate.
Please connect to your OpenWRT device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
wg show
The handling of DNS is differently between DDWRT and OpenWRT but as long as you are not using PBR that should not matter.
Thanks for replying....i am using PBR, i have one device that uses the tunnel, this is my pc where i have all my email accounts.Will this cause problems?
Just a theory but maybe google checks origin of DNS location (ECS) and if your DNS is using a different route then other traffic then that might explain it.
DDWRT handles DNS differently (I know because I implemented it in DDWRT).
The PC you are talking about does it use the WAN or the VPN?
You can check if the DNS is using the same route via ipleak.net and dnsleaktest.com
Ive setup my default route to be WAN. I have 2 physical lan cards in my pc, one has a static ip which is setup to use the VPN the other is WAN. When i want to use VPN i disable one lan card and enable the other. It works well as my ip address matches my lan cards either VPN ip or WAN ip.I have setup my DNS for both WAN and VPN to use cloudfare 1.1.1.1 and 1.0.0.1. Ive checked my DNS using ipleak.net and it matches the cloudfare DNS. Strange because my other 5 email accounts are fine.
Thanks again, i will deinstall PBR module to see if this makes a difference and route everything via vpn..you think this is good idea?
You have to check if ipleak.net not only uses cloudfare but also if the origin is according to the route the traffic takes, so when using WAN it should be your home location and when using the VPN ipleak.net should show the VPN location for DNS.
If it does there is no VPN leak and the problem is probably located elsewhere
I just disabled PBR, so my whole network is using VPN and I also changed my DNS for both wan and vpn to nords dns 103.86.96.100, unfortunately its still the same.
Ill grab those outputs
You are using PPPoE so you really should check MTU settings (ip a), luckily I do not use it so someone with more knowledge probably need to chime in but WAN should be MTU-8 and WG WAN-80 (so that the max for WG is 1412 but sometimes lower is necessary)
Please confirm that I understood your instructions:
1.Adjust MTU to 1412
2.Add mtu_fix '1' vpn zone
I set MTU to 1412, worked once then subsequent send/receive emails it would still fail checking gmail email.
Not sure where to set mtu_fix, however i enabled mss clamping in the vpn zone and it works. (Is this the mtu_fix?) I then put MTU back to 1420 and it still works. So should i use 1412 or 1420 MTU
Tomorrow I'll reflash my R7800 and make this changes, hopefully its all good fingers crossed.