This commit is contained in:
2025-05-25 11:18:12 +00:00
parent 58f4a123d2
commit 5b33623c2d
15 changed files with 832 additions and 764 deletions

View File

@@ -195,16 +195,20 @@ tap.test('CCMD-02: MAIL FROM - should handle 8BITMIME parameter', async () => {
});
tap.test('CCMD-02: MAIL FROM - should handle AUTH parameter if authenticated', async () => {
// Create authenticated client
// Create authenticated client - auth requires TLS per RFC 8314
const authServer = await startTestServer({
port: 2542,
tlsEnabled: true,
authRequired: true
});
const authClient = createSmtpClient({
host: authServer.hostname,
port: authServer.port,
secure: false,
secure: true, // Use TLS since auth requires it
tls: {
rejectUnauthorized: false // Accept self-signed cert for testing
},
auth: {
user: 'testuser',
pass: 'testpass'