forked from cosullivan/SmtpServer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathISmtpServerOptions.cs
More file actions
53 lines (45 loc) · 1.7 KB
/
Copy pathISmtpServerOptions.cs
File metadata and controls
53 lines (45 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
namespace SmtpServer
{
/// <summary>
/// Smtp Server Options Interface
/// </summary>
public interface ISmtpServerOptions
{
/// <summary>
/// Gets the maximum message size option.
/// </summary>
IMaxMessageSizeOptions MaxMessageSizeOptions { get; }
/// <summary>
/// The maximum number of retries before quitting the session.
/// </summary>
int MaxRetryCount { get; }
/// <summary>
/// The maximum number of authentication attempts.
/// </summary>
int MaxAuthenticationAttempts { get; }
/// <summary>
/// Gets the SMTP server name.
/// </summary>
string ServerName { get; }
/// <summary>
/// Gets the collection of endpoints to listen on.
/// </summary>
IReadOnlyList<IEndpointDefinition> Endpoints { get; }
/// <summary>
/// The timeout to use when waiting for a command from the client.
/// </summary>
TimeSpan CommandWaitTimeout { get; }
/// <summary>
/// The size of the buffer that is read from each call to the underlying network client.
/// </summary>
int NetworkBufferSize { get; }
/// <summary>
/// Gets the custom SMTP greeting message that the server sends immediately after a client connects,
/// typically as the initial "220" response. The message can be dynamically generated based on the session context.
/// If not set, a default greeting will be used (e.g., "220 mail.example.com ESMTP ready").
/// </summary>
Func<ISessionContext, string> CustomSmtpGreeting { get; }
}
}