Mail accounts¶
Procotols IMAPv4, POP3 and SMTP are supported with both SSL and TLS on top. We use SSL certificates signed by certificate authority.
Syntax¶
The syntax is as follows:
satan mail add account <account@domain> <password>
satan mail add account <account@domain> stdin
satan mail add alias <alias@domain> <account@domain>
satan mail add catch <domain> <account@domain>
satan mail del <name>
satan mail modify <account@domain> <password>
satan mail modify <account@domain> stdin
satan mail list
The syntax can be displayed anytime by typing satan mail help. We will also be using few command from doc:domain satan module:
satan domain add <domain>
satan domain enable mail <domain>
satan domain disable mail <domain>
Syntax can be displayed anytime by typing satan domain help.
New e-mail account will be created up to one hour.
| Command | Description |
|---|---|
| satan mail add account <account@domain> <password> | Create a new e-mail account. Last argument is password in plain text. If you do not specify password at this point please use below option stdin. Domain must be either public or belong to you. Domain must have e-mail support enabled with satan domain enable mail command. |
| satan mail add account <account@domain> stdin | Create a new e-mail account with password prompt. Password will not be displayed, not even with asterisks. |
| satan mail add alias <account@domain> <alias@domain> | Create an alias pointing to one (and only one) external e-mail address. |
| satan mail add catch <domain> <account@domain> | Create a catch-all alias for the domain. E-mail sent to any address in this domain will be redirected to defined e-mail address. |
| satan mail del <name> | Delete an e-mail account or e-mail alias. Account directory and stored messages will not be erased. |
| satan mail modify <account@domain> <password> | Set the new password to the e-mail account. Last argument is password in plain text. |
| satan mail modify <account@domain> stdin | Set the new password to the e-mail account. User will be prompted for password. |
| satan mail list | List all e-mail accounts and aliases. |
Mail client configuration¶
You can use IMAP4 or POP3 protocol for incoming mail. We recommend to use IMAP4 because messages are kept on the server and we can access it from all over the world using Webmail client.
- login: my@example.com
- host: mail1.rootnode.net
Notice that your login is with @ sign. Some clients will display my@example.com@mail1.rootnode.net and it is completely normal.
Port numbers¶
Port number depends on protocol and encryption.
| Protocol | Encryption | Port |
|---|---|---|
| IMAP | TLS | 143 |
| IMAP | SSL | 993 |
| POP3 | TLS | 110 |
| POP3 | TLS | 995 |
| SMTP | TLS | 25 |
| SMTP | SSL | 465 |
Pine and Mutt¶
You can use pine and mutt mail clients from the shell server connecting via IMAP.
Webmail¶
There are two webmail clients available:
- Roundcube Mail https://webmail.rootnode.net/roundcube
- Horde IMP (traditional), DIMP (dynamic), MIMP (minimal) https://webmail.rootnode.net/horde
Sieve filtering¶
You can filter your mailbox using sieve language and managesieve protocol to put sieve rules on the server. Managesieve is supported by Webmail and many mail clients e.g. Mozilla Thunderbird. Some example rules you can find below. For detailed information about sieve look at http://sieve.info
Moving messages¶
With simple rule we can move incoming mails from Rootnode mailing list to appropriate directory:
require "fileinto";
if address :is "To" "users-pl@lists.rootnode.net" {
fileinto "Rootnode";
}
Big messages¶
If you want to filter big message you can use:
require "fileinto";
if size :over 200K {
fileinto "RootnodeBig";
}
to move them into seperate folder. You can even reject very big messages:
require "reject";
if size :over 5000K {
reject "Sorry, your message is too big";
}
Vacation¶
From time to time everyone deserves some vacation:
require "vacation";
vacation :days 10
:addresses ["my@example.com","my@example.org"]
:subject "Out of office"
"I am not available at the moment.";
Spam¶
Rootnode has multi level spam protection. Before message is scanned by antispam and antivirus software there are RBL, HELO, SPF, greylisting and other checks. In most cases you will not see any spam message.
Spam filter must be teached in order to classify spam correctly. If there is a spam message in your INBOX:
- Create special directory called Spam at the top-level, not inside INBOX folder.
- Put spam message into this folder.
By doing it you will teach spam filter that message is a spam. If you are taking message back from Spam folder you are teaching spam filter that message is legitimate and should not be considered as spam anymore.
Every message has a special header X-DSPAM-Result. If it was classified as spam it will look like:
X-DSPAM-Result: Spam
You can set sieve filtering to put spam messages into Spam folder automatically. Here is example: http://sourceforge.net/apps/mediawiki/dspam/index.php?title=Filter_results_with_Dovecot_Sieve
It is very important to avoid spam. Try to not put your e-mail address in a way it can be crawled by spammers. If you are registering somewhere consider using one-time e-mail addresses like http://mailinator.com.