Configuring Mail Settings

Adding contact groups (server mode only)

Before you can add contacts to a contact group, you must first create a contact group. Individual FortiMail webmail users can access the global or domain-based contact groups for a common set of contact information when composing email messages. For more information, log in to FortiMail webmail and click Help.

To view and add a contact groups

  1. Go to Mail Settings > Address Book > Contact Groups.
  2. From the Domain drop-down list, select System to display a global contact group or a domain to display a domain-based contact group. For information on creating domains, see “Configuring protected domains” on page 380.
  3. Click New to create a new group.

A dialog appears.

  1. In Domain, select System to add a global contact group or a domain to add a domain-based contact group.
  2. Enter the name for the group.
  3. Click Create.

To add a contact to a group

  1. Go to Mail Settings > Address Book > Contact Groups.
  2. From the Domain drop-down list, select System to display a global contact group or a domain to display a domain-based contact group.
  3. Select a group and click Edit.

A new page appears.

Figure 164:Group edit page

  1. Create a new contact or import contacts.
GUI item Description
New, Edit

(buttons)

Click to add or edit a contact. A dialog appears. For details on contact creation, see “To view and edit the address book” on page 403.
Export

(button)

Click to download a copy of the contacts in this contact group in comma-separated value (.csv) or vCard (.vcf) file format.

Exporting the contact group can be useful for backup purposes, or when using a spreadsheet application such as Microsoft Excel to make large numbers of changes to the contact group before importing it again.

Import

(button)

Click to import contacts. Select a comma-separated value (.csv) or vCard (.vcf) file format. Then click Browse to import address book entries. Click OK to upload the file.

Click and select LDAP allows you to import contacts from your LDAP server. For details, see “To import contacts from the LDAP server” on page 404.

Note: An LDAP attribute mapping template must be set up before you can import contacts from the LDAP server. For details, see “Configuring LDAP attribute mapping template (server mode only)” on page 407.

Click and select Existing Contacts displays the system or domain-based address book, depending on your selection. Select one or more contacts and click Add to Group.

Importing the address book can be useful when restoring a backup of the address book, or when importing large numbers of address book entries.

Note: To replace existing entries, first delete those entries, then import the address book file. The FortiMail unit compares the Webmail_ID value of each entry in the address book file, and will not overwrite existing address book entries.

Back Click to return to the Contact Groups tab.
Search Enter a search value for a group member, such as the first name, last name, or email address, and click this button to find the group member from the list.
First Name Displays the first name of the group member.
Last Name Displays the last name of the group member.
Email Displays the email address of the group member.

Configuring LDAP attribute mapping template (server mode only)

If you have an existing email address book in your LDAP server, you can configure the LDAP attribute mapping template to retrieve the address book and add it to the contact list. Before doing so, you must configure your LDAP server. For details, see “Configuring LDAP profiles” on page 549.

For information on retrieving the address book, see “Import” on page 403 and “To import contacts from the LDAP server” on page 404.

To view and configure an LDAP mapping list

  1. Go to Mail Settings > Address Book > LDAP Mapping.

Figure 165:Viewing LDAP mapping list

  1. Either click New to create a template or double-click an entry to modify it.

A mapping template appears.

  1. Configure the following: Figure 166:LDAP Mapping template
GUI item Description
Mapping Name Enter the name of the LDAP attribute mapping template.
Contact Field Select the FortiMail attributes used for the contacts, such as First name, Last name, or Mobile.

Note: The Email attribute must be entered.

LDAP Attribute Enter the matching contact attributes used in the LDAP server. For example, Name may be used to represent first name and Surname may be used for last name.
Add

(button)

Click to add an attribute row in the Mapping content table.
Delete

(button)

Select an attribute row in the Mapping content table and click this button to remove it.
  1. Click Create.

Sharing calendars and address books (server mode only)

FortiMail v5.0 supports calendar sharing and LDAP-based address book sharing. The calendar, meeting schedule, free-busy time, and resources like meeting rooms, projectors, and other equipment usage are also supported.

To be specific, the following features are supported:

  • FortiMail internal calendar sharing from/to FortiMail webmail users
  • Internet calendar sharing from/to FortiMail webmail users
  • Calendar sharing from/to Microsoft Outlook users using WebDAV (Outlook does not support CalDAV)
  • Calendar sharing from/to Mozilla Thunderbird users using WebDAV or CalDAV
  • Address book query from Outlook using LDAP
  • Address book query from Thunderbird using LDAP

Other email clients may also be supported if they support the standard WebDAV and CalDAV protocols.

This section contains the following topics:

  • Calendar sharing
  • Address book sharing

Calendar sharing

To share calendars, you must first enable the service on FortiMail and then configure the webmail or mail client settings.

FortiMail calendar settings

