You can feed the link to curl on your mail server based on the address/subject combination. Like custom spam filter.
I would try to do that manually as a proof of concept first. If accessing the link by a bot (your email server running curl for example) fails to give you WLAN access, it might be because like hotels, airports, etc.... PSU will enable the access to your MAC address observed on Wlan. In that case your email server != your laptop by PSU WLAN handshake. On Sun, 2016-09-25 at 15:44 -0700, Keith Lofstrom wrote: > PSU fixed the guest wifi, and I appreciate that. > Perhaps Mordac took a vacation this summer. > > A minor annoyance remains. To get access, PSU's > access bot either texts your slave-phone (which I do > not have) or sends an html email to the address you > provide (my sole use of gmail). The email has a > weblink that, when clicked, completes the handshake, > after which 24 hours of access is provided. Cumbersome. > > I run postfix on my own mail server. How easy would > it be to set up a special email address that drives > a script that extracts the web address and "clicks > it" for me? > > For example, imagine the special email address is > [email protected] . Postfix redirects the email body > to a script which extracts the PSU URL: > > > ... > > To activate your PSU Guest Wi-Fi access for 24 hours, > > please click on the following link: > > https://sentinel.net.pdx.edu/activate/email/800fa36407c214d1cd56d7f > > b1302adae > > ... > > ... then sends a wget to that address, discarding the > result. This all happens in the background, I don't > need to jump through the extra hoops. > > Of course, I will use a more obscure email address on > my server, and change it from time to time. Besides > bureaucratic obstinacy, I don't see much potential > for problems. > > Am I missing something important? Can a clever > programmer suggest an even easier way to do it, > perhaps even automagically filling out the guest > wifi "signin and agree" form as soon as I connect > to PSUguest? > > I can even imagine a command line script that enables > my wifi (I leave that turned off by default), connects > to PSUguest, fills out the script, then activates the > openvpn link to my home network. Seems like someone > with better programming skills and a similar network > setup could figure this out in 30 minutes. > > Keith > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
