Article View: alt.privacy.anon-server
Article #275451Sending mail from a Windows machine through a server
From: Nomen Nescio
Date: Mon, 03 Aug 2015 14:58
Date: Mon, 03 Aug 2015 14:58
102 lines
3726 bytes
3726 bytes
Easy way to send mixmaster messages from your remailer box via a Windows home system. You must have the putty programs installed on Windows. www.putty.org 1. Create this file somewhere and put a link to it on your Windows desktop. C:\path-to\MailForServer.txt 1b. Place the following lines in the file (add a space after To: and Subject:): From: admin@your-remailer.net To: Subject: ------------------------------------------- 2. Create this bat file somewhere. C:\path-to\MailForServer.bat 2b. Place the following lines in the bat file: cd /etc/ put C:\path-to\MailForServer.txt MailFromHome.txt ------------------------------------------- 3. Create this bat file in C:\Users\anon\Desktop\. C:\Users\anon\Desktop\Send mail from server.bat 3b. Place the following lines in the bat file: "C:\path-to\Putty\PSFTP.EXE" root@YOUR.SERVER.IP.ADDRESS -i "C:\path-to\sec.ppk" -P 22 -b "C:\path-to\MailForServer.bat" "C:\path-to\Putty\PLINK.EXE" root@YOUR.SERVER.IP.ADDRESS -i "C:\path-to\sec.ppk" -P 22 /etc/MailFromHome.sh echo.From: admin@your-remailer.net>C:\path-to\MailForServer.txt echo.To: >>C:\path-to\MailForServer.txt echo.Subject: >>C:\path-to\MailForServer.txt Pause ------------------------------------------- 3c. Note: If you are using a password instead of ssh login on your server, then replace the pointer to the key '-i "C:\path- to\sec.ppk"' with '-pw yourpassword'. 3d. Note: The PSFTP.EXE and PLINK.EXE lines in section 3b should be all on the same line. ------------------------------------------- 4. Put this script in file /etc/MailFromHome.sh on your server and 'chmod 755 MailFromHome.sh': #!/bin/bash # MailFromHome.sh # This program mails the uploaded mail sent to the server from a Windows machine via putty's PSFTP.EXE program. # The script is then executed by putty's PLINK.EXE program from a Windows machine. sendmail -t -oi < /etc/MailFromHome.txt # send mail cat /dev/null > /etc/MailFromHome.txt # remove it exit 0 ------------------------------------------- Execution sequence: 1. Open the MailForServer.txt and enter your mail parameters and message. Remember to leave one space between the 'Subject: ' and message lines. 2. Double click the 'Send mail from server.bat' desktop link to start the bat file. The contents of MailForServer.txt is uploaded with PSFTP.EXE to the /etc/MailFromHome.txt file on your server. 3. The /etc/MailFromHome.sh on your server is then executed by PLINK.EXE and the mail is sent. The uploaded mail is then deleted from your server. 4. The contents of the MailForServer.txt on your Windows machine is reset to the empty From:, To:, and Subject: lines. 5. The 'Send mail from server.bat' is finally paused to see if there are any error messages. Hit enter to close dos window. You can swap out this line in /etc/MailFromHome.sh: sendmail -t -oi < /etc/MailFromHome.txt # send mail with this line: /home/mix/Mix/mixmaster /etc/MailFromHome.txt --send --mail to send messages via your remailer.
Technical Details
Message-ID:
<4cd8be05db013271b75674c647e85f40@dizum.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4cd8be05db013271b75674c647e85f40@dizum.com> Subject: Sending mail from a Windows machine through a server Date: Mon, 03 Aug 2015 14:58:27 +0000 From: Nomen Nescio <nobody@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail X-Received-Bytes: 3628 Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211