ModeemiWiki

Tampere computer hobby club

User Tools

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 22:48] – [Mail system] nikomodeemi:pub:mail_system [2026/04/26 16:28] (current) – [Sieve config] niko
Line 22: Line 22:
 === Outgoing mail === === Outgoing mail ===
 ^ parameter ^ value  ^ ^ parameter ^ value  ^
-| Type | smtp +| Type | smtps 
 | Server address | mail.modeemi.fi | | Server address | mail.modeemi.fi |
 | Port | 465      | Port | 465     
Line 32: Line 32:
 === Outgoing mail (alternative) === === Outgoing mail (alternative) ===
 ^ parameter ^ value ^ ^ parameter ^ value ^
-| Type | smtp +| Type | submission(s) 
 | Server address | mail.modeemi.fi | | Server address | mail.modeemi.fi |
 | Port | 587     | | Port | 587     |
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.1772578096.txt.gz · Last modified: by niko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki