# PostaInboundSmtpOptions Properties

- Package: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/csharp/communitytoolkit.aspire.hosting.posta.md)
- Type: [PostaInboundSmtpOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postainboundsmtpoptions.md)
- Kind: `Properties`
- Members: `12`

Parameter-based configuration options for Posta inbound SMTP processing.

<a id="enabled"></a>

## Enabled

- Name: `Enabled`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets whether inbound email processing is enabled.

```csharp
public IResourceBuilder<ParameterResource>? Enabled { get; set; }
```

<a id="host"></a>

## Host

- Name: `Host`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the bind address for the built-in SMTP receiver.

```csharp
public IResourceBuilder<ParameterResource>? Host { get; set; }
```

<a id="hostname"></a>

## Hostname

- Name: `Hostname`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the hostname announced in EHLO and used as TLS SNI.

```csharp
public IResourceBuilder<ParameterResource>? Hostname { get; set; }
```

<a id="maxattachmentsize"></a>

## MaxAttachmentSize

- Name: `MaxAttachmentSize`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the maximum inbound attachment size in bytes.

```csharp
public IResourceBuilder<ParameterResource>? MaxAttachmentSize { get; set; }
```

<a id="maxmessagesize"></a>

## MaxMessageSize

- Name: `MaxMessageSize`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the maximum raw inbound message size in bytes.

```csharp
public IResourceBuilder<ParameterResource>? MaxMessageSize { get; set; }
```

<a id="port"></a>

## Port

- Name: `Port`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the SMTP listener port.

```csharp
public IResourceBuilder<ParameterResource>? Port { get; set; }
```

<a id="ratelimit"></a>

## RateLimit

- Name: `RateLimit`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the per-IP SMTP session rate limit.

```csharp
public IResourceBuilder<ParameterResource>? RateLimit { get; set; }
```

<a id="ratewindow"></a>

## RateWindow

- Name: `RateWindow`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the SMTP rate-limit window in seconds.

```csharp
public IResourceBuilder<ParameterResource>? RateWindow { get; set; }
```

<a id="tlscertfile"></a>

## TlsCertFile

- Name: `TlsCertFile`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the PEM certificate path for inbound TLS.

```csharp
public IResourceBuilder<ParameterResource>? TlsCertFile { get; set; }
```

<a id="tlskeyfile"></a>

## TlsKeyFile

- Name: `TlsKeyFile`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the PEM key path for inbound TLS.

```csharp
public IResourceBuilder<ParameterResource>? TlsKeyFile { get; set; }
```

<a id="tlsmode"></a>

## TlsMode

- Name: `TlsMode`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the inbound SMTP TLS mode: none or starttls.

```csharp
public IResourceBuilder<ParameterResource>? TlsMode { get; set; }
```

<a id="webhooksecret"></a>

## WebhookSecret

- Name: `WebhookSecret`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaInboundSmtpOptions.cs)

Gets or sets the shared secret for inbound webhooks.

```csharp
public IResourceBuilder<ParameterResource>? WebhookSecret { get; set; }
```
