Bekomme widerspänstiges Postfix nicht in den griff

carbon

New Member
Hi,

ich habe schon alle möglichen Webseiten durchgeblättert und alles versucht doch mein postfix server will einfach nicht. Alle möglichen tutorials durchgearbeitet... Ich möchte auf meinen Mailserver gerne Email-Empfang haben sodass jeder mir etwas schicken kann und ich es auf meinem clienten empfangen kann. Außerdem smtp oder pop3 zum verschicken.
Ich habe zwar linux erfahrung aber kann leider kein email server einrichten.
Ich habe gehört das sei sehr kompliziert.
PS: Ich habe ein VServer von Starhosting und die Domain teamws.de.


Wer soetwas schoneinmal gemachtr hat und mir helfen möchte den lade ich mit freude zu einer Teamviewer konferenz oder zu skype ein mir zu helfen.
 
Was geht denn nicht?
Beschreibe doch mal dein Problem, poste Logfiles, ..

Mit freundlichen Grüßen
Flobbie
 
Falls es sich nicht um ein Detailproblem, sondern allgemeine Unsicherheit bei der Herangehensweise handelt, würde ich ganz allgemein ein Web-basiertes Controlpanel empfehlen.
Laut Starhosting-Homepage ist bei etlichen vServern Confixx dabei, falls nicht kann man auch eines der freien Tools (z.B. Webmin) verwenden.
Vorteil liegt darin, daß die Konfiguration gleich auf Sinn und Plausibilität geprüft wird, die typischen Optionen gleich zur Auswählen gestellt werden - und Hilfe und Dokumentation ist meist auch nur einen Mausclick entfernt.
 
ich habe webmin bereits installiert.

Und ich weiß auch nicht wo die logfiles liegen.

Das Problem ist einfach ich versuche von meiner alternativen email addresse eine Mail zu verschicken. Diese kommt aber nicht an. Andersrum habe ich kein smtp zugriff. Alles ist so eingestellt wie es sein sollte...

/etc/postfix/main.cf
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


mydomain_fallback = teamws.de

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

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

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

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = teamws.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = teamws.de
mydestination = teamws.de
mailbox_size_limit = 0
recipient_delimiter = +

sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noplaintext noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
mydomain = teamws.de
smtpd_sasl_auth_enable = yes
allow_untrusted_routing = yes
smtpd_soft_error_limit = 20
smtp_skip_4xx_greeting = yes
fallback_relay = 
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination permit_sasl_authenticated


/etc/postfix/master.cf
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd -v
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache	  unix	-	-	-	-	1	scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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 -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}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

/etc/postfix/sasl_password (~.db)
Code:
teamws.de carbon:*pw*

/etc/postfix/sender_canonical (~.db)
Code:
root root[at]teamws[dot]de
carbon carbon[at]teamws[dot]de
 
Last edited by a moderator:
Hi,
gucke doch erstmal im Logfile, weil da steht warum die Mail nicht gesendet wird ( /var/log/mail.log beispielsweise ).

Code:
mydestination = teamws.de

Mit freundlichen Grüßen
Flobbie
 
/var/log/mail.log
jede halbe stunde so einen eintrag...
May 29 18:00:20 vs4815 postfix/smtpd[5844]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 29 18:00:20 vs4815 postfix/smtpd[5844]: fatal: no SASL authentication mechanisms
May 29 18:00:21 vs4815 postfix/master[5817]: warning: process /usr/lib/postfix/smtpd pid 5844 exit status 1
May 29 18:00:21 vs4815 postfix/master[5817]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
 
Last edited by a moderator:
May 29 18:00:20 vs4815 postfix/smtpd[5844]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 29 18:00:20 vs4815 postfix/smtpd[5844]: fatal: no SASL authentication mechanisms
Da fehlt was...
 
ich installier erstmal cyrus-sasl scheint mir das logischste ^^

tut mir leid ich bin neu hier ^^
 
Laut Tutorial setzt Du virtual_mailbox_base = /var/mail/vmail
Gibt es das Verzeichnis und ist es für mail auch schreibbar (um Unterverzeichnisse für die Mailboxen anzulegen)?
 
Ja es ist angelegt und schreibbar
jetzt kommt beim clienten auf einmal ein anderes Problem: Tempomary Problem, please try again later

ich schau mal in den logs
dort steht das:
Code:
Jun  1 11:48:24 vs4815 authdaemond: failed to connect to mysql server (server=localhost, userid=postfix.): Access denied for user 'postfix.'@'localhost' (using password: YES)
Jun  1 11:48:24 vs4815 courierpop3login: authentication error: Input/output error

konnte sich nicht mit dem mysql server verbinden.
Ich habe nochmals /etc/courier/authmysqlrc auf richtigkeit überprüft war aber alles korrekt
 
Back
Top