[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alternatives to ETRN

> >      The discussion quickly went away from ETRN, so more than likely I
> > have to hack something together that accepts a message with a domain in it
> > and telnets to port 25, says EHLO and the ETRN domain.

	You can skip the "EHLO", and just do "ETRN".

> I think this is OK - just a five line expect script.
> Although, I think that a small program that would do
> the same thing as ETRN command could be useful.
> There are systems where clients do a `finger doman.name'
> or something to initiate queue run, and such a command
> would ease their transfer to Zmailer.  Something like this:

	Yes, perhaps.
	Although my primary intention has been that each customer
	does something like this:

		echo "ETRN my.domain.name" | telnet smtp.isp smtp
	or:	(echo "ETRN my.domain.name";sleep 2) | telnet smtp.isp smtp

	when they want their email to be delivered.
	Therefore I do consider your valiant programming attempt
	excessively complex ;-)

> main (int argc,char *argv[]) {
> 	FILE *mfp=mail_open(MSG_RFC822);
> 	fprintf(mfp, "%c%c%s\n",_CF_TURNME,_CFTAG_NORMAL,argv[1])
> 	runasrootuser(); /* really needed? */
> 	mail_close_alternate(mfp, TRANSPORTDIR, "");
> }

	The POSTOFFICE/transport/ directory is owned by root, and
	has protection of 755, which creates difficulties unless
	that program is suid-root, and does necessary initial
	setups, and argument verifications.

	However, have you seen any SUID-anything programs in the
	ZMailer suite ?   Care to guess if I want to add any ?

> Eugene

/Matti Aarnio <mea@nic.funet.fi>