Re: How to send E-mail without an external SMTP server ?





On Oct 16, 2:04 am, "fdu.xia...@xxxxxxxxx" <fdu.xia...@xxxxxxxxx>
wrote:
It's not safe if I have to use login method explicitly by which I have
to put my username and password in the script. I have also tried the
Unix command 'mail', but without success, either. I could use 'mail' to
send an E-mail to the user on the server, but I couldn't send an E-mail
to an external E-mail server. I realized that it may because the port 25
outgoing connections are blocked, so I gave up. I will have to login
periodically to check the status of the jobs:-(

Using username password is safe as long as you trust system admin, you
just need to make your script readable only to you. Or even better put
the username and password in a separate file. There is also a way to
limit damage in case you don't trust admin, you just need to get auth
token. Start smtp session and set debug level(True), use login method
and see the token:

send: 'AUTH PLAIN <HERE IS THE TOKEN>\r\n'
reply: '235 2.7.0 Accepted\r\n'
reply: retcode (235); Msg: 2.7.0 Accepted

Then put the token in a file readable only to you, and from now on
instead of login() method use docmd('AUTH PLAIN',"<YOUR TOKEN FROM
FILE>). If the token is stolen, the thief can only send mail from your
account but won't be able to login with password.

.



Relevant Pages

  • Re: opening two pages with one html form - using perl
    ... you could just run the script via ... if ($login eq 'Login') ... username and password and submits the form. ... browser window will open which will display the same username. ...
    (comp.infosystems.www.authoring.cgi)
  • Re: VPN CMAK Login script issue
    ... It seems that when I login to my external workstation under a different ... username and password than username and password I authenticate with through ... I'm not able to map drives and am prompted for a password for each ... >> connects and then runs our login script in sysvol. ...
    (microsoft.public.isa.vpn)
  • opening two pages with one html form - using perl
    ... I have one cgi script that looks in part like this: ... if ($login eq 'Login') ... username and password and submits the form. ... We now have a need to send the script to ANOTHER cgi script, ...
    (comp.infosystems.www.authoring.cgi)
  • Re: login script after setting up vpn connection
    ... objNetwork.UserName should be giving you the Windows login on their local ... > i want to run a login script after users make a connection to the 2003 ... > and not to the username used to setup the vpn connection. ...
    (microsoft.public.scripting.vbscript)
  • Re: win32 - access shared folder
    ... let me offer you a little _untested_ sample script that will ... my $UserName='Administrator'; # define $UserName to match your environment ... "The shared folder needs a login with login information that the user is not ... You will find many threads concerning 'hidding' your source code. ...
    (comp.lang.perl.misc)