How to setup Mail plugin

Requirements

In order to install mail plugin, you need to have installed and configured Systems plugin. If you don't know how to install him, you can take a look at:

Install required packages

debian:

apt-get install fusiondirectory-plugin-mail

RHEL / CentOS:

yum install fusiondirectory-plugin-mail

Install required schemas

debian:

apt-get install fusiondirectory-plugin-mail-schema
fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/mail-fd.schema
fusiondirectory-insert-schema -i /etc/ldap/schema/fusiondirectory/mail-fd-conf.schema

RHEL / CentOS:

yum install fusiondirectory-plugin-mail-schema
fusiondirectory-insert-schema -i /etc/openldap/schema/fusiondirectory/mail-fd.schema
fusiondirectory-insert-schema -i /etc/openldap/schema/fusiondirectory/mail-fd-conf.schema

Services installed

From now, you have this new services available for every system server:

  • IMAP/POP3 generic service
  • Postfix (SMTP)
  • Antivirus service
  • Spamassassin service

You can find and use it in Administration section, under Systems. In your systems list, choose or create a server, then go to the Services tab and choose the service to add to your server via Actions –> Create –> …:

IMAP/POP3 generic service

If you choose this service, a new dialog is opened. You need just to Save::

Click on OK:

Now, in services column, you can see the imap/pop3 icon:

Postfix (SMTP)

If you choose this service, a new dialog is opened. Fill at least in the required fields, then Save:

Generic

  • Visible full qualified hostname: (required) The fully qualified host name. The internet hostname of this mail system.
    Example:
    host.domain.tld
  • Max mail header size (KB): The maximum amount of memory in Kbytes for storing a message header. If the header is larger, the excess is discarded. Default value is zero, that defines no limit.
  • Max mailbox size (KB): The maximum size of any local individual mailbox or maildir file. Default value is zero, that defines no limit. This limit must not be smaller than the message size limit.
  • Max message size (KB): The maximum size in bytes of a message, including envelope information. Default value is zero, that defines no limit.
  • Relay host: Relay messages to following host. The next-hop destination of non-local mail; overrides non-local domains in recipient addresses. Specify a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname] turns off MX lookups.
    Examples:
    [gateway.example.com]
    uucphost
    [an.ip.add.ress]
  • Local networks: The list of “trusted” remote SMTP clients that have more privileges than “strangers”. Specify a list of network addresses or network/netmask patterns, separated by commas and/or whitespace. Continue long lines by starting the next line with whitespace.
    Examples:
    127.0.0.0/8 168.100.189.0/28
    !192.168.0.1, 192.168.0.0/28
    127.0.0.0/8 168.100.189.0/28 [::1]/128 [2001:240:587::]/64
    hash:/etc/postfix/network_table

Restrictions

  • Restrictions for sender: Optional restrictions that the Postfix SMTP server applies in the context of a client MAIL FROM command. The default is to permit everything. Restrictions are applied in the order as specified; the first restriction that matches wins.
  • Restrictions for recipient: Optional restrictions that the Postfix SMTP server applies in the context of a client RCPT TO command.

Domains and routing

  • Domains to accept mail for: The list of domains that are delivered via the local_transport mail delivery transport. Do not specify the names of virtual domains - those domains are specified elsewhere. Do not specify the names of domains that this machine is backup MX host for. By default, the Postfix SMTP server rejects mail for recipients not listed.
    Examples:
    host.example.com
    localhost.example.com
    example.com
  • Transport: Specifies a mapping from email addresses to message delivery transports and next-hop destinations.

Click on OK when you have finished:

Now, in services column, you can see the postfix icon:

Antivirus service

If you choose this service, a new dialog is opened. Fill at least in the required fields, then Save:

Generic virus filtering

  • Database user: (required) User name for the database.
  • Database mirror: Mirror for the database.
  • Http proxy URL: URL for the proxy.
  • Maximum threads: Maximum number of threads. Valid value are from 1 to 20. Default value is 5.
  • Max directory recursions: Number of max directory recursions.
  • Checks per day: Number of checks per day.
  • Enable debugging: Whether to enable debugging for the antivirus.
  • Enable mail scanning: Whether to enable mail scanning for the antivirus.

Archive scanning

  • Enable scanning of archives: Whether to enable scanning of archives.
  • Block encrypted archives: Whether to block encrypted archives.
  • Maximum file size: Maximum file size (byte). Default value is 4000 byte. Put 0 to disable.
  • Maximum recursion: Maximum number of recursions. Default value is 5. Put 0 to disable.
  • Maximum compression ratio: Maximum compression ratio (%). Default value is 95. Put 0 to disable.

Click on OK when you have finished:

Now, in services column, you can see the antivirus icon:

Spamassassin service

If you choose this service, a new dialog is opened. Fill at least in the required fields, then Save:

Spam tagging

  • Rewrite header: STRING to indicate that a message is spam.
  • Required score: Select required score to tag mail as spam.
  • Trusted networks: Add networks or hosts that you consider are 'trusted' in your setup, this means that relay hosts on these networks are considered to not be potentially operated by spammers, open relays, or open proxies.

Flags

  • Enable use of bayes filtering: Whether to use the naive-Bayesian-style classifier built into SpamAssassin.
  • Enable bayes auto learning: Whether SpamAssassin should automatically feed high-scoring mails (or low-scoring mails, for non-spam) into its learning systems, in naive-Bayesian-style classifier.
  • Enable RBL checks: Whether to enable RBL checks.
  • Enable use of Razor: Whether to use Razor.
  • Enable use of DDC: Whether to use DDC.
  • Enable use of Pyzor: Whether to use Pyzor.

Rules

  • Edit spam rule: Edit and add new spam rules.

Click on OK when you have finished:

Now, in services column, you can see the spamassassin icon:

en/documentation/admin_mail_method_installation/how_to_install_mail_plugin.txt · Last modified: 2017/10/31 10:32 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0