format source
This commit is contained in:
parent
3cf661b0d6
commit
f33c40fad7
@ -283,25 +283,23 @@ public class DomainTest {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void testGreylistingOnOff(boolean onoff, String message)
|
private void testGreylistingOnOff(boolean onoff, String message)
|
||||||
throws UnknownHostException, IOException {
|
throws UnknownHostException, IOException {
|
||||||
testDomainptionOnOf(onoff, message, new DomainOptionTester() {
|
testDomainptionOnOf(onoff, message, new DomainOptionTester() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getOptionName() {
|
public String getOptionName() {
|
||||||
return "greylisting";
|
return "greylisting";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOptionConfigured(String domain)
|
public boolean isOptionConfigured(String domain)
|
||||||
throws UnknownHostException, IOException {
|
throws UnknownHostException, IOException {
|
||||||
String host = "test-h99.hostsharing.net";
|
String host = "test-h99.hostsharing.net";
|
||||||
String answer = socketQuery( host, 25,
|
String answer = socketQuery(host, 25, "HELO " + domain + "\n"
|
||||||
"HELO " + domain + "\n" +
|
+ "MAIL FROM: hsadmin-testing@" + domain + "\n"
|
||||||
"MAIl FROM: hsadmin-testing@" + domain + "\n" +
|
+ "RCPT TO: postmaster@" + domain + "\n" + "DATA\n"
|
||||||
"RCPT TO: postmaster@" + domain + "\n" +
|
+ ".\n");
|
||||||
"DATA\n" +
|
|
||||||
".\n") ;
|
|
||||||
return answer.contains("450") && answer.contains("reylisting");
|
return answer.contains("450") && answer.contains("reylisting");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user