---
title: 'SMTP Settings'
url: 'https://docs.danami.com/juggernaut/settings/firewall/smtp-settings'
markdown: 'https://docs.danami.com/juggernaut/settings/firewall/smtp-settings.md'
date: '2026-10-12'
description: 'Block outgoing SMTP - SMTP_BLOCK Block outgoing SMTP except for root, qmail/postfix and mailman. This forces scripts/users to use the qmail/postfix binary instead of sockets access. This option requires the iptables ipt_owner/xt_owner module to be loaded. Default: 0 Range: 0-1 Allow local connectio…'
taxonomy:
  category:
    - docs
  tag:
    - smtp
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Settings Reference ](https://docs.danami.com/juggernaut/settings)     [ Firewall ](https://docs.danami.com/juggernaut/settings/firewall)      SMTP Settings    

# SMTP Settings

**Block outgoing SMTP** - `SMTP_BLOCK`
Block outgoing SMTP except for root, qmail/postfix and mailman. This forces scripts/users to use the qmail/postfix binary instead of sockets access. This option requires the iptables ipt\_owner/xt\_owner module to be loaded.
Default: 0 Range: 0-1

**Allow local connections** - `SMTP_ALLOWLOCAL`
Allow outgoing SMTP connections to the loopback device on port 25 (If SMTP\_BLOCK is enabled).
Default: 1 Range: 0-1

**SMTP ports** - `SMTP_PORTS`
SMTP ports to block. You should list all ports that qmail/postfix is configured to listen on.
Default: 25,465,587

**SMTP redirect** - `SMTP_REDIRECT`
Redirect outgoing SMTP connections destined for remote servers for non-bypass users to the local SMTP server to force local relaying of email. Such email may require authentication (SMTP AUTH).
Default: 0

**SMTP allowed users** - `SMTP_ALLOWUSER`
Allow the following comma separated users to bypass SMTP\_BLOCK. Note: root user is always allowed.
Default: qmaild,qmaill,qmailp,qmailq,qmailr,qmails,postfix

**SMTP allowed groups** - `SMTP_ALLOWGROUP`
Allow the following comma separated groups to bypass SMTP\_BLOCK. Note: root group is always allowed.
Default: qmail,nofiles,postfix,postdrop,mail,mailman

 [ ](https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-smtp)

---

## Navigation

- Parent: [Firewall](https://docs.danami.com/juggernaut/settings/firewall.md)
- Previous: [General Settings](https://docs.danami.com/juggernaut/settings/firewall/general-settings.md)
- Next: [Port Flood Settings](https://docs.danami.com/juggernaut/settings/firewall/port-flood-settings.md)
