PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix: versenden von mails geht nicht



jimmy0815
16.12.07, 13:46
Hallo,

ich benutze postfix und möchte mit zB Thunderbird Mails versenden. Dies geht nicht. Er sagt mir dann

5.7.1 <***@gmx.de>: Relay Access denied.

In der Log steht:


Dec 16 12:48:01 server postfix/smtpd[10771]: connect from gtng-4db590dd.pool.einsundeins.de[77.181.144.221]
Dec 16 12:48:01 server postfix/smtpd[10771]: NOQUEUE: reject: RCPT from gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: 554 5.7.1 <***@gmx.de>: Relay access denied; from=<***@skydoom.de> to=<***@gmx.de> proto=ESMTP helo=<[192.168.50.12]>
Dec 16 12:49:04 server postfix/smtpd[10771]: lost connection after RCPT from gtng-4db590dd.pool.einsundeins.de[77.181.144.221]
Dec 16 12:49:04 server postfix/smtpd[10771]: disconnect from gtng-4db590dd.pool.einsundeins.de[77.181.144.221]


Der Empfang von Mails klappt tadellos (fals es hier von belangen ist.)

Hier meine main.cf


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550


debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.4.5/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.4.5/readme
home_mailbox = .maildir/
relayhost = [mail.selfhost.de]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = skydoom.de


Ich hoffe, die Infos reichen?

grüße
dennis

jimmy0815
16.12.07, 15:01
Hallo

ich hab hier nochmal was geändert:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550


debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.4.5/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.4.5/readme
home_mailbox = .maildir/
relayhost = [mail.selfhost.de]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = skydoom.de
smtpd_sasl_local_domain = $myhostname
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


Allerdigs kommt jetzt bei thunderbird eine passwort abfrage, die bei richtigem passwort nach ein paar sekunden wieder kommt.

In der Log steht:

Dec 16 14:02:26 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL NTLM authentication failed: authentication failure
Dec 16 14:02:26 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:02:26 server postfix/smtpd[11704]: warning: SASL authentication failure: Password verification failed
Dec 16 14:02:26 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL PLAIN authentication failed: no mechanism available
Dec 16 14:02:29 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:02:29 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL LOGIN authentication failed: no mechanism available
Dec 16 14:02:38 server postfix/smtpd[11704]: warning: SASL authentication failure: no secret in database
Dec 16 14:02:38 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL CRAM-MD5 authentication failed: authentication failure
Dec 16 14:02:39 server postfix/smtpd[11704]: NTLM server step 1
Dec 16 14:02:39 server postfix/smtpd[11704]: client flags: ffff8207
Dec 16 14:02:40 server postfix/smtpd[11704]: NTLM server step 2
Dec 16 14:02:40 server postfix/smtpd[11704]: client user: dennis
Dec 16 14:02:40 server postfix/smtpd[11704]: warning: SASL authentication failure: no secret in database
Dec 16 14:02:40 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL NTLM authentication failed: authentication failure
Dec 16 14:02:41 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:02:41 server postfix/smtpd[11704]: warning: SASL authentication failure: Password verification failed
Dec 16 14:02:41 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL PLAIN authentication failed: no mechanism available
Dec 16 14:02:44 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:02:44 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL LOGIN authentication failed: no mechanism available
Dec 16 14:02:59 server postfix/smtpd[11704]: warning: SASL authentication failure: no secret in database
Dec 16 14:02:59 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL CRAM-MD5 authentication failed: authentication failure
Dec 16 14:03:00 server postfix/smtpd[11704]: NTLM server step 1
Dec 16 14:03:00 server postfix/smtpd[11704]: client flags: ffff8207
Dec 16 14:03:01 server postfix/smtpd[11704]: NTLM server step 2
Dec 16 14:03:01 server postfix/smtpd[11704]: client user: dennis
Dec 16 14:03:01 server postfix/smtpd[11704]: warning: SASL authentication failure: no secret in database
Dec 16 14:03:01 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL NTLM authentication failed: authentication failure
Dec 16 14:03:02 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:03:02 server postfix/smtpd[11704]: warning: SASL authentication failure: Password verification failed
Dec 16 14:03:02 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL PLAIN authentication failed: no mechanism available
Dec 16 14:03:06 server postfix/smtpd[11704]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:03:06 server postfix/smtpd[11704]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL LOGIN authentication failed: no mechanism available
Dec 16 14:03:08 server postfix/smtpd[11704]: too many errors after AUTH from gtng-4db590dd.pool.einsundeins.de[77.181.144.221]


grüße
dennis

BedriddenTech
16.12.07, 15:11
Versuchst du, von einer dynamischen IP aus zu versenden? (Sprich: Postfix horcht an einer dynamisch vom ISP zugewiesenen Adresse.)

jimmy0815
16.12.07, 15:14
ich sende von einer dynamischen IP über einen Relay host (selfhost).

Lokal funzt es auch.
Aber ich kann nicht per smtp-client senden.

grüße
dennis

Takeshi
16.12.07, 15:33
Geht auch nicht, glaube ich - wegen Spam. Du musst als smtp-Server gmx eintragen. Habs bei mir auch mal versucht. Komischerweise konnte ich mit Windows und Outlook Dateien so versenden, aber mit allen restlichen email-Clients lief es nicht.

jimmy0815
16.12.07, 15:36
das verstehe ich nicht.
Ich will folgendes:

thunderbird von client---> mein server--->relay-server---> ziel
funktionieren tut nur: mein server--->relay--->ziel

ich habs jetzt geschaft soweit zu kommen das in der log steht:

Dec 16 14:37:13 server postfix/smtpd[14535]: warning: SASL authentication problem: unknown password verifier
Dec 16 14:37:13 server postfix/smtpd[14535]: warning: gtng-4db590dd.pool.einsundeins.de[77.181.144.221]: SASL LOGIN authentication failed: no mechanism available


grüße
dennis


edit: fehler gefunden. Musste die /etc/sals2/smtpd.conf folgend ändern:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5