Hallo,
ich hab nun auf einen neuen Server gewechselt und wollte nicht mehr das alte etch, sondern das lenny haben. Hab also mein server neu installiert (angelehnt an dieses Howto) und nun hab ich wieder das leidige Mailproblem:
Oct 9 22:28:35 meinedomain.de postfix/master[13893]: terminating on signal 15
Oct 9 22:28:35 meinedomain.de postfix/master[15755]: daemon started -- version 2.5.5, configuration /etc/postfix
Oct 9 22:28:39 meinedomain.de postfix/smtpd[16032]: connect from dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]
Oct 9 22:28:39 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: no secret in database
Oct 9 22:28:39 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL CRAM-MD5 authentication failed: authentication failure
Oct 9 22:28:39 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: Password verification failed
Oct 9 22:28:39 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL PLAIN authentication failed: authentication failure
Oct 9 22:28:40 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL LOGIN authentication failed: authentication failure
Oct 9 22:28:46 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: no secret in database
Oct 9 22:28:46 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL CRAM-MD5 authentication failed: authentication failure
Oct 9 22:28:46 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: Password verification failed
Oct 9 22:28:46 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL PLAIN authentication failed: authentication failure
Oct 9 22:28:46 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL LOGIN authentication failed: authentication failure
Oct 9 22:28:53 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: no secret in database
Oct 9 22:28:53 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL CRAM-MD5 authentication failed: authentication failure
Oct 9 22:28:53 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: Password verification failed
Oct 9 22:28:53 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL PLAIN authentication failed: authentication failure
Oct 9 22:28:53 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL LOGIN authentication failed: authentication failure
Oct 9 22:28:59 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: no secret in database
Oct 9 22:28:59 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL CRAM-MD5 authentication failed: authentication failure
Oct 9 22:28:59 meinedomain.de postfix/smtpd[16032]: warning: SASL authentication failure: Password verification failed
Oct 9 22:28:59 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL PLAIN authentication failed: authentication failure
Oct 9 22:29:02 meinedomain.de postfix/smtpd[16032]: warning: dslb-094-219-071-039.pools.arcor-ip.net[94.219.71.39]: SASL LOGIN authentication failed: authentication failure
Alles anzeigen
Das sagt mein mail.log, wenn ich postfix neustarte und versuche ne Mail zu verschicken.
Irgendwie hab ich das mit der Authentifizierung nicht so raus.
Hier mal meine Konfigs:
main.cf
##########################################
# Postfix programs paths settings
##########################################
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
sendmail_path = /usr/sbin/sendmail
##########################################
# General Postfix configuration
##########################################
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
# should be the default domain from your provider eg. "server100.provider.tld"
#mydomain = ebs-erler.de
mydomain = vxxxxxxxxxxxxxxxyourvserver.net
# should be different from $mydomain eg. "mail.$mydomain"
myhostname = MEINEDOMAIN
mydestination = $myhostname,
$mydomain,
localhost.$myhostname,
localhost.$mydomain,
localhost
# Original, kann ich aber nicht nehmen, da ich kein Loopback Device habe
#mynetworks = 127.0.0.0/8
mynetworks = localhost/8
alias_maps = $alias_database
inet_interfaces = all
##########################################
# Einstellung für virtuelle User
##########################################
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
# Mails ueber 50 MB werden nicht akzeptiert
message_size_limit = 10485760
# Default Mailbox size, is set to 0 which means unlimited!
mailbox_size_limit = 52428800
# Stand original drinnn.
# Vermtl. durch obige Einstellung nicht notwendig
# Maximum size of Message in bytes (50MB)
virtual_mailbox_limit = 52428800
##########################################
# TLS / SASL Auth settings
##########################################
# aktiviert TLS
smtp_use_tls = yes
# Erzwingt eine SMTP-Auth vom User
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/server/ebs-erler.de.cert
smtpd_tls_key_file = /etc/ssl/server/ebs-erler.de.key
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
# Damit es auch mit Outlook klappt
broken_sasl_auth_clients = yes
## TLS for outgoing mails from the server to another server
#smtp_tls_note_starttls_offer = yes
## TLS for email client
#smtpd_tls_CAfile = /etc/ssl/cacert.class3.crt # Just an example for CACert.org
#smtpd_tls_auth_only = no
#smtpd_tls_loglevel = 1
#smtpd_tls_received_header = yes
#smtpd_tls_session_cache_timeout = 3600s
#tls_random_source = dev:/dev/urandom
##########################################
# Dovecot Settings for deliver, SASL Auth
# and virtual transport
##########################################
# Um Dovecot zu nutzen, muessen folgende 3 Zeilen auskommentiert werden
#mailbox_command = /usr/lib/dovecot/deliver
#virtual_transport = dovecot
#dovecot_destination_recipient_limit = 1
# Local delivery settings
local_transport = local
alias_database = hash:/etc/aliases
##########################################
# Postfix performance settings
##########################################
default_destination_concurrency_limit = 20
local_destination_concurrency_limit = 2
##########################################
# Relay & Spamtests
##########################################
#smtpd_helo_required = yes
# Einschraenkungen fuer das Annehmen von Mails,
# nicht jeder darf Mails einliefern
smtpd_recipient_restrictions =
# - Erlaubt unseren IPs, uns als Relay zu nutzen
permit_mynetworks
# - Sofern unsere User aus einem fremden DUL-Bereich kommen, koennen sie
# dank SMTP-Auth einliefern
permit_sasl_authenticated
# - Liefert REJECT, wenn Empfaenger nicht ueber uns laeuft
reject_unauth_destination
# - Greylisting, muss nach min. 900s, max. 5h nochmal eingeliefert werden
# danach merkt sich das die DB aber fuer 36 Tage.
check_policy_service inet:localhost:60000
# - weitere Einschraenkungen
reject_unauth_pipelining,
reject_non_fqdn_recipient
smtpd_sender_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unknown_hostname
reject_unknown_recipient_domain
reject_unknown_sender_domain
smtpd_client_restrictions = permit_mynetworks
permit_sasl_authenticated
reject_unknown_client
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
Alles anzeigen
mysql-virtual_alias_maps.cf
user = syscp
password = MEINPASSWORT
dbname = syscp
table = mail_virtual
select_field = destination
where_field = email
additional_conditions = and destination <> '' and destination <> ' '
hosts = localhost
mysql-virtual_mailbox_domains.cf
user = syscp
password = MEINPASSWORT
dbname = syscp
table = panel_domains
select_field = domain
where_field = domain
additional_conditions = and isemaildomain = '1'
hosts = localhost
mysql-virtual_mailbox_maps.cf
user = syscp
password = MEINPASSWORT
dbname = syscp
table = mail_users
select_field = maildir
where_field = email
hosts = localhost
sasl/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
allowanonymouslogin: no
allowplaintext: yes
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: localhost
sql_user: syscp
sql_passwd: MEINPASSWORT
sql_database: syscp
sql_select: SELECT password FROM mail_users WHERE username='%u@%r' OR email='%u@%r'
Alles anzeigen
Wo kann ich noch suchen?
Ich bin jetzt erstmal zu müde um heir weiter zu machen und vielleicht weiß ja jemand rat.
mfg Benny