Page 1 of 1

Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 00:28
by ricka
Guten Abend,

das Thema wurde schon oft durchgekaut,ich weiß.
Nur keine Thread hat mir wirklich geholfen.

Mein System:
- Debian Sarge
- Confixx 3.1 Pro
- Qpopper (Funktioniert wunderbar)
- Postfix (Macht Probleme)

Ich habe folgendes Problem:
Wenn ich per SMTP Email an Emailadressen meines Servers sende,
funktioniert werden diese ohne Probleme gesendet.
Nur sende ich jetzt eine Mail an eine Emailadresse,
die nicht auf meinem Server sondern auf einem externen liegt,
bekomme ich im Outlook Express folgende Fehlermeldung:

Code: Select all

Die Nachricht konnte nicht gesendet werden, da einer der Empfänger vom Server nicht akzeptiert wurde. Die nicht akzeptierte E-Mail-Adresse ist "info@empfängeradresse.de". Betreff 'Testmail wegen', Konto: 'Konto1', Server: 'meinserver.de', Protokoll: SMTP, Serverantwort: '554 <info@empfängeradresse.de>: Relay access denied', Port: 25, Secure (SSL): Nein, Serverfehler: 554, Fehlernummer: 0x800CCC79
meine mail.log sagt:

Code: Select all

Feb  8 00:20:01 XX-XX-XXX-XX postfix/pickup[3329]: C864BC1D4: uid=108 from=<smmsp>
Feb  8 00:20:01 XX-XX-XXX-XX postfix/cleanup[3608]: C864BC1D4: message-id=<20060207232001.C864BC1D4@XX-XX-XXX-XXinternetserviceteam.com>
Feb  8 00:20:01 XX-XX-XXX-XX postfix/qmgr[3330]: C864BC1D4: from=<smmsp@XX-XX-XXX-XX.internetserviceteam.com>, size=721, nrcpt=1 (queue active)
Feb  8 00:20:01 XX-XX-XXX-XX postfix/local[3609]: C864BC1D4: to=<user@XX-XX-XXX-XX.internetserviceteam.com>, orig_to=<root>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EXTENSION")
Feb  8 00:20:01 XX-XX-XXX-XX postfix/qmgr[3330]: C864BC1D4: removed
postconf -n

Code: Select all

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = XX-XX-XXX-XX.internetserviceteam.com, localhost.internetserviceteam.com, , localhost
myhostname = XX-XX-XXX-XX.internetserviceteam.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
Ich hoffe,Ihr könnt mir helfen.
Ich wäre auch sehr sehr dankbar!

Danke.

Ricka

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 02:00
by adjustman
du hast ja gar kein Auth drin. Deshalb darfst du nicht relayen, deshalb Relay access denied. Irgendeine Auth Methode muss du schon aktivieren.
popb4smtp oder SASL-Auth oder pwcheck oder ..
UND der snip vom mail.log gehört nicht zu so einem Vorgang :wink:

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 16:46
by ricka
habe jetzt alles neu installiert,
und jetzt fragt er nachmeinen Zugangsdaten beim Mailversand.

postconf -n

Code: Select all

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = 84-16-231-53.internetserviceteam.com, localhost.internetserviceteam.com, , localhost
myhostname = 84-16-231-53.internetserviceteam.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
mail.log

Code: Select all

Feb  8 16:42:17 XX-XX-XX-XX postfix/smtpd[5956]: connect from p5482707C.dip.t-dialin.net[84.130.112.124]
Feb  8 16:42:17 XX-XX-XX-XX postfix/smtpd[5956]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Feb  8 16:42:17 XX-XX-XX-XX postfix/smtpd[5956]: warning: p5482707C.dip.t-dialin.net[XX.XXX.XXX.XXX]: SASL LOGIN authentication failed
Feb  8 16:42:18 XX-XX-XX-XX postfix/smtpd[5956]: lost connection after AUTH from p5482707C.dip.t-dialin.net[XX.XXX.XXX.XXX]
Feb  8 16:42:18 XX-XX-XX-XX postfix/smtpd[5956]: disconnect from p5482707C.dip.t-dialin.net[XX.XXX.XXX.XXX]
er sagt, dass "SASL LOGIN authentication failed" hmmm,
also kommt er nicht an die Zugangsdaten.

