mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-24 01:22:16 -05:00
makes the postfix mail receiver execute in its own directory
This commit is contained in:
parent
16650b0728
commit
588bfd41f3
@ -61,5 +61,5 @@ anvil unix - - - - 1 anvil
|
||||
scache unix - - - - 1 scache
|
||||
|
||||
javapipe unix - n n - - pipe
|
||||
user=postfix-user flags=DRhuX argv=java -jar /home/postfix-user/PostfixMailReceiver.jar -args $recipient
|
||||
directory=/home/postfix-user user=postfix-user flags=DRhuX argv=java -jar /home/postfix-user/PostfixMailReceiver.jar -args $recipient
|
||||
|
||||
|
@ -24,14 +24,13 @@ public class PostfixMailReceiver
|
||||
{
|
||||
File me = new File(args[0]);
|
||||
File logFile = new File(me.getParent(), "run.log");
|
||||
log.debug("Running with log file as ",logFile);
|
||||
|
||||
System.setOut(new PrintStream(new FileOutputStream(logFile)));
|
||||
System.setErr(System.out);
|
||||
|
||||
try
|
||||
{
|
||||
log.debug("Running with log file as ",logFile);
|
||||
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
String toAddress = args[1];
|
||||
byte[] bytes = Streams.readFullyBytes(System.in);
|
||||
|
Loading…
Reference in New Issue
Block a user