PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : postfix + sasl kein plan wie weiter



Allemalachen
22.06.04, 19:45
hi

ich möchte bei meinem postfix mailserver gerne alle ausgehenden mails über den freenet (oder anderen server) nach draußen schicken. habe schon nen ganzen nachmittag verbracht sämtliche howtos und threads durch zugehen aber bin zu keinem ergebnis gekommen. benutze debian gnu testing.
meine main.cf:

# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
setgid_group = postdrop

# appending .domain is the MUA's job.
append_dot_mydomain = no

biff = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

myhostname = dtss.homeunix.net
alias_maps = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = dtss.homeunix.net, localhost, localhost.localdomain, localhost
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
relayhost = mx.freenet.de
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous


meine smtp_auth:

mx.freenet.de tilli86@freenet.de:allema


und nun das was bei den logs bei rum kommt:

Jun 22 18:42:51 localhost postfix/smtpd[6062]: connect from unknown[192.168.1.13]
Jun 22 18:42:51 localhost postfix/smtpd[6062]: 46E4D350C2: client=unknown[192.168.1.13]
Jun 22 18:42:51 localhost postfix/cleanup[6064]: 46E4D350C2: message-id=<001501c45880$5e8e9fc0$0d01a8c0@tsr>
Jun 22 18:42:51 localhost postfix/smtpd[6062]: disconnect from unknown[192.168.1.13]
Jun 22 18:42:51 localhost postfix/qmgr[5666]: 46E4D350C2: from=<mail@dtss.homeunix.net>, size=1332, nrcpt=1 (queue active)
Jun 22 18:42:52 localhost postfix/smtp[6065]: 46E4D350C2: to=<nixahnung@gmx.net>, relay=mx.freenet.de[194.97.50.135], delay=1, status=bounced (host mx.freenet.de[194.97.50.135] said: 550 authentication required (in reply to RCPT TO command))
Jun 22 18:42:52 localhost postfix/cleanup[6064]: A502A350C3: message-id=<20040622164252.A502A350C3@dtss.homeunix.net>
Jun 22 18:42:52 localhost postfix/qmgr[5666]: A502A350C3: from=<>, size=3056, nrcpt=1 (queue active)
Jun 22 18:42:52 localhost postfix/local[6067]: A502A350C3: to=<mail@dtss.homeunix.net>, relay=local, delay=0, status=sent (mailbox)

und keine sekunde nachdem ich die mail verschickt habe kommt schon die mail vom mailer deamon das die mail nicht zugestellt werden konnte mit dem grund:

<nixahnung@gmx.net>: host mx.freenet.de[194.97.50.135] said: 550 authentication
required (in reply to RCPT TO command)

hoffe ihr könnt mir helfen oder links schicken oder weiss der kuckuck was...

schüss

Stormbringer
22.06.04, 20:10
Hi,

ich habe mir nun nicht Deine gesamte Konfig angeschaut, aber mit postfix funzt es wie folgt:
Einträge in main.cf:
relayhost = mx.freenet.de
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd

Inhalt der /etc/postfix/saslpasswd:
mx.freenet.de USER@freenet.de:PASSWORD

Anschließend noch postfix neu starten, und es sollte funzen.

Gruß

blauerpeti
22.06.04, 22:44
schaust Du hier
http://www.debianforum.de/wiki/?page=Postfix+SMTP-AUTH

Allemalachen
23.06.04, 13:24
also die methode von storm habe ich probiert das läuft nicht
da kommt das raus was in den logfiles oben steht.

das andere muss ich zu hause machen vom info unterricht in der schule geht das nicht. ka warum


bis denn

Allemalachen
23.06.04, 17:40
habe die anleitung genau befolgt, aber das problem ist immer noch das gleiche bis auf das ich jetzt mit oulook nch nich ma mehr zum smtp server connecten kann. das ist die entsprechende log:

