ModeemiWiki

Computer hobby club @ University of Tampere

Site Tools


modeemi:pub:mail_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
modeemi:pub:mail_system [2026/03/03 23:07] – [Mail client parameters] nikomodeemi:pub:mail_system [2026/09/20 15:21] (current) – kvivi
Line 1: Line 1:
 ====== Mail system ====== ====== Mail system ======
  
-Modeemi membership includes an e-mail address in format //username@modeemi.fi//, and 1GB space for your messages (hopefully soon we increase that limit). //Name.Surname@modeemi.fi// alias is available upon request, and it is possible to use it as well during email submission. You can receive and send email with mail client of your choice - //Thunderbird//, or simply //Gmail app for android//.+Modeemi membership includes an e-mail address in format //username@modeemi.fi//, and 1GB space for your messages (hopefully soon we increase that limit). //Name.Surname@modeemi.fi// alias is available upon request, and it is possible to use it as well during email submission. You can receive and send email with mail client of your choice - //Thunderbird//, or simply //Gmail app for android//. For a guide on how to set up a mail client with your email, see [[modeemi:members:Email client setup guide]]
  
  
Line 45: Line 45:
  
  
 +===== Sieve config =====
  
 +If You are member of many aliases, You may like to send them to different folders in your mailbox, depending which alias mail was sent to. Sieve allow You to set up that kind of organizing mailbox - it catches the incoming messages, and depending on Your settings can put them in specific folder, or even do something else!
 +
 +To configure sieve for your account, create file //.dovecot.sieve// in Your home directory (///home/username//), and create config which looks like that (but adjust it so that it matches your needs). If You define that some mails are redirected to specific folder - first create it (You can do so in your mail client) - they are not automatically created by Sieve.
 +<code>
 +# My Sieve Filter
 +# List the extensions used by this script
 +require ["fileinto", "reject"];
 +
 +# Messages bigger than 2MB will be rejected with an error message
 +if size :over 40000K {
 +  reject "I am unable to accept email larger than 40MB.";
 +} elsif anyof (
 +    address :matches "from" "*report*@*",
 +    header :contains "subject" "Report",
 +    address :matches "from" "*dmarc*@*",
 +    header :contains "subject" "*dmarc*"
 +) {
 +    fileinto "dmarc";
 +} elsif address :is ["To"] "doors@modeemi.fi" {
 +  fileinto "doors";
 +} elsif address :matches "To" "hallitus@*" {
 +    fileinto "Board";
 +} elsif address :matches "To" "board@*" {
 +    fileinto "Board";
 +} elsif address :matches "To" "*@tuni.fi" {
 +    fileinto "tuni";
 +} elsif address :matches "To" "*@trey.fi" {
 +    fileinto "trey";
 +} elsif not anyof(
 +    address :is "To" "username@modeemi.fi",
 +    address :is "To" "username@modeemi.cs.tut.fi"
 +) {
 +    fileinto "Others";
 +}
 +</code>
  
  
modeemi/pub/mail_system.1772579250.txt.gz · Last modified: by niko