Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi,

ich habe mir vor kurzen unter Centos 5 einen Mailserver eingerichtet, welcher auch wunderbar funktioniert.

Es handelt sich um Postfix (2.3.3) mit dovecot (1.0.7) als imap daemon. Beide benutzen mysql um ihre user und co. zu verwalten (virtual domains, users etc.). Das alles mit SSL.

funktioniert alles klasse. nun wollte ich mir noch sieve einrichten, damit ich serverseitige regeln erstellen kann. Nach x howtos bin ich mittlerweile am verzweifeln und hoffe, dass mir hier jemand helfen kann das ans laufen zu bekommen.

hier mal meine aktuelle dovecot und postfix config:

dovecot.conf


protocols = imaps

listen = 

ssl_disable = no

ssl_cert_file = /etc/cert/mail.domain.net.cert

ssl_key_file = /etc/cert/mail.domain.net.key

ssl_cipher_list = ALL:!LOW:!SSLv2

ssl_verify_client_cert = no

verbose_ssl = yes

mail_location = maildir:~/

mail_debug = no

verbose_proctitle = yes

first_valid_uid = 89

last_valid_uid = 89

first_valid_gid = 89

last_valid_gid = 89

maildir_copy_with_hardlinks = yes

protocol imap {

  mail_plugins = quota imap_quota

  imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep

}


protocol lda {

  postmaster_address = postmaster@domain.net

  hostname = mail.domain.net

  auth_socket_path = /var/run/dovecot/auth-master

}

auth_executable = /usr/libexec/dovecot/dovecot-auth

auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@

auth_debug = no

auth_realms = domain.net

auth default {

  mechanisms = plain login

  passdb sql {

    args = /etc/dovecot-mysql.conf

  }

  userdb prefetch {

  }

  userdb sql {

    args = /etc/dovecot-mysql.conf

  }

  user = nobody

  socket listen {

    client {

      path = /var/spool/postfix/private/auth

      mode = 0666

      user = postfix

      group = postfix

    }

  }

}

dict {

}

plugin {

  quota = maildir

}

postconf -n:

alias_maps = hash:/etc/aliases

config_directory = /etc/postfix

home_mailbox = Maildir/

inet_interfaces = all

mydomain = domain.net

myhostname = mail.domain.net

mynetworks = 192.168.2.0/24, 127.0.0.0/8 .........

myorigin = $mydomain

smtpd_delay_reject = yes

smtpd_helo_required = yes

smtpd_helo_restrictions = permit_mynetworks,    reject_non_fqdn_helo_hostname,    reject_invalid_helo_hostname,    permit

smtpd_recipient_restrictions = permit_mynetworks,   permit_sasl_authenticated,   reject_invalid_hostname,   reject_non_fqdn_hostname,   reject_unauth_pipelining,   reject_non_fqdn_recipient,   reject_unknown_recipient_domain,   reject_unauth_destination,   check_sender_access        hash:/etc/postfix/sender_access,   check_policy_service unix:postgrey/socket,   check_policy_service inet:127.0.0.1:10040,   reject_unverified_recipient,   permit

smtpd_sasl_auth_enable = yes

smtpd_sasl_authenticated_header = yes

smtpd_sasl_path = private/auth

smtpd_sasl_security_options = noanonymous

smtpd_sasl_type = dovecot

smtpd_sender_restrictions = permit_mynetworks,    reject_non_fqdn_sender,    reject_unknown_sender_domain,    permit

smtpd_tls_auth_only = yes

smtpd_tls_cert_file = /etc/cert/mail.domain.net.cert

smtpd_tls_key_file = /etc/cert/mail.domain.net.key

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_security_level = may

smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_cache

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf

virtual_gid_maps = static:89

virtual_mailbox_base = /mail

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf

virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

virtual_minimum_uid = 89

virtual_transport = virtual

virtual_uid_maps = static:89

nun die Frage, wie bekomme ich sieve bei meinen Gegebenheiten ans laufen?

Danke und Gruß

Sebastian

Du musst das Sieve Plugin in Dovecot eintragen (ggf. noch als Protokoll managesieve aktivieren) und deinem Postfix sagen, er soll das "deliver"-Binary von Dovecot als Local-Delivery-Transport nutzen - ich kann Dir da leider nicht blind helfen, da deine Uralt-Dovecot Version in der Konfiguration "etwas" anders ist, als meine aktuelle Config (und ich Exim nutze :)

Die Config-Datei von Dovecot ist eigentlich recht gut dokumentiert.

Bei deiner Version sollte das Plugin noch CMUSieve heissen AFAIR.

Bei Debian Lenny ist dovecot 1.1.x dabei und in den Backports findet sich das aktuelle 1.2.x

Der Wechsel von 1.1 auf 1.2 hat mir dank Änderungen in der Art der Konfiguration von den Plugins hier vor kurzem eine Forenpause von einem Tag beschert, da die lokale Zustellung kurz lahmgelegt war und so ein "paar" NDRs rausgingen *grml* :(

Auch wollte mein Sieve-Skript nicht mehr (require "imapflags"; muss nun lauten require "imap4flags"; - na danke.. :rolleyes: )

Grüße

Ripper

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.