&Daniel.Naber; &Daniel.Naber.mail;
&David.Rugge; &David.Rugge.mail;
Michel
Boyer de la Giroday
michel@klaralvdalens-datakonsult.se
&Scarlett.Clark; &Scarlett.Clark.mail;
&David.Bryant; &David.Bryant.mail;
2020-08-18
5.14.2 (Applications 20.04.2)

# Getting Started

This is a short introduction to &kmail; and its usage so you can start working with it right away. For more in-depth information see the Using &kmail; section.

## Account Wizard

The first time you run &kmail; you will be greeted by the Account Wizard.

If at any time you need to run the account wizard again, you can find it under Settings Add Account.

The wizard will lead you through the process of creating an email account. Your screens will vary depending on how much the wizard can determine on its own. Here is an outline of the screens you will encounter while using this wizard.

1. The first screen of the wizard is Provide personal data. It will prompt you for your basic account information: Full name:, E-mail address, and Password. By default, the Find provider settings on the Internet option is checked, so the wizard will attempt to retrieve the necessary information from the email server. Uncheck this option if you are an expert user and you want to set up an advanced configuration. Click the Next button when finished.

   Account Wizard
   Account Wizard

   The "Provide personal data" dialog

   GMail accounts must use &IMAP;. If you have enabled 2-step verification for your GMail account, you will have to get a verification code from Google as part of the initial account setup process. You will not have to perform 2-factor verification after the &kmail; account has been created, because Google marks your &IMAP; link as fully trusted.

2. The next screen helps you set up encryption keys for your mail.

   Account Wizard 2
   Account Wizard 2

   The encryption options dialog

   If you want to secure your communications with GnuPG you can generate a new key and publish the key on a public key server, or you can import an existing key. If you decide to generate a new key pair, do not forget the password used to generate it. You will need that password every time you want to use the key.

   When sending mail, &kmail; optionally looks for encryption keys for your recipients, and encrypts the message if a key can be found. &kmail; can also sign your mail cryptographically, so that each recipient can verify that your message has not been tampered with.

3. A Setup complete screen will appear if the wizard determined the account type successfully. Click Details... to view the settings &kmail; has established. Click the Finish button to set up the account, complete the wizard, and close the window.

   Account Wizard 3
   Account Wizard 2

   The account type selection dialog

   If the wizard cannot determine your account type, the Select Account Type screen will appear. Select your account type from the list (if you do not know, you will need to contact your email provider). If your account type is not listed, click the Check for more on Internet button. Once your account type has been selected, click the Next button, and you will be presented with the Personal Settings screen.

4. If the wizard could not locate your email server by searching the internet, the Personal Settings screen will appear.

   Account Wizard 4
   Account Wizard 2

   The "Personal Settings" dialog

   Be certain to enter all this information correctly. Select Download all messages for offline use if you want your messages to be accessible when you do not have an Internet connection (&IMAP; only). Click the Next button when finished. The Setup complete screen will appear.

   Your account has now been set up, and you can click the Finish button to complete the wizard and close the window, or click the Details... button to review the account settings.

If you wish to create an account manually, please continue reading this chapter. Otherwise, you may safely skip ahead to Testing your Setup.

## Manual Configuration Quickstart

The configuration screen
The configuration screen

&kmail;'s main configuration screen

The Settings Configure &kmail;... window consists of six sections: Accounts, Appearance, Composer, Security, Misc, and Plugins.

To begin sending and receiving messages you will only have to change some settings on the Accounts page. Here is a brief synopsis of the steps you must take to set up a new mail account. For a more detailed description, please read the Configure &kmail; chapter.

### Setting your Identity

To create a new identity, click the Add... button on the Identities tab associated with the Accounts page. A small pop-up window will appear.

The new identity dialog
The new identity dialog

Adding a new identity

You have some options here. Give the new identity a name, and select one of the available choices ("With empty fields" or "Use System Settings values"). Then click OK. The identity configuration screen will appear.

The new identity dialog continues
The new identity dialog continues

Configuring the new identity

The settings in the General tab are fairly straightforward. Fill in the Your name field with your full name (&eg;, `John Doe`) and the Organization field (optional) with the appropriate information. Next, fill in the Email address field with your email address (&eg; `john@example.net`).

If you are using PGP or GnuPG you can set your &openpgp; keys and/or &smime; certificates in the Cryptography tab.

The Advanced and Templates tabs can be used to tailor the way outgoing messages from this identity will be formatted and processed. See Configure &kmail; for more detailed instructions.

Optionally, go to the Signature tab and enter your signature. This is a short bit of verbiage that will be automatically appended to all your messages. It has nothing to do with digital signatures. You may also wish to insert a small personal avatar in outgoing message headers via the Picture tab.

### Setting up your Account

The Accounts page also contains the settings that tell &kmail; how to send and receive your email messages. Many of these settings can vary greatly depending on the way your system is set up, and on the kind of network in which your mail server is located. If you do not know what setting to choose or what to put in a field, consult your ISP (Internet Service Provider) or system administrator.

### Sending Messages

Here's one way to create an outgoing mail account.

Outgoing account choices
Outgoing account choices

Choosing an outgoing email account type

