nr8
14.11.07, 13:20
huhu.
bin dabei meinen alten mail server durch einen neuen zu ersetzten.
als distri kommt ubuntu server 7.10 zum einsatz.
ich verwende postfix und cyrus-imap
beides authe ich über auxprop per mysql
main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = host.domain.at
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.domain.at, localhost
relayhost =
relay_domains = $mydestination
mynetworks = 0.0.0.0
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
virtual_maps = hash:/etc/postfix/virtual
#smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access
virtual_alias_domains = domain1.at domain2.at domain3.at
virtual_alias_maps = hash:/etc/postfix/virtual
content_filter=smtp-amavis:[127.0.0.1]:10024
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mail.domain.at
brocken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restriction =
permit_sasl_authenticated
smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
log_level: 3
sql_engine: mysql
sql_hostname: localhost
sql_database: meinedb
sql_user: meinuser
sql_passwd: meinpw
sql_select: SELECT passwort FROM user WHERE nick = '%u'
sql_usessel: no
für den cyrus-imap verwende ich genau die gleiche DB und die gleichen settings und ich kann mich ohne probleme am cyrus anmelden und auch die mails eines alten backups lesen.
bei postfix wenn ich eine mail senden will geht dies leider nicht.
hier sind zwei logeinträge aus dem log:
Nov 13 17:15:33 hostname postfix/smtpd[9914]: warning: SASL authentication failure: Password verification failed
Nov 13 17:15:33 hostname postfix/smtpd[9914]: warning: IP-ADY: SASL PLAIN authentication failed: authentication failure
hat da jemand eine idee?
danke
bin dabei meinen alten mail server durch einen neuen zu ersetzten.
als distri kommt ubuntu server 7.10 zum einsatz.
ich verwende postfix und cyrus-imap
beides authe ich über auxprop per mysql
main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = host.domain.at
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.domain.at, localhost
relayhost =
relay_domains = $mydestination
mynetworks = 0.0.0.0
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
virtual_maps = hash:/etc/postfix/virtual
#smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access
virtual_alias_domains = domain1.at domain2.at domain3.at
virtual_alias_maps = hash:/etc/postfix/virtual
content_filter=smtp-amavis:[127.0.0.1]:10024
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mail.domain.at
brocken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restriction =
permit_sasl_authenticated
smtpd.conf:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
log_level: 3
sql_engine: mysql
sql_hostname: localhost
sql_database: meinedb
sql_user: meinuser
sql_passwd: meinpw
sql_select: SELECT passwort FROM user WHERE nick = '%u'
sql_usessel: no
für den cyrus-imap verwende ich genau die gleiche DB und die gleichen settings und ich kann mich ohne probleme am cyrus anmelden und auch die mails eines alten backups lesen.
bei postfix wenn ich eine mail senden will geht dies leider nicht.
hier sind zwei logeinträge aus dem log:
Nov 13 17:15:33 hostname postfix/smtpd[9914]: warning: SASL authentication failure: Password verification failed
Nov 13 17:15:33 hostname postfix/smtpd[9914]: warning: IP-ADY: SASL PLAIN authentication failed: authentication failure
hat da jemand eine idee?
danke