PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix und smtp auth



phm
17.05.04, 19:00
Ich versuche seit ein paar Tage vergeblich postfix mit SMTP Auth(bin bei freenet) zum Laufen zu bringen und aus den Logs werde ich auh nicht wirklich schlau.
Ich habe dieses(http://www.tuxhausen.de/postfix_smtp_auth-3.html) Tutorial ausprobiert, aber es brachte nichts.

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous

#cat smtp_auth
mx.freenet.de user@freenet.de:meinpasswort

Beim Versuchen die Mail zu verschicken steht folgendes in den Logs und ich habe keine Ahnung, was das bedeuten koennte:
May 17 18:43:22 codret postfix/smtp[6048]: input attribute name: helo_name
May 17 18:43:22 codret postfix/smtp[6048]: input attribute value: (end)
May 17 18:43:22 codret postfix/smtp[6048]: smtp socket: wanted attribute: offset
May 17 18:43:22 codret postfix/smtp[6048]: input attribute name: offset
May 17 18:43:22 codret postfix/smtp[6048]: input attribute value: 145
May 17 18:43:22 codret postfix/smtp[6048]: smtp socket: wanted attribute: original_recipient
May 17 18:43:22 codret postfix/smtp[6048]: input attribute name: original_recipient
May 17 18:43:22 codret postfix/smtp[6048]: input attribute value: XXXXXX@gmx.net
May 17 18:43:22 codret postfix/smtp[6048]: smtp socket: wanted attribute: recipient
May 17 18:43:22 codret postfix/smtp[6048]: input attribute name: recipient
May 17 18:43:22 codret postfix/smtp[6048]: input attribute value: XXXXXXX@gmx.net
May 17 18:43:22 codret postfix/smtp[6048]: smtp socket: wanted attribute: offset
May 17 18:43:22 codret postfix/smtp[6048]: input attribute name: offset
May 17 18:43:22 codret postfix/smtp[6048]: input attribute value: 0
May 17 18:43:22 codret postfix/smtp[6048]: deliver_request_get: file active/5/530A03680B7
May 17 18:43:22 codret postfix/smtp[6048]: deliver_message: from XXXXXX@freenet.de
May 17 18:43:22 codret postfix/smtp[6048]: smtp_parse_destination: gmx.net smtp
May 17 18:43:22 codret postfix/smtp[6048]: fatal: unknown service: smtp/tcp
May 17 18:43:23 codret postfix/qmgr[5990]: warning: premature end-of-input on private/smtp socket while reading input attribute name
May 17 18:43:23 codret postfix/master[5988]: warning: process /usr/libexec/postfix/smtp pid 6048 exit status 1
May 17 18:43:23 codret postfix/qmgr[5990]: warning: private/smtp socket: malformed response
May 17 18:43:23 codret postfix/qmgr[5990]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
May 17 18:43:23 codret postfix/master[5988]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

phm
17.05.04, 19:49
Jetzt bekomme ich bounce-Messages:
<XXXXXXXX@gmx.net>: host mx.freenet.de[194.97.50.138] said: 550 authentication
required (in reply to RCPT TO command)

Aber eigentlich sollte er sich doch einloggen, nach dem was ich oben geschrieben habe...

Harry
17.05.04, 20:18
Diese Zeile hier gibt mir ein wenig zu denken.

May 17 18:43:22 codret postfix/smtp[6048]: fatal: unknown service: smtp/tcp
Hast Du in der transport-Map einen Eintrag angelegt? Falls ja, wie schaut der aus? Oder eventuell in der /etc/services am Eintrag "smtp 25/tcp" etwas geändert? Oder evtl. den relayhost-Parameter in der main.cf falsch definiert?

Nur so ein paar Gedanken.

Harry

phm
17.05.04, 20:24
In der transport-Map ist kein Eintrag vorhanden.

bash-2.05b$ grep -ir smtp /etc/services
smtp 25/tcp mail #Simple Mail Transfer
smtp 25/udp mail #Simple Mail Transfer
smtps 465/tcp #smtp protocol over TLS/SSL (was ssmtp)
smtps 465/udp #smtp protocol over TLS/SSL (was ssmtp)

relayhost = [mx.freenet.de]

Das sollte doch alles ok sein, oder?

Harry
17.05.04, 20:40
Das sollte doch alles ok sein, oder?
Ja das scheint alles ok zu sein. Ich habe jetzt auch keine weiteren Ideen - sorry.

Harry

phm
17.05.04, 20:43
Vielleicht kannst du mir mal sagen, was ich bei 'myhostname' und bei 'mydomain' reinschreiben muss?
Oder mir vielleicht(falls du postfix verwendest) deine main.cf zukommen lassen?

Jinto
17.05.04, 20:52
Vielleicht kannst du mir mal sagen, was ich bei 'myhostname' und bei 'mydomain' reinschreiben muss?
Oder mir vielleicht(falls du postfix verwendest) deine main.cf zukommen lassen?
Wie wäre es, wenn du (wo du doch schon Hilfe benötigst) DEINE main.cf postest pder besser noch:
postconf -n

Weitere Sachen: master.cf und die Distribution wurden auch nicht genannt....

phm
17.05.04, 20:57
Distribution: Slackware9.1

command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = freenet.de
myhostname = mx.freenet.de
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relayhost = [mx.freenet.de]
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous

master.cf:
[snip]
smtp inet n - n - - smtpd
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp -v
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
trace unix - - n - 0 bounce
verify unix - - n - 1 verify

Terran Marine
18.05.04, 09:22
In der transport-Map ist kein Eintrag vorhanden.

bash-2.05b$ grep -ir smtp /etc/services
smtp 25/tcp mail #Simple Mail Transfer
smtp 25/udp mail #Simple Mail Transfer
smtps 465/tcp #smtp protocol over TLS/SSL (was ssmtp)
smtps 465/udp #smtp protocol over TLS/SSL (was ssmtp)


Hast der postfix User Rechte auf die Datei /etc/services zuzugreifen ?

Gruß
Terran

Harry
18.05.04, 12:39
Wie wäre es, wenn du ...
Ich werd' net mehr ... Jinto :D
Hab' Dich schon hier vermisst - schön dass Du auch wieder aktiv bist :)

Harry

phm
18.05.04, 16:32
Naja, es sind dort die standard-Rechte gesetzt und ich denke nicht, dass ich die aendern muss:
-rw-r--r-- 1 root root 72575 Apr 8 2002 /etc/services

Tocotac
19.05.04, 09:43
hast Du auch /etc/postfix# postmap smtp_auth gemacht?

phm
19.05.04, 13:34
Ja, habe ich.

Jinto
20.05.04, 11:37
@phm
Du solltest als erstes mal hingehen und deinen Hostnamen (myhostname) ändern, manche Mailserver mögen es nicht wenn sich der Rechner mit gleichem Namen anmeldet.

Stopp danach Postfix. Starte Postfix wieder und poste hier mal bitte den output des Logfiles (nur den ab start, bis Postfix läuft)

Danach schicke eine Mail weg und poste wieder den kompletten Logfile-Auszug für die Mail.

HTH


@Harry
Hi :)

phm
20.05.04, 20:44
So, jetzt scheint es endlich zu funktionieren. Es lag mal wieder an einer Kleinigkeit...