diff --git a/deploy/postfix-user/config/master.cf b/deploy/postfix-user/config/master.cf index f41dd6a..4702a60 100644 --- a/deploy/postfix-user/config/master.cf +++ b/deploy/postfix-user/config/master.cf @@ -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 diff --git a/java/core/src/mail/server/postfix/PostfixMailReceiver.java b/java/core/src/mail/server/postfix/PostfixMailReceiver.java index 5c2772a..bf0ea60 100644 --- a/java/core/src/mail/server/postfix/PostfixMailReceiver.java +++ b/java/core/src/mail/server/postfix/PostfixMailReceiver.java @@ -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);