To enable the WebDAV and CalDAV services

  1. Go to Mail Settings > Calendar > Settings.
  2. Select Enable WebDAV and Enable CalDAV.
  3. Click Apply.

FortiMail calendar service supports resource management, such as meeting room and equipment.

To create a calendar resource for sharing 1. Go to Mail Settings > Calendar > Resources.

  1. Click New.
  2. Fill out the information and click Create.

FortiMail webmail settings

FortiMail webmail users can perform calendar publishing, subscribing, and sharing operations with other mail clients, such as Outlook and Thunderbird Lightning.

To access the WebDAV and CalDAV service URL

  1. Log on to FortiMail webmail.
  2. Click Preferences.
  3. Under Calendar > Service URL, click .. to access the FortiMail WebDAV service URL or click CalDAV… to access the FortiMail CalDAV service URL.

For other FortiMail webmail calendar sharing procedures, see the FortiMail webmail online help.

Thunderbird settings

Thunderbird Lightning users can publish and subscribe calendars to/from the FortiMail WebDAV server. They can also subscribe the shared calendar via the CalDAV protocol which facilitates calendar sharing and synchronization between FortiMail and Thunderbird Lightning.

Thunderbird users can schedule an event or meeting based on the free/busy information shared and stored on FortiMail WebDAV server. Before scheduling a meeting, the free/busy settings must be configured.

To publish a calendar to FortiMail WebDAV service

  1. In Thunderbird, go to Events and Tasks > Calendar.
  2. Right-click on a calendar and select Publish Calendar.
  3. For Publishing URL, enter the URL you get from the FortiMail webmail (see “FortiMail webmail settings” on page 408).
  4. Enter the user name and password required for FortiMail authentication.
  5. Click Publish.
  6. Enter the user name and password required for FortiMail authentication.
  7. Click OK.

To subscribe a calendar from FortiMail CalDAV service

  1. In Thunderbird, go to File > New > Calendar.
  2. Select On the Network.
  3. For Format, select CalDAV.
  4. Enter the publicly shared calendar location you get from the FortiMail webmail (see “FortiMail webmail settings” on page 408).
  5. Enter the display name and other settings, then click Next.
  6. Enter the user name and password required for FortiMail authentication.
  7. The new calendar will appear in the left calendar pane. And it can be synchronized with the FortiMail CalDAV service automatically or manually.

To configure the free/busy settings in Thunderbird

  1. Go to Tools > Free/Busy.
  2. Click the Settings tab.
  3. Enter the email address and the matching free/busy URL. Thunderbird users get the FB URL from the FortiMail administrator, who gets the URL from the calendar settings on the FortiMail web UI.
  4. Create a new event and invite attendees.
  5. Enter the email address of the attendees. The free/busy information will be retrieved from FortiMail.

With the free/busy settings configured, Thunderbird users can schedule a meeting with the right time.

To schedule a meeting in Thunderbird

  1. Go to Events and Tasks > New Event.
  2. Enter the event contents and click Invite Attendees.
  3. Enter the email address of the attendees. Their free/busy information will be retrieved from the FortiMail server and displayed in different colors.

Outlook settings

Outlook users can publish and subscribe calendars to/from FortiMail WebDAV service (Outlook does not support CalDAV). They can also schedule meetings based on the free/busy information shared and stored on the FortiMail WebDAV server.

Outlook users can schedule an event or meeting based on the free/busy information shared and stored on FortiMail WebDAV server. Before scheduling a meeting, the free/busy settings must be configured.

To publish a calendar to FortiMail WebDAV service

  1. In Outlook, go to Go > Calendar.
  2. Right-click on a calendar and select Publish to Internet.
  3. Select Publish to WebDAV Server.
  4. In the popup window, enter the URL you get from the FortiMail webmail (see “FortiMail webmail settings” on page 408).
  5. Specify a time span and permission.
  6. Enter the user name and password required for FortiMail authentication.
  7. Click OK.
  8. Enter the user name and password required for FortiMail authentication.
  9. Click OK.

To subscribe a calendar from FortiMail WebDAV service

  1. In Outlook, go to Tools > Account Setting.
  2. Click the Internet Calendars
  3. Click New.
  4. Enter the publicly shared calendar location you get from the FortiMail webmail (see “FortiMail webmail settings” on page 408).
  5. Specify the folder name and description.
  6. Click OK.

To configure the free/busy settings in Outlook 2007

  1. Go to Tools > Options.
  2. Then go to Calendar Options > Free/Busy Options.
  3. Enter free/busy URL. Outlook users get the FB URL from the FortiMail administrator, who gets the URL from the calendar settings on the FortiMail web UI.
  4. Not e that Publish at my location is not supported. Do not select this option.
  5. Click OK.

With the free/busy settings configured, Outlook users can schedule a meeting with the right time.

