# Postfix smtpd\_sasl\_auth\_enable = yes no working

**URL:** <https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677>\
**Category:** Rocky Linux Help & Support\
**Created:** [September 1, 2024, 9:45am UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677 "2024-09-01T09:45:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![au7](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@au7](https://forums.rockylinux.org/u/au7)\
**Post date:** [September 1, 2024, 9:45am UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/1 "2024-09-01T09:45:56Z")

</div>

Helo! If I postfix smtpd\_sasl\_auth\_enable = yes in main.cf  
telnet 127.0.0.1 25 no answer and 25 port local not work or telnet 192.168.xx.xx in local network 25 port no answer.  
Escape character is ‘^]’.  
Connection closed by foreign host.

Firewal and selinux is off  
Why not working smtpd\_sasl\_auth\_enable ?  
posfix ver 2:3.5.9-24.el9 rocky linux 9.4

If not enabled smtpd\_sasl\_auth\_enable = yes ( #smtpd\_sasl\_auth\_enable = no )  
Trying 127.0.0.1…  
Connected to 127.0.0.1.  
Escape character is ‘^]’.  
220 mail.xx.xx ESMTP  
But there is no authorization  
everything works  
Please help! I don’t understand something

In another distrib for exaple Rocky 8.10 (postfix 2:3.5.8-7.el8 ), Debian12 everything works

---

<div class="post-metadata">

**Author:** ![Vittory003](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/vittory003/32/4694_2.png) [@Vittory003](https://forums.rockylinux.org/u/Vittory003)\
**Post date:** [September 2, 2024, 12:29pm UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/2 "2024-09-02T12:29:10Z")

</div>

Hi, @au7

First, check the Postfix logs for any specific SASL or authentication errors. The logs are usually located in `/var/log/maillog` or `/var/log/mail.log`.

```auto
sudo tail -f /var/log/maillog

```

Next Make sure your SASL configuration is correct. In particular, check the following:

- **smtpd\_sasl\_path** : Make sure it points to the correct SASL directory:

```auto
smtpd_sasl_path = smtpd

```

- **smtpd\_sasl\_type** : Specify the type of SASL used. For example:

```auto
smtpd_sasl_type = cyrus

```

or

```auto
smtpd_sasl_type = dovecot

```

### 3. **Check SASL installation**

Verify that the necessary SASL packages are installed. For example, for Cyrus SASL, you should have packages like `cyrus-sasl`, `cyrus-sasl-lib` and `cyrus-sasl-plain` installed.

```auto
sudo dnf install cyrus-sasl cyrus-sasl-plain cyrus-sasl-lib

```

### 4. **Check SELinux configuration**

Even if SELinux is disabled, previous configurations may still cause problems. Make sure SELinux is completely disabled and check that no residual rules are interfering.

```auto
sudo sestatus

```

If you still have problems post your log error here 😉

---

<div class="post-metadata">

**Author:** ![au7](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@au7](https://forums.rockylinux.org/u/au7)\
**Post date:** [September 2, 2024, 12:37pm UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/3 "2024-09-02T12:37:31Z")

</div>

> [@au7](#):
>
> smtpd\_sasl\_auth\_enable

I found a solution  
1 dnf install cyrus-sasl-plain !!!

> <https://serverfault.com/questions/571191/postfix-fatal-no-sasl-authentication-mechanisms>

---

<div class="post-metadata">

**Author:** ![au7](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@au7](https://forums.rockylinux.org/u/au7)\
**Post date:** [September 2, 2024, 12:40pm UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/4 "2024-09-02T12:40:53Z")

</div>

> [@Vittory003](#):
>
> `dnf install cyrus-sasl cyrus-sasl-plain cyrus-sasl-lib`

Thaks! Topic may closed

---

<div class="post-metadata">

**Author:** ![mrd83](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mrd83/32/4638_2.png) [@mrd83](https://forums.rockylinux.org/u/mrd83)\
**Post date:** [September 3, 2024, 9:09pm UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/5 "2024-09-03T21:09:24Z")

</div>

Let me add an interesting fact about postfix: it’s configuration directives often differ by a single **“d”** letter, for example there are both [smtpd\_sasl\_auth\_enable](https://www.postfix.org/postconf.5.html#smtpd_sasl_auth_enable) and [smtp\_sasl\_auth\_enable](https://www.postfix.org/postconf.5.html#smtp_sasl_auth_enable) parameters.  
The quick and dirty way to understand the difference between those is that

- smtp daemon (== persistent process) handles email transfer between servers, while
- smtp **d** daemon is what you utilize (along with IMAP or POP3) on your email client to fetch emails from the server.

I once modified an image I googled (to explain ports used by email servers, on another forum) - but let me also leave it here, to illustrate what I have in mind:

![mta_flow - modified PL](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/5/51498fc5c459493a324f3a9db9f3c6cbdfb3ad84.jpeg)

In the image (and in real life ;]) Postfix acts as both MDA and MTA-relay.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [November 2, 2024, 9:10pm UTC](https://forums.rockylinux.org/t/postfix-smtpd-sasl-auth-enable-yes-no-working/15677/6 "2024-11-02T21:10:21Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
