POSTFIX Problem help bitte

ayuhna

New Member
Hallo,

ich habe auf meinem Debian Etch server Postfix installiert und konfiguriert...

Ich habe eigendlich alles richtig gemacht habe 50 mal alles nachkontrolliert.

Wenn ich mich mit telnet drauf verbinden will also:

telnet localhost 25..

kommt folgendes:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
status0

Aber was soll dieses status0 heissen ?! das ist mir zum ersten mal passiert...

Ich hoffe für hilfe denn selber weis ich nicht mehr weiter.

Danke
MfG
Ayuhna
 
bitte sehr:

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


# 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.

mydomain = moonfox.eu
myhostname = moonfox.eu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain localhost $mydomain
relayhost = 88.198.25.6
mynetworks = 127.0.0.0/8
mailbox_size_limit = 1000
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
 
Sowas bitte immer mit Code-Tags schreiben, wegen der übersichtlichkeit :)

Was sagen die Logfiles von Postfix, wenn Du diesen neustartest?
 
Im Zweifelsfall sollte eine aussagekräftige Meldung in den Logfiles stehen -- Postfix ist in dieser Hinsicht ziemlich gut: /var/log/mail.*
 
Sry weger dem Code erstmal :)

Also in dem log steht nur:

Jun 8 06:49:03 moonfox postfix/qmgr[18829]: warning: connect to transport smtp: Connection refused

und das zeile für zeile... mehr gibts da nich :(
 
Also hier is master.cf habe echt keinen plan zum 2. mal postfix gemacht


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
#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       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       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      inet  n       -       n       -       -       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}
dovecot   unix	-	n	n	-	-	pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
 
Mal die Zeile:

smtp inet n - n - - smtp
(nicht die Zeile am Anfang, sondern die in der Mitte der Konfig ist damit gemeint)

in

smtp unix - - - - - smtp

ändern.
 
Last edited by a moderator:
also hier is noch ein log.. würde mich für hilfe sehr freuen bin wirklich ratlos :(

Code:
Jun 10 23:21:01 moonfox postfix/trivial-rewrite[10562]: warning: do not list domain moonfox.eu in BOTH mydestination and virtual_mailbox_domains
Jun 10 23:21:55 moonfox postfix/pickup[10726]: 98E8C28244: uid=33 from=<[email protected]>
Jun 10 23:21:55 moonfox postfix/cleanup[10003]: 98E8C28244: message-id=<[email protected]>
Jun 10 23:21:55 moonfox postfix/qmgr[9835]: 98E8C28244:
 
Hallo,

relayhost = 88.198.25.6

willst du das wirklich? Die Einstellung bewirkt das dein lokaler Postfix versucht alle Emails über diesen Server (ohne AUTH) zu versenden.

Ich habe in deiner main.cf keinen Hinweiß gefunden das du dich bei dem Relayhost anmeldest daher meine Frage: Darfst du Emails überhaupt über diese IP "relayen"?
 
Nein du hast recht .. ich habe relay nun entfernt

Aber kann leider immernoch nichts versenden

Status0 bei telnet :(
 
also hier is noch ein log.. würde mich für hilfe sehr freuen bin wirklich ratlos :(

Code:
Jun 10 23:21:01 moonfox postfix/trivial-rewrite[10562]: warning: do not list domain moonfox.eu in BOTH mydestination and virtual_mailbox_domains

Nimm moonfox bitte aus der main.cf unter mydestination raus, das hast Du auch in den virtual_mailbox... definiert, postfix weiss warsch. nicht so recht wohin mit den Mails.

Danach Postfix neustarten. Bringts was?
 
Meinsdu damit ich soll das localhost entfernen ?

mydestination = $myhostname localhost.$mydomain localhost $mydomain

in

mydestination =

oder

mydestination = $myhostname $mydomain $mydomain

Danke nochmals
MfG
 
$myhostname unter mydestination einfach rausnehmen, die Mails werden trotzdem angenommen, da Du diese ja in dern virtual_domains schon drin hast.
 
habe es gemacht leider steht immernoch status0:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
status0

:(
 
Da bin ich auch grad noch ein wenig am googeln/rätseln, aber zumindest der zweite Fehler sollte weg sein.
 
Hi,

also bei mir kommt nur noch der fehler hier :

Jun 11 00:15:24 moonfox postfix/smtpd[12609]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Mysql sachen sind schon eignerichtet.. Allerdings weis ich nich ganz wie das bcc mapping gehen soll nun denn bei mir kommt der fehler das die datei net gefunden wurde.. vieleicht mach ich irgendetwas falsch
 
Ah juhuuu habs geschafft

hab einfach

smtp inet n - - - - smtpd

geändert in

smtp inet n - n - - smtpd

thx für die hilfe :D
 
Back
Top