ich habe mich nochmal hingesetzt und probiert sendmail zum laufen zu bekommen, leider ohne Erfolg.
apt-get install sendmail
/etc/hosts :
127.0.0.1 localhost.localdomain amputeetopmodels.com
#138.201.206.212 Ubuntu-1804-bionic-64-minimal
#
# IPv6
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
sendmailconfig yes yes yes yes yes...
in php7.2 php.ini set:
sendmail_path = /usr/sbin/sendmail -t -i
service apache2 restart
root@amputeetopmodels ~ # echo "Subject: test" | /usr/lib/sendmail -v reg_weg@yahoo.de reg_weg@yahoo.de... Connecting to [127.0.0.1] via relay...
220 Ubuntu-1804-bionic-64-minimal ESMTP Sendmail 8.15.2/8.15.2/Debian-10; Fri, 4 Jan 2019 13:43:29 +0100; (No UCE/UBE) logging access from: localhost.amputeetopmodels.com(OK)-localhost.amputeetopmodels.com [127.0.0.1]
>>> EHLO localhost.amputeetopmodels.com
250-Ubuntu-1804-bionic-64-minimal Hello localhost.amputeetopmodels.com [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<root@localhost.amputeetopmodels.com> SIZE=14
250 2.1.0 <root@localhost.amputeetopmodels.com>... Sender ok
>>> RCPT To:<reg_weg@yahoo.de>
>>> DATA
250 2.1.5 <reg_weg@yahoo.de>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <reg_weg@yahoo.de>... Connecting to mx-eu.mail.am0.yahoodns.net. via esmtp...
050 220 mta1143.mail.ir2.yahoo.com ESMTP ready
050 >>> EHLO Ubuntu-1804-bionic-64-minimal
050 250-mta1143.mail.ir2.yahoo.com
050 250-PIPELINING
050 250-SIZE 41943040
050 250-8BITMIME
050 250 STARTTLS
050 >>> STARTTLS
050 220 2.0.0 Start TLS
050 >>> EHLO Ubuntu-1804-bionic-64-minimal
050 250-mta1143.mail.ir2.yahoo.com
050 250-PIPELINING
050 250-SIZE 41943040
050 250 8BITMIME
050 >>> MAIL From:<root@localhost.amputeetopmodels.com> SIZE=336
050 250 sender <root@localhost.amputeetopmodels.com> ok
050 >>> RCPT To:<reg_weg@yahoo.de>
050 >>> DATA
050 250 recipient <reg_weg@yahoo.de> ok
050 354 go ahead
050 >>> .
050 250 ok dirdel
050 <reg_weg@yahoo.de>... Sent (ok dirdel)
250 2.0.0 x04ChTac007739 Message accepted for delivery
reg_weg@yahoo.de... Sent (x04ChTac007739 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 Ubuntu-1804-bionic-64-minimal closing connection
die /var/log/mail.log
Jan 4 13:43:29 amputeetopmodels sendmail[7738]: x04ChTmb007738: from=root, size=14, class=0, nrcpts=1, msgid=<201901041243.x04ChTmb007738@localhost.amputeetopmodels.com>, relay=root@localhost
Jan 4 13:43:29 amputeetopmodels sm-mta[7739]: x04ChTac007739: from=<root@localhost.amputeetopmodels.com>, size=336, class=0, nrcpts=1, msgid=<201901041243.x04ChTmb007738@localhost.amputeetopmodels.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost.amputeetopmodels.com [127.0.0.1]
Jan 4 13:43:30 amputeetopmodels sm-mta[7739]: STARTTLS=client, relay=mx-eu.mail.am0.yahoodns.net., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
Jan 4 13:43:30 amputeetopmodels sm-mta[7739]: x04ChTac007739: to=<reg_weg@yahoo.de>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30336, relay=mx-eu.mail.am0.yahoodns.net. [212.82.101.46], dsn=2.0.0, stat=Sent (ok dirdel)
Jan 4 13:43:30 amputeetopmodels sendmail[7738]: x04ChTmb007738: to=reg_weg@yahoo.de, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30014, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x04ChTac007739 Message accepted for delivery)
Ich lese mir gerne Tuts durch, aber irgendwie klappts nicht.
Bin für jeden Tip dankbar.