When you click the Add... button on the Sending tab, this screen will appear. If your computer is connected directly to the internet you will most likely want to choose &SMTP;. If you need to use &Sendmail; or &Microsoft; EWS, please consult the Configuration chapter. Whichever type of outgoing account you select, check the box labeled "Make this the default outgoing account". (You can easily change this later if you have more than one email account.)

When you select the &SMTP; option and click the ✓ Create and Configure button, the following configuration screen will appear.

The sending configuration dialog
The sending configuration dialog

Configuring an &SMTP; account

At a minimum, you must supply an email server &URI;. If your email service requires authentication before sending messages, check the "Server requires authentication" box and supply your email address and password. If you want &kmail; to remember your password, check the "Store SMTP password" box. If you have not yet created a wallet, you will be asked to provide a password.

Verify that the connection to the SMTP server is working by choosing the Advanced tab and clicking the Auto Detect button. &kmail; will query your &SMTP; server for the correct settings (encryption, port number, and authentication method). After the proper settings have been detected, the outgoing account is ready to use. (Please refer to Configuration if the &SMTP; connection requires additional fine tuning.)

### Receiving Messages

By default the Local Folders (inbox, outbox, sent-mail, trash, drafts, and templates) in the primary &kmail; folder are predefined on this tab. Using the drop down box you can set the Retrieval Options for these folders. (Note that &kmail; uses the Maildir format to store messages on your hard disk: each message is stored as a separate file. The exact location of the primary &kmail; directory depends on the &Linux; distribution you have installed, but it is probably in ~/.local/share/ somewhere.)

To set up an account so you can receive mail, press the Add... button on the Receiving tab. Choose "Custom Account..." from the drop down list. You will then be prompted for the account type. Most users will select POP3 E-Mail Server or IMAP E-Mail Server. If you want to use a local mailbox file (Mbox), please see the FAQ about file locking.

The receiving configuration dialog
The receiving configuration dialog

Configuring an &IMAP; account

If you chose &POP3; or &IMAP;, the account settings window will appear. First, fill in the Account Name field to name your account. You can choose any name you like. Username, Password, and Incoming mail server (or IMAP Server) should be filled in with the appropriate information from your ISP or system administrator. If you want &kmail; to check for new messages automatically, check the Enable interval mail checking box and set the time interval you desire.

Next, click on the Advanced tab and then the Auto Detect button. &kmail; will query your incoming message server to determine the correct settings for this account (encryption, port number, and authentication method).

#### Options only relevant to IMAP

If you check Automatically compact folders on the Advanced configuration tab, &kmail; removes the messages you deleted from the server as soon as you leave that folder. Otherwise, the messages are only marked as deleted and it is up to you to compact the folders manually.

#### Options only relevant to POP3

Select Leave fetched messages on the server on the Advanced configuration tab if you want to leave your messages on the server after you have downloaded them. There are seven ways to specify how long old messages will be kept after being downloaded: indefinitely (leave all options unselected), or number of days / number of messages / maximum size of server side inbox (choose one, two, or all three). If this box is not checked, all messages will be immediately deleted from the remote server after downloading is complete.

On the Advanced tab you can also select Use pipelining for faster mail download if this is supported by your server. Test this to make sure it works safely.

The inbox is the default folder for incoming messages. If you want to change that for some reason, you can do so with Destination folder. But what you probably want is a filter.

With Pre-command you can specify a program that &kmail; should execute before fetching mail. Please specify the full path (do not use ~) and note that &kmail; will not continue until the program returns.

#### Options for both IMAP and POP3

On the Receiving tab, under Retrieval Options, select Include in Manual Mail Check if you want to check this account whenever you invoke File Check Mail. If you do not select this option you can still check for new messages on this account with File Check Mail In > .

&kmail; supports encryption via SSL/TLS and STARTTLS (SSL/TLS should be preferred if it is available).

&kmail; supports nine authentication methods:

- Clear text,

- PLAIN,

- LOGIN,

- CRAM-MD5 (recommended if DIGEST-MD5 is not available),

- DIGEST-MD5 (recommended),

- NTLM,

- GSSAPINTLM,

- APOP (aka Anonymous), and

- Gmail.

DIGEST-MD5, CRAM-MD5 and APOP are secure on their own. The other options are only secure when used together with SSL or TLS. You should only use Clear text if your server does not support any of the other authentication methods. Anonymous is supported on &IMAP;, but APOP is not. Gmail authentication is only available for &IMAP; accounts using Google's GMail service.

Use the Auto Detect button on the Advanced tab to automatically select the most secure settings supported by your server.

You are now ready to receive mail. For &IMAP;, just open your folders in the folder tree in &kmail;'s main window. &kmail; then connects to your server and displays the messages it finds. For POP3 use File Check Mail.

### Testing your Setup

First, you should send yourself a message to test your configuration. To send a message, either hit &Ctrl;N, select the New button, or select the Message New Message... menu item. The composer window will appear. Fill in the To: field with your email address and type something in the Subject field. Send the message by selecting Message Send Mail .

To check your email, select File Check Mail. In the lower right corner of the main window, a progress bar will indicate how many messages are being downloaded. If you receive the message you just sent, then congratulations! If, however, you receive any error messages while testing your setup, make sure that your network connection is working and recheck your settings at Settings Configure &kmail;....