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?
- Please find out if your server provider supports a SMTP-Relayserver
- The hosteurope product Virtual Server 10+ does so. More infos here: https://www.hosteurope.de/faq/server/virtual-server/vs-mail-relay/
- If your provider provides not such server, there should be at least the possibility to set a RDNS entry.
- In case of doubt ask your provider
If yes
- Find out the adress:
- For Hosteurope-KIS: Produktverwaltung->Virtual Server 10+->Login->Einstellungen->SMTP-Relayserver
- Example: n1smtpout.europe.secureserver.net
If not
- Please check, if your RDNS is configured correctly. For example, visit this site: https://www.debouncer.com/reverse-dns-check
- Fill in:
bbs-ilias.de
- A good result is:
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.
- If not, check out this page: https://bbs-ilias.de/ilias/goto.php?target=pg_31_187&client_id=info
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 | # |
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