Jump to content
Froxlor Forum
  • 0

Dovecot, Postfix und Sieve


ZIP

Question

Hallo zusammen,

 

ich betreibe schon seit längerem einen Mailserver via Dovecot und Postfix.

 

Als Plattform setze ich Debian GNU/Linux 8 ein. Dovecot und Postfix habe ich via apt-get install installiert.

 

Jetzt möchte ich zusätzlich Sieve ins Spiel bringen um die Mails automatisiert filtern zu lassen. So wie ich die Dokus verstanden habe benötige ich dafür aber das Plugin 'sieve'.

 

"Geschrieben" habe ich die sieve-scripts mit roundcube und getestet mit sieve-test. Demnach funktioniert sieve bereits super, nur leider scheint postfix/dovecot sieve gar nicht erst zu involvieren bevor die Mail abgelegt wird.

 

Meine dovecot.conf ist recht schlank:

!include_try /usr/share/dovecot/protocols.d/*.protocol
dict {
}
!include conf.d/*.conf
!include_try local.conf
mail_location = maildir:~/.maildir
mail_debug = yes

10-mail.conf

mail_location = mbox:~/mail:INBOX=/var/mail/%u
namespace inbox {
  inbox = yes
}
mail_access_groups = mail-users

20-lmtp.conf

protocol lmtp {
    mail_plugins = $mail_plugins sieve
}

90-sieve.conf

plugin {
	sieve = ~/.maildir/sieve sieve_dir = ~/.maildir/sieve
	sieve_before = /etc/dovecot/sieve/spam-global.sieve
}
protocol sieve {
	managesieve_max_line_length = 65536
	managesieve_implementation_string = dovecot
	log_path = /var/log/dovecot-sieve-errors.log
	info_log_path = /var/log/dovecot-sieve.log
}

Da die Konfig-Files in vielen Ordnern/Scripten aufgeteilt ist weiß ich nicht so recht welche Configs ich hier noch reinschreiben könnte.

 

/etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_enforce_tls = no
mydomain = hkgame.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, /etc/postfix/virtual/domains
virtual_maps  = hash:/etc/postfix/virtual/addresses
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_received_header = yes
smtp_use_tls = no

Was mache ich wohl falsch? Muss ich noch irgend ein Plugin aktivieren?

 

Danke und Gruß

ZIP

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Wie wärs du nutzt einfach unsere config-templates?

 

Als admin links in Configuration -> Debian Jessie (8.x) »  Mailserver (IMAP/POP3) »  Dovecot with postfix

 

Inklusive aller sieve/managesieve pakete und entsprechende config damit das mit froxlor tut.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...