Tockra
Lt. Commander
- Registriert
- Dez. 2008
- Beiträge
- 1.063
Hallo Leute,
Ich interessiere mich momentan für Postfix und ich habe einige Schwierigkeiten bei der Installation und Konfiguration.
Ich habe bis jetzt 3 Tutorials befolgt, aber ich habe es noch immer nicht hin bekommen, dass ich mich über pop3, oder imap einloggen kann, oder dass der Server Emails, die an Tockra@meindomain.de geschickt werden, an meine Emailadresse weitergesendet werden.
Für den Zweck der Weiterleitung habe ich folgendes in der virtual_alias stehen:
Die Config von Postfix sieht so aus:
Die saslauthd:
dovecot.conf :
Ich logge mich über windows live mail mit pop3 mit :
Server: meinDomain.de
Benutzer:tockra
Passwort: LinuxBenutzerKennwort
ein und bekomme folgenden Fehler:
Über imap logge ich mich mit :
Server: meinDomain.de
Benutzer:tockra
Passwort: LinuxBenutzerKennwort
ein und es kommt folgender Fehler:
PS: meinDomain steht natürlich nirgends in echt, sondern mein richtiger Domain
Ich interessiere mich momentan für Postfix und ich habe einige Schwierigkeiten bei der Installation und Konfiguration.
Ich habe bis jetzt 3 Tutorials befolgt, aber ich habe es noch immer nicht hin bekommen, dass ich mich über pop3, oder imap einloggen kann, oder dass der Server Emails, die an Tockra@meindomain.de geschickt werden, an meine Emailadresse weitergesendet werden.
Für den Zweck der Weiterleitung habe ich folgendes in der virtual_alias stehen:
Code:
tockra@meindomain.de tockra,meineAdresse@hotmail.de
Die Config von Postfix sieht so aus:
# SMTP-Banner
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
# deaktiviere die Benachrichtigung lokaler Nutzer, da es vermutlich keine gibt
biff = no
# deaktiviere Autovervollst�ndigung um Verwirrung zu vermeiden
append_dot_mydomain = no
delay_warning_time = 4h
# Ihr Hostname
myhostname = meinDomain.de
# Mailaliase
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
# Defaultdomain
myorigin = /etc/mailname
# Alle nicht virtuellen Domains, f�r die ihr Server zust�ndig sein soll
mydestination = meinDomain.de, localhost.localdomain, localhost
# Nur Rechner aus diesen Netzen d�rfen Mails ohne Authentifizierung versenden
mynetworks = 127.0.0.0/8
# Unsere Mailboxen haben kein Gr��enlimit
mailbox_size_limit = 0
# Setzt das Trennzeichen zwischen dem Benutzernamen und der Addresserweiterung
recipient_delimiter = +
# Postfix soll auf �ber alle Netzwerkkarten erreichbar sein
inet_interfaces = all
# Definiere die Maps der Virtuellen Domains
virtual_alias_maps = hash:/etc/postfix/virtual_alias
virtual_alias_domains = /etc/postfix/virtual_domains
# Verwende SASL (SMTP-AUTH)
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
# Erlaube Outlook den Zugriff
broken_sasl_auth_clients = yes
# Nehme keine Mails an, wenn der sendende Rechner nicht entweder innerhalb von
# my_networks ist, oder sich per SASL authentifiziert hat. Zus�tzlich wird keine Mail
# angenommen, von Domains, die weder einen A, noch einen MX-Record haben und f�r die der
# Server nicht zust�ndig ist, davon ausgenommen sind alle Rechner in my_networks und alle
# SASL authentifzierten.
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
# Verlange vom Kommunikationspartner einen validen FQDN als Hostnamen, wird dieser nicht
# gegeben, wird die Mail nicht akzeptiert. Dies vermindert die Spamflut erheblich, da viele
# Spamgateways schlampig Programmiert sind.
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname
# Der Server soll keine Mails versenden, deren Domain er nicht kennt
smtpd_sender_restrictions = reject_unknown_sender_domain
# HELO wird zur pflicht
smtpd_helo_required = yes
# Verlange strikte RFC-Einhaltung
strict_rfc821_envelopes = yes
# Verwende das Maildir-Format
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
# deaktiviere die Benachrichtigung lokaler Nutzer, da es vermutlich keine gibt
biff = no
# deaktiviere Autovervollst�ndigung um Verwirrung zu vermeiden
append_dot_mydomain = no
delay_warning_time = 4h
# Ihr Hostname
myhostname = meinDomain.de
# Mailaliase
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
# Defaultdomain
myorigin = /etc/mailname
# Alle nicht virtuellen Domains, f�r die ihr Server zust�ndig sein soll
mydestination = meinDomain.de, localhost.localdomain, localhost
# Nur Rechner aus diesen Netzen d�rfen Mails ohne Authentifizierung versenden
mynetworks = 127.0.0.0/8
# Unsere Mailboxen haben kein Gr��enlimit
mailbox_size_limit = 0
# Setzt das Trennzeichen zwischen dem Benutzernamen und der Addresserweiterung
recipient_delimiter = +
# Postfix soll auf �ber alle Netzwerkkarten erreichbar sein
inet_interfaces = all
# Definiere die Maps der Virtuellen Domains
virtual_alias_maps = hash:/etc/postfix/virtual_alias
virtual_alias_domains = /etc/postfix/virtual_domains
# Verwende SASL (SMTP-AUTH)
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
# Erlaube Outlook den Zugriff
broken_sasl_auth_clients = yes
# Nehme keine Mails an, wenn der sendende Rechner nicht entweder innerhalb von
# my_networks ist, oder sich per SASL authentifiziert hat. Zus�tzlich wird keine Mail
# angenommen, von Domains, die weder einen A, noch einen MX-Record haben und f�r die der
# Server nicht zust�ndig ist, davon ausgenommen sind alle Rechner in my_networks und alle
# SASL authentifzierten.
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
# Verlange vom Kommunikationspartner einen validen FQDN als Hostnamen, wird dieser nicht
# gegeben, wird die Mail nicht akzeptiert. Dies vermindert die Spamflut erheblich, da viele
# Spamgateways schlampig Programmiert sind.
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname
# Der Server soll keine Mails versenden, deren Domain er nicht kennt
smtpd_sender_restrictions = reject_unknown_sender_domain
# HELO wird zur pflicht
smtpd_helo_required = yes
# Verlange strikte RFC-Einhaltung
strict_rfc821_envelopes = yes
# Verwende das Maildir-Format
home_mailbox = Maildir/
Die saslauthd:
# Settings for saslauthd daemon
# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#
# Should saslauthd run automatically on startup? (default: no)
START=yes
# Description of this saslauthd instance. Recommended.
# (suggestion: SASL Authentication Daemon)
DESC="SASL Authentication Daemon"
# Short name of this saslauthd instance. Strongly recommended.
# (suggestion: saslauthd)
NAME="saslauthd"
# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="pam"
# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""
# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5
# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# WARNING: DO NOT SPECIFY THE -d OPTION.
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# to run saslauthd in debug mode, please run it by hand to be safe.
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page and the output of 'saslauthd -h' for general
# information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#
# Should saslauthd run automatically on startup? (default: no)
START=yes
# Description of this saslauthd instance. Recommended.
# (suggestion: SASL Authentication Daemon)
DESC="SASL Authentication Daemon"
# Short name of this saslauthd instance. Strongly recommended.
# (suggestion: saslauthd)
NAME="saslauthd"
# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# getpwent -- use the getpwent() library function
# kerberos5 -- use Kerberos 5
# pam -- use PAM
# rimap -- use a remote IMAP server
# shadow -- use the local shadow password file
# sasldb -- use the local sasldb database file
# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
#
# Only one option may be used at a time. See the saslauthd man page
# for more information.
#
# Example: MECHANISMS="pam"
MECHANISMS="pam"
# Additional options for this mechanism. (default: none)
# See the saslauthd man page for information about mech-specific options.
MECH_OPTIONS=""
# How many saslauthd processes should we run? (default: 5)
# A value of 0 will fork a new process for each connection.
THREADS=5
# Other options (default: -c -m /var/run/saslauthd)
# Note: You MUST specify the -m option or saslauthd won't run!
#
# WARNING: DO NOT SPECIFY THE -d OPTION.
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# The -d option will cause saslauthd to run in the foreground instead of as
# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
# to run saslauthd in debug mode, please run it by hand to be safe.
#
# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
# See the saslauthd man page and the output of 'saslauthd -h' for general
# information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
dovecot.conf :
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
auth default2 {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = root
}
dict {
}
plugin {
}
# Config files can also be included. deliver doesn't support them currently.
#!include /etc/dovecot/conf.d/*.conf
# Optional configurations, don't give an error if it's not found:
#!include_try /etc/dovecot/extra.conf
protocols = imap pop3
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
disable_plaintext_auth = yes
mail_location = maildir:%h/mails
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
auth default2 {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = root
}
dict {
}
plugin {
}
# Config files can also be included. deliver doesn't support them currently.
#!include /etc/dovecot/conf.d/*.conf
# Optional configurations, don't give an error if it's not found:
#!include_try /etc/dovecot/extra.conf
protocols = imap pop3
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
disable_plaintext_auth = yes
mail_location = maildir:%h/mails
Ich logge mich über windows live mail mit pop3 mit :
Server: meinDomain.de
Benutzer:tockra
Passwort: LinuxBenutzerKennwort
ein und bekomme folgenden Fehler:
Code:
Es konnten keine Nachrichten für das Konto meinDomain (tockra) gesendet oder empfangen werden. Bei der Verbindung zum Server ist ein Fehler aufgetreten.
Server: 'meindomain.de'
Windows Live Mail-Fehlernummer: 0x800CCC0E
Protokoll: POP3
Port: 995
Secure (SSL): Ja
Socketfehler: 10061
Über imap logge ich mich mit :
Server: meinDomain.de
Benutzer:tockra
Passwort: LinuxBenutzerKennwort
ein und es kommt folgender Fehler:
Code:
Der IMAP-Befehl konnte aufgrund eines Fehlers, der nicht mit dem Netzwerk zusammenhängt, nicht an den Server gesendet werden. Möglicherweise ist zu wenig Arbeitsspeicher verfügbar.
Konfiguration:
Konto: meinDomain(tockra)
Server: meinDomain.de
Benutzername: tockra
Protokoll: IMAP
Port: 993
Secure (SSL): 1
Code: 800ccc0e
PS: meinDomain steht natürlich nirgends in echt, sondern mein richtiger Domain
