downtown
15.08.04, 14:58
Guten Nachmittag miteinander ;)
Ich versuche immer noch erfolglos meinen Mailserver aufzusetzen.
Ich möchte mit Postfix den SMTP-Server von GMX (mail.gmx.net) verwenden und alle Mails dort rüber schicken.
Dazu habe ich Postfix 1.1.11-0.woody3 und Postfix-tls Version 1.1.11+tls0.7.15-0.woody1 via apt-get von Debain woody installiert.
Das Problem liegt beim Absenden von Emails. Beispiel:
Der Apache (www-data) sendet ein Mail, welches nie ankommt. Die Log (/var/log/mail.info) sagt folgendes:
Aug 15 14:31:16 roman-linux postfix/smtp[10602]: 96A8618036: to=<....@gmx.ch>, relay=mail.gmx.net[213.165.64.20], delay=0, status=deferred (Authentication failed: cannot SASL authenticate to server mail.gmx.net[213.165.64.20]: no mechanism available)
Ich habe die main.cf wie folgt:
# 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
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = romank.servebeer.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = romank.servebeer.com, roman-linux, localhost.localdomain, localhost, 127.0.0.1
relayhost = mail.gmx.net
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_pass
smtp_sasl_security_options = noanonymous
mail_name = romank.servebeer.com Mailer Daemon
Die master.cf:
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ================================================== ========================
smtp inet n - - - - smtpd -v
#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 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - 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.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -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=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}
# only used by postfix-tls
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
und in der sasl_pass:
mail.gmx.net .....@gmx.ch:Passwort
Das Passwort ist unverschlüsselt drin und korrekt, gehasht habe ich die Datei auch.
Ich habe Postfix mehrmals neu gestartet, leider kein Erfolg.
Wo könnte das Problem liegen? Ich habe mehrere Tutorials angeschaut und momentan sicher eineinhalb Stunden das Problem gesucht...
Anscheinend haben das noch einige mehr gehabt, aber eine konkrete Lösung habe ich keine gefunden.
Danke
downtown
Ich versuche immer noch erfolglos meinen Mailserver aufzusetzen.
Ich möchte mit Postfix den SMTP-Server von GMX (mail.gmx.net) verwenden und alle Mails dort rüber schicken.
Dazu habe ich Postfix 1.1.11-0.woody3 und Postfix-tls Version 1.1.11+tls0.7.15-0.woody1 via apt-get von Debain woody installiert.
Das Problem liegt beim Absenden von Emails. Beispiel:
Der Apache (www-data) sendet ein Mail, welches nie ankommt. Die Log (/var/log/mail.info) sagt folgendes:
Aug 15 14:31:16 roman-linux postfix/smtp[10602]: 96A8618036: to=<....@gmx.ch>, relay=mail.gmx.net[213.165.64.20], delay=0, status=deferred (Authentication failed: cannot SASL authenticate to server mail.gmx.net[213.165.64.20]: no mechanism available)
Ich habe die main.cf wie folgt:
# 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
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = romank.servebeer.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = romank.servebeer.com, roman-linux, localhost.localdomain, localhost, 127.0.0.1
relayhost = mail.gmx.net
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_pass
smtp_sasl_security_options = noanonymous
mail_name = romank.servebeer.com Mailer Daemon
Die master.cf:
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ================================================== ========================
smtp inet n - - - - smtpd -v
#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 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - 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.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -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=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}
# only used by postfix-tls
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
und in der sasl_pass:
mail.gmx.net .....@gmx.ch:Passwort
Das Passwort ist unverschlüsselt drin und korrekt, gehasht habe ich die Datei auch.
Ich habe Postfix mehrmals neu gestartet, leider kein Erfolg.
Wo könnte das Problem liegen? Ich habe mehrere Tutorials angeschaut und momentan sicher eineinhalb Stunden das Problem gesucht...
Anscheinend haben das noch einige mehr gehabt, aber eine konkrete Lösung habe ich keine gefunden.
Danke
downtown