04.06.2013 Views

UCS 2.4 - Univention

UCS 2.4 - Univention

UCS 2.4 - Univention

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.3 Setting up the mail server<br />

To assign a user an e-mail address, his primary e-mail address must be entered in Primary e-mail ad-<br />

dress of the the Mail tab of a user object in <strong>Univention</strong> Directory Manager. This is used for authentication<br />

on the mail server. Additionally any number of further addresses under which the user should be reachable<br />

can be entered in the Alternative e-mail addresses field. The e-mails sent to the entered user addresses<br />

are all delivered to the same inbox. If two users have the same alternative e-mail address, they both<br />

receive all the e-mails which are sent to this address. Primary e-mail addresses on the other hand must<br />

always be unique.<br />

Postfix differentiates between the delivery of e-mails between local and external domains. Delivery to<br />

mailboxes defined in the LDAP directory is only conducted for e-mail address from local domains. The<br />

DNS domain of the mail server is preset for this. If e-mail addresses should be assigned to local mailboxes<br />

which are not from the server’s domain, a list of the domains to be used can be defined using the <strong>Univention</strong><br />

Configuration Registry variable mail/hosteddomains. Example:<br />

univention-config-registry set mail/hosteddomains="mydomain.com \<br />

myotherdomain.com subdomain.mydomain.com"<br />

In this it must be noted that the otherwise preset domains of the server must be a component of this list to<br />

process e-mails from the local domain. Then the command<br />

postmap /etc/postfix/transport<br />

must be executed to adopt the changes via Postfix.<br />

For incoming e-mails Postfix performs a validity test in the form of a search of the LDAP directory for<br />

domains from the thus defined field of responsibility. That means that e-mails are only accepted for e-mail<br />

addresses defined in the LDAP directory or via an alias.<br />

Following the optional filtering for spam and viruses, the received e-mails are forwarded to the local<br />

POP/IMAP server Cyrus.<br />

E-Mails to foreign domains are sent directly to the responsible server as standard, which is resolved<br />

via MX records. If the output should be taken over by a relay host, e.g., the Internet provider, the fully<br />

qualified domain name of the relay host must be entered in the <strong>Univention</strong> Configuration Registry variable<br />

mail/relayhost.<br />

If authentication is necessary on the relay host for sending, the <strong>Univention</strong> Configuration Registry variable<br />

mail/relayauth must be set to yes and the /etc/postfix/smtp_auth file edited. The relay host,<br />

user name and password must be saved in this file in one line.<br />

:<br />

The following command must then be executed for this file to adopt the changes via Postfix.<br />

postmap /etc/postfix/smtp_auth<br />

The <strong>Univention</strong> Configuration Registry variable mail/messagesizelimit can be used to set the maxi-<br />

mum size in bytes for incoming and outgoing e-mails. The preset maximum size is 10240000 bytes. If the<br />

value is configured to 0 the limit is effectively removed.<br />

After modifying configuration settings Postfix must be restarted to ensure correct functioning in accordance<br />

with the settings. This is done with:<br />

257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!