Aber bei eigehenden Mails macht er doch auch alles richtig!
Selbst der Autoresponder funktioniert.

Hillllfffeee!
[/code]

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:01
by adjustman

Code: Select all

smtpd_sasl_auth_enable = yes
du kannst DAS nicht einfach anschalten :wink:
Da muss auch SASL laufen. Was sagt:

Code: Select all

ps ax | grep saslauthd
wahrscheinlich nix

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:21
by ricka
"smtpd_sasl_auth_enable = no" steht jetzt in der config drin.

ps ax | grep saslauthd sagt:

Code: Select all

 1264 ?        Ss     0:00 /usr/sbin/saslauthd -a pam
 1265 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1266 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1267 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1268 ?        S      0:00 /usr/sbin/saslauthd -a pam
14564 pts/1    S+     0:00 grep saslauthd
meine /etc/postfix/sasl/smtp.conf:

Code: Select all

pwcheck_method: saslauthd 
mech_list: PLAIN LOGIN 
saslauthd_path: /var/run/saslauthd/mux 
autotransition: true
die mail.log sagt jetzt:

Code: Select all

Feb  8 17:25:39 xx-xx-xxx-xx postfix/smtpd[16797]: connect from p54824826.dip.t-dialin.net[xx.xxx.xx.xx]
Feb  8 17:25:39 xx-xx-xxx-xx postfix/smtpd[16797]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Feb  8 17:25:39 xx-xx-xxx-xx postfix/smtpd[16797]: warning: p54824826.dip.t-dialin.net[xx.xxx.xx.xx]: SASL LOGIN authentication failed
Feb  8 17:25:39 xx-xx-xxx-xx postfix/smtpd[16797]: lost connection after AUTH from p54824826.dip.t-dialin.net[84.130.72.38]
Feb  8 17:25:39 xx-xx-xxx-xx postfix/smtpd[16797]: disconnect from p54824826.dip.t-dialin.net[xx.xxx.xx.xx]

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:31
by ricka
so habs jetzt:

meine /etc/postfix/sasl/smtp.conf:

saslauthd_path: /var/run/saslauthd/mux <-- War der Fehler der letzten Meldung!

Ich danke dir für die Hilfe!

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:35
by adjustman
ricka wrote:"smtpd_sasl_auth_enable = no" steht jetzt in der config drin.

ps ax | grep saslauthd sagt:

Code: Select all

 1264 ?        Ss     0:00 /usr/sbin/saslauthd -a pam
 1265 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1266 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1267 ?        S      0:00 /usr/sbin/saslauthd -a pam
 1268 ?        S      0:00 /usr/sbin/saslauthd -a pam
14564 pts/1    S+     0:00 grep saslauthd
DAS auf no zustellen, obwohl sasl läuft, ist ja erst richtiger Unsinn. :)
Läuft Postfix chrooted? DANN kann es u.U. den Socket nicht finden. Zeig mal master.cf OHNE Kommentare

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:43
by ricka
"smtpd_sasl_auth_enable = yes" steht jetzt wieder in der config.

Und es funktioniert perfekt.

Mein master.cf:

Code: Select all

smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes
#submission inet n      -       -       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp

showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}


Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-08 17:51
by adjustman
ricka wrote:Und es funktioniert perfekt.
dann ist`s ja gut. :-D
Du solltest trotzdem über TLS nachdenken. :wink:

Re: Postfix sendet keine Mails an andere Server

Posted: 2006-02-09 00:44
by ricka
danke dir für deine Hilfe.
TLS ist installiert.

ricka

Re: Postfix sendet keine Mails an andere Server

Posted: 2007-10-06 09:02
by oemi1980
adjustMan wrote:du hast ja gar kein Auth drin. Deshalb darfst du nicht relayen, deshalb Relay access denied. Irgendeine Auth Methode muss du schon aktivieren.
popb4smtp oder SASL-Auth oder pwcheck oder ..
UND der snip vom mail.log gehört nicht zu so einem Vorgang :wink:
Kann das einer genauer erörtern, habe genau den selben fehler...

Re: Postfix sendet keine Mails an andere Server

Posted: 2007-10-07 17:58
by adjustman
oemi1980 wrote:Kann das einer genauer erörtern, habe genau den selben fehler...
es MUSS eine Authentifizierung geben. Sonst KEIN relayen möglich.