From owner-freebsd-questions Mon Nov 2 01:12:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA07987 for freebsd-questions-outgoing; Mon, 2 Nov 1998 01:12:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from prometheus.smlt.com (prometheus.smlt.com [195.172.80.146]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA07981 for ; Mon, 2 Nov 1998 01:12:36 -0800 (PST) (envelope-from quintin@smlt.com) Received: from orion.smlt.com (orion.smlt.com [195.172.80.149]) by prometheus.smlt.com (8.8.7/8.8.7) with ESMTP id IAA15480; Mon, 2 Nov 1998 08:12:48 GMT Received: from localhost (quintin@localhost) by orion.smlt.com (8.8.7/8.8.7) with SMTP id JAA08942; Mon, 2 Nov 1998 09:44:02 GMT Date: Mon, 2 Nov 1998 09:44:02 +0000 (GMT) From: Quintin Oliver To: Administrador del Sistema cc: freebsd-questions@FreeBSD.ORG Subject: Re: About mail and etrn parameters In-Reply-To: <199811012132.SAA11367@platon.itacom.com.py> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a TCL script for this: #!/usr/bin/tclsh # usage: etrn set server [lindex $argv 0] set domain [lindex $argv 1] set s [socket $server smtp] fconfigure $s -buffering line fconfigure $s -translation {auto crlf} puts stderr [gets $s] puts $s "ETRN $domain" puts stderr [gets $s] puts $s "QUIT" puts stderr [gets $s] close $s So, lets say that your domain is `mydomain.com' and the machine that's storing for you is `store.isp.net' then you'd use the script like this: etrn store.isp.net mydomain.com BTW, the script wasn't written by me, it was written by a Linux guru!! :-) HTH, Quintin. On Sun, 1 Nov 1998, Administrador del Sistema wrote: > I want to download my email from my ISP > I have an MX record to wich point to my system, but my system is not permanetly > connected. > I see an example from the book The Complete FreeBSD by Greg Lehey in the > page number 468. > This example work fine, but my question is? > How i can do an script that automate this work? > i want to tell to remote system automatically when i am connected. > Thanks in advance > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message