# Email: can send from, but not receive

**URL:** <https://discuss.freedombox.org/t/email-can-send-from-but-not-receive/2055>\
**Category:** Support\
**Created:** [April 15, 2022, 5:42pm UTC](https://discuss.freedombox.org/t/email-can-send-from-but-not-receive/2055 "2022-04-15T17:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alice](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/a/779978/32.png) [@alice](https://discuss.freedombox.org/u/alice)\
**Post date:** [April 15, 2022, 5:42pm UTC](https://discuss.freedombox.org/t/email-can-send-from-but-not-receive/2055/1 "2022-04-15T17:42:16Z")

</div>

FBX version is latest update, running on Debian Bullseye.

Can send email, but cannot receive. Instead the logs say:

Error: lmtp-server: conn unix:pid=69135,uid=124 [1]: rcpt xxx@xxx.xxx: Failed to initialize user: Mail access for users with UID 10001 not permitted (see first\_valid\_uid in config file, uid from userdb lookup).  
Temporary internal error (in reply to end of DATA command)

The first\_valid\_uid in config file is 500, so 10001 seems … odd?

Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![nykula](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/n/e0b2c6/32.png) [@nykula](https://discuss.freedombox.org/u/nykula)\
**Post date:** [April 25, 2022, 8:46pm UTC](https://discuss.freedombox.org/t/email-can-send-from-but-not-receive/2055/2 "2022-04-25T20:46:13Z")

</div>

This issue has been confirmed on IRC. Let’s wait for more information and/or requests from the developers.

---

<div class="post-metadata">

**Author:** ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)\
**Post date:** [April 26, 2022, 3:45pm UTC](https://discuss.freedombox.org/t/email-can-send-from-but-not-receive/2055/3 "2022-04-26T15:45:28Z")

</div>

I have a fix available for this issue:

> **[email: Fix userdb lookups with LDAP (!2213) · Merge requests · FreedomBox /...](https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2213)**
>
> Without the base attribute set, LDAP search returns no results and because of the lookup failure LMTP will not be able to deliver message even though postfix has...

Please try this fix:

Set

```auto
base = dc=thisbox

```

in the file:

```auto
/etc/dovecot/conf.d/freedombox-ldap.conf.ext

```

Then restart dovecot:

```auto
systemctl restart dovecot.service

```

Let me know if the fix works.
