@social-mail/social-mail-web-server 1.7.134 → 1.7.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.7.134",
3
+ "version": "1.7.136",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -158,8 +158,6 @@ export default class DnsService implements ICacheContainer<DnsService> {
158
158
  }
159
159
  }));
160
160
 
161
- console.warn(`MX IPs for ${domain} -> ${JSON.stringify(result)}`);
162
-
163
161
  return result;
164
162
  }
165
163
  }
@@ -281,10 +281,14 @@ export default class MailReceiverService {
281
281
  };
282
282
  }
283
283
 
284
+ const ip = this.session.remoteAddress;
285
+ const helo = this.session.hostNameAppearsAs;
286
+ const sender = this.from.address;
287
+
284
288
  const logs = await authenticate(tempFile.openReadStream(), {
285
- ip: this.session.remoteAddress,
286
- helo: this.session.hostNameAppearsAs,
287
- sender: this.from.address,
289
+ ip,
290
+ helo,
291
+ sender,
288
292
  mta: globalEnv.host,
289
293
  seal
290
294
  });
@@ -294,7 +298,7 @@ export default class MailReceiverService {
294
298
  if(!isTestMode) {
295
299
  if (dmarc) {
296
300
  if (dmarc.status.result !== "pass") {
297
- throw new SmtpError("5.7.5 permanent error evaluating dmarc policy", SmtpStatusCodes.TransactionFailed);
301
+ throw new SmtpError(`5.7.5 permanent error evaluating dmarc policy for ${ip}, sender ${sender}, helo: ${helo}`, SmtpStatusCodes.TransactionFailed);
298
302
  }
299
303
  } else {
300
304
  console.error(`DMARC not setup for ${this.session.hostNameAppearsAs}`);