Thank you very much, it works like a charm. :) Now we got a new request that they want to get a mail when someone tries to connect. On an unsuccessfull connection to fire off a mail. I managed do do that, but I get three mails instead because of the three log inserts: <pptp-0>: waiting for call... <...