我在专用服务器上安装了PHPList(3.2.4)。我目前没有设置特定的配置或限制。我使用本地后缀作为SMTP。
我发送了一个广告系列和一个电子邮件地址,收到以下错误(在maillog中):
import java.io.*;
import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.classifiers.evaluation.NominalPrediction;
import weka.classifiers.meta.AdaBoostM1;
import weka.classifiers.trees.RandomForest;
import weka.core.FastVector;
import weka.core.Instances;
public class ULCWekaTest
{
public static Evaluation classify(Classifier model,
Instances trainingSet, Instances testingSet)
throws Exception
{
Evaluation evaluation = new Evaluation(trainingSet);
model.buildClassifier(trainingSet);
evaluation.evaluateModel(model, testingSet);
return evaluation;
}
public static double calculateAccuracy(FastVector predictions)
{
double correct = 0;
for(int i = 0; i < predictions.size(); i++)
{
NominalPrediction np = (NominalPrediction) predictions.elementAt(i);
if(np.predicted() == np.actual())
correct++;
}
return 100 * correct / predictions.size();
}
public static void main(String[] args) throws Exception
{
String basepath =
"/Users/Ebe/Pantheon/Ares/PhD/Course Work/MLT/MLT-Lab/Mini Project/Implementation/";
Instances trainData;
try(BufferedReader reader =
new BufferedReader(
new FileReader(basepath + "train80.arff")))
{
trainData = new Instances(reader);
reader.close();
}
trainData.setClassIndex(0);
Instances testData;
try(BufferedReader reader =
new BufferedReader(
new FileReader(basepath + "test80.arff")))
{
testData = new Instances(reader);
reader.close();
}
testData.setClassIndex(0);
Classifier forest, adaboost;
String[] options = new String[2];
for(int i = 100; i < 500; i+=2)
{
for(int s = 6; s <= 6; s++)
{
adaboost = new AdaBoostM1();
forest = new RandomForest();
//for(String str : forest.getOptions())
// System.out.println(str);
options[0] = "-I";
options[1] = ""+i;
forest.setOptions(options);
options[0] = "-S";
options[1] = "" + s;
forest.setOptions(options);
adaboost.setClassifier(forest); // <-- COMPILER ERROR AT THIS POINT
// Collect every group of predictions for current model in a FastVector
FastVector predictions = new FastVector();
// For each training-testing split pair, train and test the classifier
Evaluation validation =
classify(adaboost, trainData, testData);
predictions.appendElements(validation.predictions());
// Calculate overall accuracy of current classifier on all splits
double accuracy = calculateAccuracy(predictions);
// Print current classifier's name and accuracy in a complicated,
// but nice-looking way.
System.out.println("-I " + i + " -S " + s + ": " + String.format(
"%.2f%%", accuracy));
}
}
}
}
问题是phplist一直试图将消息发送到该地址,并且它不会停止活动。这不是反弹,而是电子邮件失败,因此广告系列永远不会关闭,而且在管理界面中,我不断收到消息:
Recipient address rejected: Domain not found
因此我必须手动停止广告系列。
我想知道我是否可以:
我阅读了文档,但没有找到我正在寻找的内容。如何实现此结果并避免phplist无限期地重试发送到失败的地址?
这可能取决于我的Postfix配置吗? (例如拒绝而不是反弹)?