# iRedmail connection questions

**URL:** <https://forum.mautic.org/t/iredmail-connection-questions/24816>\
**Category:** Product Support\
**Created:** [July 20, 2022, 6:28am UTC](https://forum.mautic.org/t/iredmail-connection-questions/24816 "2022-07-20T06:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 20, 2022, 6:28am UTC](https://forum.mautic.org/t/iredmail-connection-questions/24816/1 "2022-07-20T06:28:49Z")

</div>

Hi,

This may be out of scope a bit but thought I would give it a try.

We have setup iRedmail and are trying to connect up to it from our Mautic instance. Connection Test is working fine, however when trying to send a test email getting the following error:

```auto
Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients "

```

I know this is a redmail config issue, but maybe someone here can shed some light on the matter.

The error on redmail side is the following:

```auto
Jul 20 06:15:39 mail postfix/postscreen[38765]: CONNECT from 88.88.99.22]:51686 to [185.167.97.78]:25
Jul 20 06:15:39 mail postfix/postscreen[38765]: PASS OLD [88.88.99.22]:51686
Jul 20 06:15:39 mail postfix/smtpd[38768]: connect from unknown[88.88.99.22]
Jul 20 06:15:39 mail postfix/smtpd[38768]: Anonymous TLS connection established from unknown[209.97.129.88]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul 20 06:15:39 mail postfix/smtpd[38768]: NOQUEUE: reject: RCPT from unknown[88.88.99.22]: 554 5.7.1 <tech@surge.media>: Relay access denied; from=<info@mymautic.com> to=<tech@surge.media> proto=ESMTP helo=<mymautic.com>
Jul 20 06:15:39 mail postfix/smtpd[38768]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "tech@surge.media" from client "unknown[[88.88.99.228]"
Jul 20 06:15:39 mail postfix/smtpd[38768]: disconnect from unknown[88.88.99.22] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7

```

My Email Settings are :  
“Other SMTP Server”  
SMTP host: my iredmail hostname  
SMTP encryption type: TLS  
Port: 25  
SMTP authentication mode: Plain with my username and password

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 20, 2022, 9:37am UTC](https://forum.mautic.org/t/iredmail-connection-questions/24816/2 "2022-07-20T09:37:48Z")

</div>

I solved this problem. For anyone that is interested in the solution it can be found [here](https://unix.stackexchange.com/questions/291551/postfix-relay-access-denied).
