Draytek email alert...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Draytek email alerts

9 Posts
6 Users
0 Reactions
902 Views
Posts: 8612
Full Member
Topic starter
 

Can't seem to get my Draytek router's email alerting to work. Is it picky about SMTP servers? The one I was going to use is SMTP, but the server name is 'mail1.*'


 
Posted : 12/11/2020 1:29 pm
Posts: 6874
Full Member
 

I know bugger all about Draytek routers but enough about networking and mail1.* does not look like a legitimately formed hostname, or at least I've never seen a wildcard allowed in such a way.

mail1 yes, mail1.your.domain yes, mail1.local also but not mail1.*

Is the mail server on the same network as the router or is it out on the internet? Can you refer to it in the router config by its IP address?


 
Posted : 12/11/2020 1:50 pm
Posts: 8612
Full Member
Topic starter
 

Sorry to be clear it’s mail1.something.org.uk, which from what you’ve said is a properly formed address?


 
Posted : 12/11/2020 2:09 pm
Posts: 77347
Free Member
 

Are there logs you can review to find error messages?

SMTP these days typically requires either a secure connection, sender authentication, or both. The days of pointing a firehose at port 25 are long gone (thank the gods). Check the requirements on the server you're relaying through and make sure that they match the settings on the router.


 
Posted : 12/11/2020 2:21 pm
Posts: 811
Free Member
 

Using a Vigor2850n on 3.8.8.2_232201:
Works OK using Yahoo SMTP smtp.mail.yahoo.com on 465
Note - some providers disallow 3rd party apps connecting - can be circumvented using "app explicit" passwords (yahoo provide this function).
Depending on Draytek model, maybe use "syslog explorer" or the syslog app to view what's going on re smtp.

Syslog tool "Syslog utility" link.

May require local firewall rule to allow syslog traffic in.


 
Posted : 12/11/2020 2:27 pm
Posts: 0
Free Member
 

Using Draytek Vigor3910 here. I just use the Syslog application on another machine, and point the router to that - there's a syslog section


 
Posted : 12/11/2020 2:53 pm
Posts: 6874
Full Member
 

Wot Cougar said. Mail servers that allow any client to connect (open relays) are very rare these days as they're an internet menace. Find out what the mail server mandates in order to allow an SMTP connection. Whomever runs it should have a definition of how to connect to it, assuming it's not just a connectivity issue at your end.


 
Posted : 12/11/2020 3:29 pm
Posts: 8612
Full Member
Topic starter
 

Syslog utility is Windows only and we are a Mac household :-/

What I want to do is keep a log of when the WAN drops out as this is being a bit of a menace…


 
Posted : 12/11/2020 4:48 pm
 StuF
Posts: 2068
Free Member
 

Your email provider may be picky about smtp servers as well, recently we couldn't work out why some emails were getting through to some but not others - turned out Office365 had blocked the smtp server (free package) but yahoo hadn't blocked it.


 
Posted : 12/11/2020 5:31 pm
Posts: 811
Free Member
 

Continued from up there ----^

Depends on model/firmware but *I think* this is how I do the WAN/VPN connect/disconnect email thing:

Create a "Mail Service Object":
From main menu - Object Settings >> SMS / Mail Service Object (Mail Server tab).
Pick an unused entry and add profile details (here is mine):
Profile Index: 1
Profile Name: MailAlertYahoo
SMTP Server: smtp.mail.yahoo.com
SMTP Port: 465
Sender Address: ????@yahoo.com
Use SSL: Tick
Authentication: Tick
Username: ????@yahoo.com
Password: <youremailaccountpassword-see note on allowed/insecure apps>
Sending Interval (seconds):30

Click OK.

Create a notification object:
From main menu - Object Settings >> Notification Object
Pick an unused entry and add profile details (here is mine):

Profile Name: ObjMailAlertYa
Category Status
WAN (Tick) Disconnected (Tick) Reconnected
VPN Tunnel (Tick) Disconnected (Tick) Reconnected

Click OK.

A restart might be needed/useful and doing so should test the email - it might take a few mins to propagate to your email provider.

You can also set an email alert for DoS Attack, IM-P2P and VPN LOG (not sure what difference is to above VPN option).
Usefully, you can easily generate a test message, too.
From main menu - System Maintenance >> SysLog / Mail Alert Setup (Mail Alert Setup)
Set up as above.
For the 3 extra options, I use:
DoS Attack: Untick
IM-P2P: Tick
VPN LOG: Tick
... But have never received an email with these subjects within.

To test your email settings, press the, er, "Send a test e-mail" button.

For the web portal/online Syslog viewer:

From main menu - Diagnostics >> Syslog Explorer
Tick " Enable Web Syslog",
Syslog Type: All
Display mode: Always display new event.

A restart might be needed/useful but a "refresh"/screen refresh should do it-it does take a while.


 
Posted : 12/11/2020 6:24 pm

6 DAYS LEFT
We are currently at 95% of our target!