Create a Mail Domain

A mail domain is a set of mailboxes associated with a single domain name. Every mailbox has its email address in the following format "<mailbox name>@<domain name>. E.g.: " mail@example.com ".
Perform the following steps to add a mail domain in ispmanager:
    .1Go to Mail → Mail domains → Create mail domain.
    .2Enter the Name of the mail domain you want to add.
    .3Select the Owner of this mail domain.
    .4Select an IP address to send emails from or select "receive automatically" to assign a free IP address to the newly created mail domain.
Details
A line "<mail domain name>:" is added to /etc/exim/domainips.
    .1Select the Default action that is needed when an e-mail is received stating that a mailbox does not exist:
  • Reply error — the sender will be notified that the mailbox does not exist (recommended);
  • Ignore and drop — if the mailbox does not exist, the user will not receive delivery failure reports. The mail server will not accept the email and will delete it;
  • Redirect to email address — if the mailbox does not exist, the user will be prompted for an alternative mail domain specified in the Redirect to field;
Note
The redirect won't be applied if you enter an email alias in the Redirect to field.
  • Redirect to domain — the mail server will try to find the mailbox on the mail domain specified in the Redirect to field.
Details
A line of the form "<mail domain name>:<mail domain name>:<mail domain name>:<email address for redirection>:no" is added to to /etc/exim/domains. <email address for redirection> is an empty value if the default action is "Reply error"; "/dev/null" if the default action is "Ignore and drop"; an email address or domain name if the default value is "Redirect to email address" or "Redirect to domain".
    .2Enable additional options. They are available only if the corresponding module is installed. Please refer to the article Install a mail server for more details.
  • Enable Greylisting — Greylisting is a method of defending e-mail users against spam that temporarily rejects any email from a sender it does not recognize. Select this check box to enable Greylisting for the domain's mailboxes. Otherwise, the mail domain is added to /<postfix directory>/postgrey_whitelist_clients;
  • Enable SpamAssassin — mail filter for spam protection. Select this check box to enable SpamAssassin for the domain's mailboxes. Otherwise the mail domain is added to /<spamassassin directory>/local.cf;
  • Enable virus scanning — ClamAV is an open-source antivirus engine for checking files attached to email messages;
  • Enable DKIM for domain — an email validation system designed to detect email spoofing by providing a mechanism to allow receiving mail exchangers to check that incoming mail from a domain is authorized by that domain's administrators. Enter the DKIM-selector; set the DKIM key length. The TXT-record will be created for the mail domain of this domain after you have enabled the option. Please refer to the article Resource records. The record name is "dkim._domainkey.<mail domain name>."; the value is "v=DKIM1; k=rsa; s=email; p=<an open DKIM key>".
Details :
A TXT-record will be created for a domain name of the mail domain. The name of the record is "dkim._domainkey.<mail domain name>."; the value is "v=DKIM1; k=rsa; s=email; p=<open DKIM key>".The keys are generated with the opendkim-genkey utility with the permissions of the exim user who is the owner of the mail domain:
/bin/sh -c /usr/sbin/opendkim-genkey\ -D\ /etc/exim/ssl\ -d\  domain.com \ -s\ dkim\ -r
The keys are kept in /<exim directory>/ssl/. The <nmail domain name>.private file contains the private key, the file <mail doman name>.txt contains an open one.
    .7Select the Enable DMARC for the domain checkbox. This mechanism helps protect incoming emails from spam, spoofing, and phishing. Enable the option to create a TXT-record for the domain name of the mail domain. Read more in Resource records. The value of this record is generated based on the template. You can edit the template in Domain names (DNS) → Default settings → DMARC record.
    .8 Select the Secure connection (SSL) checkbox if you want to use a secure connection through the SSL protocol:
    .aEnter an Alias for certificate. The default value is "mail.<mail domain name>".
    .bSelect an SSL-certificate that will be used for this mail domain. "New self-signed" is a free untrusted certificate. If you use it for a public website the connection will be considered insecure. "New Let's Encrypt certificate" is a free trusted certificate that you can use if you have set up the integration with Let's Encrypt. Learn more under  Integration with Let’s Encrypt . For more information about certificates please refer to  SSL certificates .
    .cEnter the Email address of the contact person.
    .9Click Ok.
Note
A domain name will be automatically created for the mail domain. Learn more under   Create a domain name .