# SMTP sending mail error

**URL:** <https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580>\
**Category:** Help\
**Created:** [April 19, 2022, 6:02am UTC](https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580 "2022-04-19T06:02:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![next\_generation](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@next\_generation](https://vaultwarden.discourse.group/u/next_generation)\
**Post date:** [April 19, 2022, 6:02am UTC](https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580/1 "2022-04-19T06:02:34Z")

</div>

I have set up a postfix for sending mails but i am facing an error  
“Error sending SMTP test email  
SMTP Client error: internal client error: No compatible authentication mechanism was found”

and in mail logs : -  
Apr 19 07:48:19 bitwarden postfix/smtpd[188087]: connect from unknown[172.17.0.2]  
Apr 19 07:48:19 bitwarden postfix/smtpd[188087]: discarding EHLO keywords: CHUNKING  
Apr 19 07:48:19 bitwarden postfix/smtpd[188087]: lost connection after EHLO from unknown[172.17.0.2]  
Apr 19 07:48:19 bitwarden postfix/smtpd[188087]: disconnect from unknown[172.17.0.2] ehlo=1 commands=1

Postfix configuration:

# postconf -n

alias\_database = hash:/etc/aliases  
alias\_maps = hash:/etc/aliases  
command\_directory = /usr/sbin  
compatibility\_level = 2  
daemon\_directory = /usr/libexec/postfix  
data\_directory = /var/lib/postfix  
debug\_peer\_level = 2  
debugger\_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon\_directory/$process\_name $process\_id & sleep 5  
html\_directory = no  
inet\_interfaces = all  
inet\_protocols = all  
mail\_owner = postfix  
mailq\_path = /usr/bin/mailq.postfix  
manpage\_directory = /usr/share/man  
meta\_directory = /etc/postfix  
mydestination = localhost.localdomain, localdomain, localhost, localhost.localdomain, localhost  
myhostname = [bitwarden.mydomain.com](http://bitwarden.mydomain.com)  
mynetworks = 127.0.0.0/8, localhost, 172.17.0.0/16, 172.17.0.2  
newaliases\_path = /usr/bin/newaliases.postfix  
queue\_directory = /var/spool/postfix  
readme\_directory = /usr/share/doc/postfix/README\_FILES  
relayhost =  
sample\_directory = /usr/share/doc/postfix/samples  
sendmail\_path = /usr/sbin/sendmail.postfix  
setgid\_group = postdrop  
shlib\_directory = /usr/lib64/postfix  
smtp\_tls\_CApath = /etc/pki/tls/certs  
smtp\_tls\_security\_level = none  
smtpd\_tls\_cert\_file = /etc/pki/tls/certs/postfix.pem  
smtpd\_tls\_key\_file = /etc/pki/tls/private/postfix.key  
smtpd\_tls\_security\_level = none  
unknown\_local\_recipient\_reject\_code = 550

 ![SMTPVaultwarden](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/1X/d9e675d6b3b5a27f6b3b2c3d21e3765309dc77ba.png)

I could not understand what could be the problem ?

---

<div class="post-metadata">

**Author:** ![reinob](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@reinob](https://vaultwarden.discourse.group/u/reinob)\
**Post date:** [April 19, 2022, 2:52pm UTC](https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580/2 "2022-04-19T14:52:46Z")

</div>

You probably want to use port 587 (submission) instead of 25.  
(and perhaps you may want to reconsider whether you really want to run your own SMTP server…)

---

<div class="post-metadata">

**Author:** ![kevdog](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/kevdog/32/168_2.png) [@kevdog](https://vaultwarden.discourse.group/u/kevdog)\
**Post date:** [April 24, 2022, 3:28am UTC](https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580/3 "2022-04-24T03:28:31Z")

</div>

Are you trying to smtp forward through gmail’s smtp server’s or another service?

---

<div class="post-metadata">

**Author:** ![cksapp](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cksapp](https://vaultwarden.discourse.group/u/cksapp)\
**Post date:** [April 24, 2022, 3:45am UTC](https://vaultwarden.discourse.group/t/smtp-sending-mail-error/1580/4 "2022-04-24T03:45:19Z")

</div>

With Postfix, given the 127.0.0.0/8 CIDR and no relayhost set I would presume that the OP here is attempting to set up send from SMTP directly.

Assuming MX records are set correctly, but past that I dare not touch running a mail server.  
As @reinob puts it its really not worth the hassle imo.
