I know there is a lot to find about this, but nothing I read so far seems to be working.
I run Ubuntu with nginx installed and running.
Everytime I want to send a mail I get the error: dsn=5.0.0, stat=Service unavailable
The code:
<code>echo "Hello world" | mail -s "Test" [email protected]
</code>
<code>echo "Hello world" | mail -s "Test" [email protected]
</code>
echo "Hello world" | mail -s "Test" [email protected]
The complete error:
<code>Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: from=administrator, size=136, class=0, nrcpts=1, msgid=<[email protected]>, relay=administrator@localhost
Jul 1 12:21:49 localhost sm-mta[8876]: 461ALnKi008876: from=<[email protected]>, size=436, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1]
Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: [email protected], ctladdr=administrator (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30136, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (461ALnKi008876 Message accepted for delivery)
Jul 1 12:21:50 localhost sm-mta[8878]: STARTTLS=client, relay=mx2.pub.mailpod9-cph3.one.com., version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: to=<[email protected]>, ctladdr=<[email protected]> (1001/1001), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120436, relay=mx2.pub.mailpod9-cph3.one.com. [185.164.14.119], dsn=5.0.0, stat=Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: 461ALoKi008878: DSN: Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALoKi008878: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
</code>
<code>Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: from=administrator, size=136, class=0, nrcpts=1, msgid=<[email protected]>, relay=administrator@localhost
Jul 1 12:21:49 localhost sm-mta[8876]: 461ALnKi008876: from=<[email protected]>, size=436, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1]
Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: [email protected], ctladdr=administrator (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30136, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (461ALnKi008876 Message accepted for delivery)
Jul 1 12:21:50 localhost sm-mta[8878]: STARTTLS=client, relay=mx2.pub.mailpod9-cph3.one.com., version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: to=<[email protected]>, ctladdr=<[email protected]> (1001/1001), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120436, relay=mx2.pub.mailpod9-cph3.one.com. [185.164.14.119], dsn=5.0.0, stat=Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: 461ALoKi008878: DSN: Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALoKi008878: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
</code>
Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: from=administrator, size=136, class=0, nrcpts=1, msgid=<[email protected]>, relay=administrator@localhost
Jul 1 12:21:49 localhost sm-mta[8876]: 461ALnKi008876: from=<[email protected]>, size=436, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1]
Jul 1 12:21:49 localhost sendmail[8875]: 461ALnoU008875: [email protected], ctladdr=administrator (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30136, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (461ALnKi008876 Message accepted for delivery)
Jul 1 12:21:50 localhost sm-mta[8878]: STARTTLS=client, relay=mx2.pub.mailpod9-cph3.one.com., version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: to=<[email protected]>, ctladdr=<[email protected]> (1001/1001), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120436, relay=mx2.pub.mailpod9-cph3.one.com. [185.164.14.119], dsn=5.0.0, stat=Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALnKi008876: 461ALoKi008878: DSN: Service unavailable
Jul 1 12:21:50 localhost sm-mta[8878]: 461ALoKi008878: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
I was trying to send a mail