ILIAS-7-Install-Tutorial for Ubuntu 20.04

Postfix

With this little tutorial I show you how to enable email support for your server. It supports only forwarding, that means, all mail traffic will be forwarded to a mailaccount of your choice. For example, if www-data wants to send me a message, it will be forwarded to wolfgang.huebsch@gmx.de. You can also add a alias like this: wolfgang.huebsch@bbs-ilias.de -> wolfgang.huebsch@gmx.de

Does your Server provider supports a SMTP-Relayserver?

If yes

  • Find out the adress:
    • For Hosteurope-KIS: Produktverwaltung->Virtual Server 10+->Login->Einstellungen->SMTP-Relayserver
    • Example: n1smtpout.europe.secureserver.net

If not

FCrDNS test result:
176.28.8.65 resolved to bbs-ilias.de;
bbs-ilias.de resolved to 176.28.8.65;
rDNS if forward confirmed.

Generic PTR record test result:
bbs-ilias.de not looks like generic.

Install Postfix

  • apt-get install libsasl2-modules bsd-mailx postfix
  • Choose Internet-Site
  • System Mail-Name: bbs-ilias.de

Configure main.cf

  • nano /etc/postfix/main.cf
  • Change the follwoing lines like this (search for them with STRG+W):
    • myhostname = bbs-ilias.de
    • mydestination = bbs-ilias.de, localdomain, localhost, localhost.localdomain, localhost
    • mailbox_size_limit = 10240000
    • If you use a SMTP-Relayserver: relayhost = n1smtpout.europe.secureserver.net
      • Otherwise leave as it is
  • Check the syntax: postfix check
  • Reload service: systemctl reload postfix

Configure Mail-Aliases

  • nano /etc/aliases
  • Add your forwarding mailadress like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Mail aliases for sendmail
#
# You must run newaliases(1) after making changes to this file.
#

# Required aliases
postmaster: someadress@someprovider.com
MAILER-DAEMON: someadress@someprovider.com

# Common aliases
abuse: someadress@someprovider.com
spam: someadress@someprovider.com

# Other aliases
clamav: someadress@someprovider.com
root: someadress@someprovider.com
wolfgang.huebsch: someadress@someprovider.com

Use TAB-Stop to add spacing (not like above with space key).

  • Activate aliases: newaliases
  • Send a testmail: echo "ILIAS is the best system" | mailx -s "Test-Mail" wolfgang.huebsch@gmx.de

Find errors

  • nano /var/log/mail.log
  • Have a look for entries like this:  No SMTP service 554-Bad DNS PTR resource record
  • That means your Reverse DNS is not set correctly for our domain (bbs-ilias.de). You can aprove this also here: https://www.dnsqueries.com/en/reverse_lookup.php
  • Of course you can find any other error there


No comment has been posted yet.