# PostaInboundSmtpOptions

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/csharp/communitytoolkit.aspire.hosting.posta.md)
- Version: `13.5.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.Posta`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Parameter-based configuration options for Posta inbound SMTP processing.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.Posta;

public sealed class PostaInboundSmtpOptions
{
    // ...
}
```

## Constructors

- [PostaInboundSmtpOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/constructors.md#constructor)

## Properties

- [Enabled](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#enabled) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets whether inbound email processing is enabled.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#host) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the bind address for the built-in SMTP receiver.
- [Hostname](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#hostname) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the hostname announced in EHLO and used as TLS SNI.
- [MaxAttachmentSize](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#maxattachmentsize) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the maximum inbound attachment size in bytes.
- [MaxMessageSize](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#maxmessagesize) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the maximum raw inbound message size in bytes.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#port) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the SMTP listener port.
- [RateLimit](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#ratelimit) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the per-IP SMTP session rate limit.
- [RateWindow](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#ratewindow) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the SMTP rate-limit window in seconds.
- [TlsCertFile](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#tlscertfile) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the PEM certificate path for inbound TLS.
- [TlsKeyFile](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#tlskeyfile) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the PEM key path for inbound TLS.
- [TlsMode](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#tlsmode) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the inbound SMTP TLS mode: none or starttls.
- [WebhookSecret](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions/properties.md#webhooksecret) : `IResourceBuilder<ParameterResource>` `get; set` -- Gets or sets the shared secret for inbound webhooks.
