feat(plugins): Add smartmail, mailauth and uuid to Deno dependencies and export them from plugins; include local dev permissions file
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-10-24 - 1.2.0 - feat(plugins)
|
||||
Add smartmail, mailauth and uuid to Deno dependencies and export them from plugins; include local dev permissions file
|
||||
|
||||
- Add @push.rocks/smartmail, mailauth and uuid to deno.json dependencies so email parsing, DKIM and UUID utilities are available.
|
||||
- Export smartmail, mailauth and uuid from ts/plugins.ts for centralized access across the codebase.
|
||||
- Add .claude/settings.local.json to define local development permissions (tooling/dev environment configuration).
|
||||
|
||||
## 2025-10-24 - 1.1.0 - feat(ci)
|
||||
Add CI, release and npm-publish automation; introduce release template and local settings
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
"@std/assert": "jsr:@std/assert@^1.0.0",
|
||||
"@apiclient.xyz/cloudflare": "npm:@apiclient.xyz/cloudflare@latest",
|
||||
"lru-cache": "npm:lru-cache@^11.0.0",
|
||||
"mailaddress-validator": "npm:mailaddress-validator@^1.0.11"
|
||||
"@push.rocks/smartmail": "npm:@push.rocks/smartmail@^2.0.0",
|
||||
"mailauth": "npm:mailauth@^4.0.0",
|
||||
"uuid": "npm:uuid@^9.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/mailer',
|
||||
version: '1.1.0',
|
||||
version: '1.2.0',
|
||||
description: 'Enterprise mail server with SMTP, HTTP API, and DNS management - built for serve.zone infrastructure'
|
||||
}
|
||||
|
||||
8
ts/mail/delivery/placeholder.ts
Normal file
8
ts/mail/delivery/placeholder.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Placeholder delivery implementation
|
||||
* This will be replaced with actual delivery logic
|
||||
*/
|
||||
|
||||
export class DeliveryPlaceholder {
|
||||
// Placeholder for delivery functionality
|
||||
}
|
||||
@@ -14,6 +14,13 @@ export * as crypto from '@std/crypto';
|
||||
import * as cloudflareImport from '@apiclient.xyz/cloudflare';
|
||||
export const cloudflare = cloudflareImport;
|
||||
|
||||
// Email libraries
|
||||
import * as smartmail from '@push.rocks/smartmail';
|
||||
import * as mailauth from 'mailauth';
|
||||
import * as uuid from 'uuid';
|
||||
|
||||
export { smartmail, mailauth, uuid };
|
||||
|
||||
// Node.js compatibility - needed for SMTP and email processing
|
||||
// We import these as npm: specifiers for Node.js modules that don't have Deno equivalents
|
||||
import { EventEmitter } from 'node:events';
|
||||
|
||||
23
ts/security/classes.ipreputationchecker.ts
Normal file
23
ts/security/classes.ipreputationchecker.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* IP Reputation Checker
|
||||
* Checks IP addresses against reputation databases
|
||||
*/
|
||||
|
||||
export interface IIpReputationResult {
|
||||
ip: string;
|
||||
score: number;
|
||||
isBlacklisted: boolean;
|
||||
sources: string[];
|
||||
}
|
||||
|
||||
export class IpReputationChecker {
|
||||
public async checkReputation(ip: string): Promise<IIpReputationResult> {
|
||||
// Placeholder implementation
|
||||
return {
|
||||
ip,
|
||||
score: 100,
|
||||
isBlacklisted: false,
|
||||
sources: [],
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user