Browse code

BM-15116 Fix: milter log

Anthony Prades authored on 09/08/2019 13:44:13
Showing 1 changed files
... ...
@@ -199,7 +199,7 @@ public class MilterHandler implements JilterHandler {
199 199
 			String domainPart = smtpEnvelope.getSender().getDomainPart();
200 200
 			ItemValue<Domain> domain = DomainAliasCache.getDomain(domainPart);
201 201
 			if (null == domain) {
202
-				logger.warn("Cannot find domain/alias of sender {}", modifiedMail.getMessage().getFrom().get(0));
202
+				logger.warn("Cannot find domain/alias of sender {}", smtpEnvelope.getSender());
203 203
 				return 0;
204 204
 			}
205 205
 			IClientContext mailflowContext = new ClientContext(domain);