OVH Community, your new community space.

Problem mit Postfix


Xent
10.12.10, 15:24
Hab den Fehler nun gefunden.
Die smtpd.conf war falsch.

Beim kopieren der Befehle sind wohl einige Zeichen falsch interpretiert worden und so war am Anfang und am Ende jeder Zeile ein Punkt.

Das hier stand in der Log:
Code:
Dec 10 16:08:58 Mailserver postfix/smtpd[9423]: warning: SASL per-process initialization failed: generic failure
Dec 10 16:08:58 Mailserver postfix/smtpd[9423]: fatal: SASL per-process initialization failed
Dec 10 16:08:59 Mailserver postfix/master[6031]: warning: process /usr/lib/postfix/smtpd pid 9423 exit status 1
Dec 10 16:08:59 Mailserver postfix/master[6031]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Dec 10 16:09:59 Mailserver postfix/smtpd[9426]: warning: SASL per-process initialization failed: generic failure
Dec 10 16:09:59 Mailserver postfix/smtpd[9426]: fatal: SASL per-process initialization failed
Dec 10 16:10:00 Mailserver postfix/master[6031]: warning: process /usr/lib/postfix/smtpd pid 9426 exit status 1
Dec 10 16:10:00 Mailserver postfix/master[6031]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

whyte
10.12.10, 06:49
Interessanter wird an der Stelle das Logfile sein /var/log/mail.log

Meist sind es irgendwelche Permission denied oder fehlende Dateien, warum Postfix seinen Dienst mittendrin einstellt.

Xent
09.12.10, 21:13
Hallo zusamen,

ich bin gerade dabei einen Postfix server nach dieser Anleitung hier zu konfigurieren:
http://www.howtoforge.de/howto/das-p...ian-etch-40/5/

Leider habe ich das Problem, dass wenn ich alles was dort steht ausgeführt habe, mich zwar zum smtp-Server verbinden kann.
Ich bekomme allerdings nichts geschickt.
Auch auf Befehle wie das ehlo reagiert er nicht.
Selbst über Quit wilrd die Verbindung nicht geschlossen.

Ich konnte es nun schon soweit eingrezen, dass es was mit der Verschlüsselung zutun hat.
Wenn ich die Zeilen:
Code:
smtpd_sasl_local_domain = 
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

# TLS parameters
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
Aus der Config entferne kann ich mich am SMTP-Server anmelden und ich bekomm auch Antworten auf meine Befehle.


Hier mal die ganze Config:
Code:
# 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 (Debian/GNU)
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

readme_directory = no


# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = Mailserver.ovh.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =  Mailserver.ovh.net, localhost.ovh.net, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
smtpd_sasl_local_domain = 
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

# TLS parameters
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom