update
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user