To schedule a meeting in Outlook 2007

  1. Go to New > Meeting Request.
  2. Click Scheduling.
  3. Enter the email address of the attendees. Their free/busy information will be retrieved from the FortiMail server and displayed in different colors.
  4. Click Appointment to arrange and send the meeting request.

Address book sharing

With the LDAP service enabled, users can search and download address books stored in FortiMail from within their mail clients, such Thunderbird and Outlook.

FortiMail settings

First, you need to enable the LDAP service on FortiMail.

To enable the LDAP service 1. Log on to FortiMail CLI console.

  1. Enter the following commands:

config system global set ldap-server-sys-status enable

end

By default, the LDAP service is enabled.

For the users to access the FortiMail address book from mail clients via LDAP, you must create a resource profile and a policy to allow the access.

To create a policy

  1. Go to Policy > Policies > Recipient Policies.
  2. Click New.
  3. Specify the sender and recipient patterns, and other settings.
  4. For Resource profile, click New.
  5. In the resource profile configuration, select Domain address book, Global address book, or both.

Thunderbird settings

Thunderbird users can access the address books stored on FortiMail via the LDAP protocol.

To configure the address book LDAP settings in Thunderbird

  1. Open the address book in Thunderbird.
  2. From File, select New LDAP Directory.
  3. Select the General tab.
  4. Enter a name.
  5. Enter the hostname of FortiMail.
  6. Enter the base DN.
  7. Enter the port number. The default is 389.
  8. Enter the Bind DN.
  9. Click OK.

Note that SSL is not supported. Do not select Use secure connection.

To search contacts FortiMail address books

  1. Go to Edit > Advanced address book search.
  2. Specify the address book to be searched.
  3. Enter the user name.
  4. Click Search.

To download contacts from FortiMail address books

  1. Open the address book in Thunderbird.
  2. Click Properties of an address book.
  3. Click Offline.
  4. Click Download Now.
  5. Enter the password of the binding user required for FortiMail authentication.

Outlook settings

Outlook users can access the address books stored on FortiMail via the LDAP protocol.

To configure the address book LDAP settings in Outlook 2007

  1. Go to Tools > Account Setting.
  2. Select Address Books.
  3. Click New.
  4. Enter the server name or IP address of FortiMail.
  5. Enter the user name and password. For example, User name: cn=user1,ou=outlook, ou=people, dc=example, dc=com, assuming your user name is user1, your domain name is example.com. “ou=mozilla, ou=people” should be constant. Password: 123
  6. Select More Settings.
  7. Select the Connection tab.
  8. Specify the display name and connection port.
  9. Switch to the Search tab, and specify the Search Base to Custom: dc=example, dc=com.

10.Click OK.

To access FortiMail address books 1. Open the address book in Outlook.

  1. Select the target address book.
  2. Enter the user name you want to find.
  3. Click Go.

Having trouble configuring your Fortinet hardware or have some questions you need answered? Check Out The Fortinet Guru Youtube Channel! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!

6 thoughts on “Configuring Mail Settings

  1. Viorel

    Hi,
    Do you think I could use fortimail in server mode integrated with office 365?
    Can i use this setup to be able to create email accounts in office 365 and some emails in fortimail?
    In my case I have like 140 permanent users and 30-40 users let say “temporar users”(3-4 months/year). For them I want to create emails accounts in fortimail.
    Ex: someone@testdomain.com is an office365 account, and someone2@testdomain.com to be an fortimail account.
    When an email is received I want to be able to be redirected where it belongs. If an email created in office 365 to be redirected there, if was created in fortimail should be redirected to fortimail.

    Is possible this setup?
    Thank you

    Reply
    1. Mike Post author

      I have only ever deployed a FortiMail for Office 365 utilizing Gateway mode. I’m not sure, off hand, how one would make it work in server mode.

      Reply
  2. Danny

    I have several associated domains in Fortimail, mainly for ease of administration. We currently have DKIM and SPF set up for O365 outbound mail but I’d like to start using Fortimail for outbound filtering. Will Fortimail just transparently relay the mail leaving the DKIM signature and SPF IP address unaltered and valid? Or will it strip them requiring me to use Fortimail for DKIM and its IP address in our SPF record? DKIM is so easy to set up in O365 so I would hate to have to redo it and split all our associated domains into dedicated domains.

    Reply
  3. Murat

    Hi we Have created a user in migrated user and start to migrate mailbox from exchange after couple of minutes give connection error. We sniff on cli and get an error code 500.5.3.3 can you find whats problem thanks

    Reply
  4. Conver Zafra

    I have configured the LDAP in my Outlook 2010. Is there a way to automatically sync the LDAP contacts to my local Outlook contact list, so i can search contacts even when i am offline?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.