Jun 23 15:50:44 localhost postfix/master[23476]: reload configuration
Jun 23 15:51:04 localhost postfix/smtpd[23634]: fatal: no SASL authentication mechanisms
Jun 23 15:51:05 localhost postfix/master[23476]: warning: process /usr/lib/postfix/smtpd pid 23634 exit status 1
Jun 23 15:51:05 localhost postfix/master[23476]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun 23 16:15:20 localhost postfix/smtpd[23910]: fatal: no SASL authentication mechanisms
Jun 23 16:15:21 localhost postfix/master[23476]: warning: process /usr/lib/postfix/smtpd pid 23910 exit status 1
Jun 23 16:15:21 localhost postfix/master[23476]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun 23 16:33:16 localhost postfix/smtpd[24600]: fatal: no SASL authentication mechanisms
Jun 23 16:33:17 localhost postfix/master[23476]: warning: process /usr/lib/postfix/smtpd pid 24600 exit status 1
Jun 23 16:33:17 localhost postfix/master[23476]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jun 23 16:36:05 localhost postfix/pickup[23626]: 503C435A5B: uid=0 from=<mail@dtss.homeunix.net>
Jun 23 16:36:05 localhost postfix/cleanup[24810]: 503C435A5B: message-id=<1088001364.24800@localhost>
Jun 23 16:36:05 localhost postfix/qmgr[23627]: 503C435A5B: from=<mail@dtss.homeunix.net>, size=571, nrcpt=1 (queue active)
Jun 23 16:36:08 localhost postfix/smtp[24812]: 503C435A5B: to=<nixahnung@gmx.net>, relay=mx.freenet.de[194.97.50.136], delay=3, status=bounced (host mx.freenet.de[194.97.50.136] said: 550 authentication required (in reply to RCPT TO command))
Jun 23 16:36:09 localhost postfix/cleanup[24810]: 3EFBD35A5C: message-id=<20040623143609.3EFBD35A5C@dtss.homeunix.net>
Jun 23 16:36:09 localhost postfix/qmgr[23627]: 3EFBD35A5C: from=<>, size=2295, nrcpt=1 (queue active)
Jun 23 16:36:09 localhost postfix/local[24815]: 3EFBD35A5C: to=<mail@dtss.homeunix.net>, relay=local, delay=0, status=sent (mailbox)
Jun 23 16:37:31 localhost postfix/smtpd[24877]: fatal: no SASL authentication mechanisms
Jun 23 16:37:32 localhost postfix/master[23476]: warning: process /usr/lib/postfix/smtpd pid 24877 exit status 1
Jun 23 16:37:32 localhost postfix/master[23476]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Terran Marine
23.06.04, 17:50
also die methode von storm habe ich probiert das läuft nicht
da kommt das raus was in den logfiles oben steht.

das andere muss ich zu hause machen vom info unterricht in der schule geht das nicht. ka warum


bis denn

Hast du ein postmap auf Datei smtp_auth bzw. saslpasswd gemacht ?

Gruß
Terran

Allemalachen
23.06.04, 19:57
ja hab ich

hab die ganzen brocken auch mal neu installiert (config dateien auch) aber hat sich nichts an dem problem geändert.

blauerpeti
23.06.04, 20:36
poste mal deine main.cfg

Gordon
23.06.04, 21:22
Hi,
Hast Du SASL1 oder Sasl2?
Was steht denn in Deiner /usr/lib/sasl/smtpd.conf?

Bei mir läuft es mit
pwcheck_method: auxprop
auxprop_plugin: sasldb
(Ich habe sasl 2).

Die pwcheck_method: saslauthd
läuft nur bei sasl1 und nicht bei sasl2....

Gruss Gordon

Terran Marine
23.06.04, 23:56
Hi,
Hast Du SASL1 oder Sasl2?
Was steht denn in Deiner /usr/lib/sasl/smtpd.conf?

Bei mir läuft es mit
pwcheck_method: auxprop
auxprop_plugin: sasldb
(Ich habe sasl 2).

Die pwcheck_method: saslauthd
läuft nur bei sasl1 und nicht bei sasl2....

Gruss Gordon

Ist afaik nur für die Server-Variante (smtpd) notwendig und nicht wenn smtp-auth als Client benutzt wird.

Gruß
Terran

Allemalachen
24.06.04, 19:23
so jetzt zum mitschreiben
meine smtpd.conf

pwcheck_method: pwcheck
pwcheck_method: pwcheck
pwcheck_method: pwcheck

keine ahnung warum das da 3 mal drin steht

und meine main cf

# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
setgid_group = postdrop

# appending .domain is the MUA's job.
append_dot_mydomain = no

biff = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

myhostname = dtss.homeunix.net
alias_maps = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = dtss.homeunix.net, localhost, localhost.localdomain, localhost
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
relayhost = mx.freenet.de
smtpd_sasl_auth_enable = yes
smtpd_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains


ich habe sasl2 drauf (habe das howto befolgt was man mir oben empfohlen hat!
und jetzt kommt ihr

blauerpeti
24.06.04, 21:55
mydestination = dtss.homeunix.net, localhost, localhost.localdomain, localhost
...mal erweitern um:

mydestination = dtss.homeunix.net, localhost, localhost.localdomain, localhost, $myhostname, $mydomain

und das ist bei mir auskommentiert
#broken_sasl_auth_clients = yes
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains

Allemalachen
27.06.04, 14:35
könnte denn einer von euch ma seine main.cf und die smtpd.conf posten damit ich das ma mit meiner vergleichen oder abgleichen kann.

Allemalachen
29.06.04, 17:34
dann ebend nicht

thx für die hilfe oben