script to check email

Hello All,
I have a subdomain which I use to update my IP (something like dyndns).
To update the IP, I have to check/pop a certain mailbox using pop3 protocol.

For example:
telnet server-name 8110
user username
pass password
stat
exit/quit

Can we do this via mikrotik script? Please help.

Thanks.
Anto

no, you cannot receive e-mails using RouterOS, at this moment you only have possibility to send e-mails with some status information from routeros through your SMTP server.

actually, we are not going to receive any emails.
we just want to pop that email account, there is never any email in that account.
so we can update our current public ip.
any idea?

thanks.
anto

if we try from the terminal,
telnet into the mikrotik, then run
/system telnet ip-number 8110

we can connected to the server, then we can manually type:
user
pass
stat
quit

we can manually update our ip this way.

can we do this automatically? convert the above command into script?

thanks.
anto

problem is - you need interactive script, something like tcl, RouterOS does not support that. And there is no way you can open connection and afterwards work with it.

you can run tcl script on linux box and issue commands on the router from there.

thanks for your reply,
there should be no other pc or box inside the network.

the mikrotik is used as a vpn/pptp server, connected to internet via adsl with dynamic public ip, inside the network will be a time attendance machine, so remote site can download the attendance log inside the machine.

another way is to use changeip.com. it seems there are script available for changeip updating in mikrotik.
but is it possible to do like this? (oot)
let say we have a domain abc.com running normally, pointing to ns1.def.com, can we set vpn1.abc.com to register into changeip.com? so we can update the vpn1.abc.com via mikrotik script. while the whole domain abc.com still pointing to ns1.def.com?

thanks a lot.
anto