hab irgendwie ein kleines problem mit smtp und bekomme es nicht hin.
also follgendes. ich habe postfix eingerichtet und das fuktioniert auch wunderbar bis jetzt. also mails empfangen meine ich. nur versenden kann ich nicht raus aus dem lokalen netz.
meine daten:
main.cf
Code: Select all
# 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/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.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 = <meine domain.tld>
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:7000
virtual_gid_maps = static:7000
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
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
smtp wird mit ssl zertifiziert.
die paswörter stehen in "hash:/etc/postfix/smtp_auth" was aber, wenn ich es richtig verstanden habe nur für saslauthd eine rolle spielt.
ich habe es probiert mit
Code: Select all
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
Code: Select all
pwcheck_method: sasldb
mech_list: PLAIN LOGIN
aber wenn ich mich mit telnet anmelde:
Code: Select all
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 <mydomain.tld> ESMTP Postfix (Ubuntu)
ehlo localhost
250-mydomain.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
auth login
334 VXNlcm5hbWU6
<base64 codet user>
334 UGFzc3dvcmQ6
<base64 codet password>
535 Error: authentication failed
Code: Select all
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 <mydomail.tld> ESMTP Postfix (Ubuntu)
ehlo localhost
250-<mydomain.tld>
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
auth plain
334
<user>:<password>
501 Error: malformed authentication response
Code: Select all
501 Error: malformed authentication response
ich brauche nur einen (im grunde, aber mehrere wären auch nicht schlecht) benutzer der mit smtp senden kann. also nicht unbedingt eine mysql datenbank (mit der ich es auch schon probiert habe).
ich weis eigentlich nicht warum ich mich mit dem user der eigentlich in der in der sasldb2 liegt nicht anmelden kann. die passwörter übergebe ich bei plain ja einfach als text und mit login als base64 codiert... meine ports sind auch freigeschalten... ich kann mails auf dem localen server versenden auch ohne auth, aber sobald ich raus senden will kommen die mails nicht an (ohne auth, mit kann ich ja eh nicht...). ich schätze dass liegt an "smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination" wenn ich aber für alle hosts erlaube kann ja jeder spammer mit meinem smtp senden...
und in der /var/log/mail.warn steht
Code: Select all
ep 28 03:51:40 localhost postfix/smtpd[17742]: warning: localhost.localdomain[127.0.0.1]: SASL plain authenticat
ion failed
kann mir jemand helfen? brauche nur einen user mit dem ich mails senden kann... egal ob saslauthd oder sasldb.
habe:
ubuntu 6.06.1 dapper drake
postfix (Maildir funktion, vhost, vmaps...)
dovecot (pop3, imap, pop3s, imaps, ...)
(kein cyrus, courier oder sonst was)
danke schon mal für die hilfe. wäre echt fein wenn jemand weiter weis...
=D> ich weis nämlich nicht weiter #-o