UCS 4.3 policy for sending system mails, how to set authentication and mail server data?


#1

Hi all

UCS Version: 4.3.0-errata9
Setup: DC-master and DC-slave

I have set a policy to enable the sending of system-emails (i.e. cron) to my personal mail adress

Type: “Univention Configuration Registry”
Variable: mail/alias/root
Value: thomas@stather.eu

Then i attached it to the “computers” LDAP container to work for all UCS machines.

My question is now, where do i set the smtp mailserver, port, TLS settings and authentication data?

I think unauthenticated and unencrypted mail submission won’t work :slight_smile:

Cheers

Thomy


#2

Hi

If somebody is looking for a solution:
docs.software-univention.de/manual-4.3.html#mail::serverconfig::relay

ucr set mail/relayhost=smtp.strato.de
ucr set mail/relayauth=yes
vi /etc/postfix/smtp_auth
  smtp.strato.de	thomas@stather.eu:<password>
postmap /etc/postfix/smtp_auth

echo "Test" | mail -s "Testmail" thomas@stather.eu

-> Everything works :slight_smile:

Cheers

Thomy