smtp_relayserver
Class SMTPRelayServer
java.lang.Object
|
+--java.lang.Thread
|
+--smtp_relayserver.SMTPRelayServer
- All Implemented Interfaces:
- java.lang.Runnable
- public class SMTPRelayServer
- extends java.lang.Thread
This application allows you to receive e-mails via SMTP from a local mail
client application and to relay them to the destination SMTP server using a
DNS server to determine the desired MX host.
Copyright (C) 1998 Valentin Koch
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
History:
version 0.1 August 14, 1998 V.Koch start
version 1.0b August 28, 1998 V.Koch first beta release
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
run()
|
void |
setBuffers(java.lang.String senderAddr,
java.util.Vector rcptAddr,
java.lang.String mailContent,
int state)
Fills in the buffers used to execute a deliver action with a SMTP server. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nameServers
public static java.lang.String[] nameServers
adminAddr
public static java.lang.String adminAddr
SMTPRelayServer
public SMTPRelayServer(java.net.Socket s)
main
public static void main(java.lang.String[] args)
run
public void run()
- Overrides:
run in class java.lang.Thread
setBuffers
public void setBuffers(java.lang.String senderAddr,
java.util.Vector rcptAddr,
java.lang.String mailContent,
int state)
- Fills in the buffers used to execute a deliver action with a SMTP server.
- Parameters:
senderAddr - The mail address of the originated senderrcptAddr - The mail address of the final receivermailContent - The content of the mailstate - The SMTP transaction state of the receiving action who uses this method