HOWTO add the SMTP server securesmtp.t-online.de:587 into the exim4 configuration

From NHI1
Jump to: navigation, search

find the T-Online SMTP password

  • The T-Online SMTP server is protected using the username/password setup created at the E-Mail Center.
  • The T-Online username is your T-Online email-addressyour_email@t-online.de

extract the username/password from E-Mail Center

If there is NO known password you have to create a new one in the E-Mail Center

  • de: https://www.t-online.de
  • de: E-Mail Login → E-Mail Center
  • de: Einstellungen → Alle Einstellungen anzeigen
  • de: Passwörter → Passwort für E-Mail Programme
  • follow the steps

extract username/password from thunderbird

If there is a known password you can extract the Password from your E-Mail Client.

  • Edit
  • Preferences → SEARCH: password
  • Saved Passwords → SEARCH: securesmtp

/etc/exim4/update-exim4.conf.conf

This is an example configuration using the T-Online SMTP server:

dc_smarthost='securesmtp.t-online.de::587'

The entire example configuration file looks like:

dc_eximconfig_configtype='satellite'
dc_other_hostnames='your_hostname'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='nhi1.selfhost.co'
dc_relay_domains='empty or your_relay_domain'
dc_minimaldns='false'
dc_relay_nets='empty or your_relay_nets'
dc_smarthost='securesmtp.t-online.de::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

and is created by:

sudo dpkg-reconfigure exim4-config

on a debian or a raspberry pi system.

/etc/exim4/passwd.client

The server-name have to be the canonical name after the name-resolution created with:

$ nslookup securesmtp.t-online.de
...
Non-authoritative answer:
Name:   securesmtp.t-online.de
Address: 194.25.134.110
Name:   securesmtp.t-online.de
Address: 194.25.134.46
securesmtp.t-online.de  canonical name = sfwdallmx.t-online.de.

The new password-configuration-file finally looks like:

# password file used when the local exim is authenticating to a remote
# host as a client.
#
# see exim4_passwd_client(5) for more documentation
#
# Example:
### target.mail.server.example:login:password
sfwdallmx.t-online.de:your_email@t-online.de:your_password

activate the new setup

To activate the new setup the exim4 server have to be restarted with:

sudo service exim4 restart

It is not enough to update just the configuration with:

sudo update-exim4.conf

because this does only update the configuration for the new clients and not for the main exim4 server.