avalox
10.03.10, 14:46
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 = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ01234567890.-_@
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
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 = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ01234567890.-_@
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