
root@js-ubuntu-26-04-01:~# apt-get update && apt-get install msmtp msmtp-mta mailutils -y
root@js-ubuntu-26-04-01:~# msmtp –version
msmtp version 1.8.32
Platform: x86_64-pc-linux-gnu
TLS/SSL library: GnuTLS
Authentication library: GNU SASL; oauthbearer and xoauth2: built-in
Supported authentication methods:
scram-sha-256-plus scram-sha-1-plus scram-sha-256 scram-sha-1 plain gssapi external oauthbearer cram-md5 digest-md5 login ntlm xoauth2
IDN support: enabled
NLS: enabled, LOCALEDIR is /usr/share/locale
Keyring support: Gnome
System configuration file name: /etc/msmtprc
User configuration file name: /root/.msmtprc
Copyright (C) 2025 Martin Lambers and others.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
root@js-ubuntu-26-04-01:~#
root@js-ubuntu-26-04-01:~# vi /etc/msmtprc
# Default settings
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
# Target SMTP Server
account default
host smtp.1und1.com
port 587
from josef.schuster@dpsolution.de
user josef.schuster@dpsolution.de
password <password>
root@js-ubuntu-26-04-01:~#
root@js-ubuntu-26-04-01:~# vi /etc/aliases
root: josef.schuster@dpsolution.de
default: josef.schuster@dpsolution.de
root@js-ubuntu-26-04-01:~#
root@js-ubuntu-26-04-01:~# vi /etc/mail.rc
set sendmail=“/usr/bin/msmtp -t“
root@js-ubuntu-26-04-01:~#
root@js-ubuntu-26-04-01:~# echo „Inhalt der E-Mail“ | mail -s „Betreff“ josef.schuster@dpsolution.de
root@js-ubuntu-26-04-01:~#
root@js-ubuntu-26-04-01:~# tail /var/log/msmtp.log
Sep 17 21:25:02 host=smtp.1und1.com tls=on auth=on user=josef.schuster@dpsolution.de from=josef.schuster@dpsolution.de recipients=josef.schuster@dpsolution.de mailsize=243 smtpstatus=250 smtpmsg=’250 Requested mail action okay, completed: id=ID‘ exitcode=EX_OK
root@js-ubuntu-26-04-01:~#
This entry was posted on Donnerstag, September 17th, 2026 at 21:44 and is filed under Administration, Linux Solution. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.