Archiv verlassen und diese Seite im Standarddesign anzeigen : postfix spinnt...
hallo,
aus irgendeinem grund will mein postfix nicht mehr starten.
bkupsrv01:/ # /etc/init.d/postfix start
Starting mail service (Postfix) done
bkupsrv01:/ # /etc/init.d/postfix status
Checking for service Postfix: dead
bkupsrv01:/ # telnet [ip] 25
Trying [ip]...
telnet: connect to address [ip]: Connection refu
bkupsrv01:/ # telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Network is unreachable
hat da jemand vielleicht eine Idee? Was ist das mit ::1 ?? ich hab das mal in der main.cf gesehen...
Starte mal das Postfix-Executable direkt und nicht das Runlevelscript. Und beobachte mal /var/log/mail.log .
ich würde mal in den logs nach schauen so wie
/var/log/syslog
/var/log/mail.err
Da könntest mal die Abbruchsmeldungen hier rein kopieren
bkupsrv01:/ # /usr/sbin/postfix start
postfix/postfix-script: starting the Postfix mail system
bkupsrv01:/ # tail /var/log/mail
Sep 2 10:03:49 bkupsrv01 postfix[15582]: warning: My hostname bkupsrv01 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Sep 2 08:03:49 bkupsrv01 postfix/postqueue[15583]: warning: My hostname bkupsrv01 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Sep 2 08:03:49 bkupsrv01 postfix/postqueue[15583]: fatal: Cannot flush mail queue - mail system is down
Sep 2 10:08:10 bkupsrv01 postfix/postfix-script: starting the Postfix mail system
Sep 2 10:08:10 bkupsrv01 postfix/master[18989]: fatal: bind ::1 port 10025: Cannot assign requested address
Sep 2 08:09:12 bkupsrv01 postfix/postqueue[19175]: fatal: Cannot flush mail queue - mail system is down
Sep 2 10:40:33 bkupsrv01 postfix/postfix-script: starting the Postfix mail system
Sep 2 10:40:33 bkupsrv01 postfix/master[9555]: fatal: bind ::1 port 10025: Cannot assign requested address
Sep 2 10:41:28 bkupsrv01 postfix/postfix-script: starting the Postfix mail system
Sep 2 10:41:28 bkupsrv01 postfix/master[10988]: fatal: bind ::1 port 10025: Cannot assign requested address
bkupsrv01:/ # tail /var/log/mail.err
Sep 1 14:02:44 bkupsrv01 postfix/postqueue[32368]: fatal: Cannot flush mail queue - mail system is down
Sep 1 16:51:02 bkupsrv01 postfix/postfix-script: fatal: the Postfix mail system is not running
Sep 1 16:52:00 bkupsrv01 postfix/postfix-script: fatal: the Postfix mail system is not running
Sep 2 10:02:45 bkupsrv01 postfix/master[13956]: fatal: bind ::1 port 10025: Cannot assign requested address
Sep 2 10:02:51 bkupsrv01 postfix/postfix-script: fatal: the Postfix mail system is not running
Sep 2 08:03:49 bkupsrv01 postfix/postqueue[15583]: fatal: Cannot flush mail queue - mail system is down
Sep 2 10:08:10 bkupsrv01 postfix/master[18989]: fatal: bind ::1 port 10025: Cannot assign requested address
Sep 2 08:09:12 bkupsrv01 postfix/postqueue[19175]: fatal: Cannot flush mail queue - mail system is down
Sep 2 10:40:33 bkupsrv01 postfix/master[9555]: fatal: bind ::1 port 10025: Cannot assign requested address
Sep 2 10:41:28 bkupsrv01 postfix/master[10988]: fatal: bind ::1 port 10025: Cannot assign requested address
ich muss zu meiner schande gestehen, dass ich mich noch nicht all zu sehr mit dem syslog beschäftigt habe. ich schaue immer in den logs direkt nach...
Die erste Zeile in mail.log sagt dir doch schon den Fehler. Der FQDN ist nicht korrekt. Fehlt wohl noch so was wie das Anhängsel .de oder .com an bkupsrv01 (Bsp: bkupsrv01.de).
das ist eine ältere fehlermeldung, habe ich schon korrigiert.
Warum will sich der Postfix-Master an Port 10025 binden. Dies sollte ja wohl Port 25 sein.
du, das weiss ich auch nicht... wo stellt man das ein?
hier mal meine gekürzte main.cf. es kann einträge doppelt geben, gültig sollte immer nur eine sein (yast).
#soft_bounce = no
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
#default_privs = nobody
myhostname = bkupsrv01.****.****.de
#myhostname = virtual.domain.tld
#mydomain = domain.tld
#myorigin = $myhostname
#myorigin = $mydomain
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =
unknown_local_recipient_reject_code = 550
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#relay_domains = $mydestination
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
#in_flow_delay = 1s
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
#home_mailbox = Maildir/
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mydestination = *****.de
relayhost = 10.43.48.5
myorigin = *****.de
das system lief mal ne ganze weile, ich weiss nicht, warum jetzt was im argen liegt... es ist auch nur die nötigste mail-software installiert (postfix, qpopper, fetchmail, procmail), ich glaube nicht, dass sich was beisst.
Die Port-Zuordnungen stehen eingentlich in /etc/services . Die Postfix-Konfig. master.cf holt sich da eingentlich die Portzuordnung raus.
bkupsrv01:/etc/postfix # cat /etc/services | grep smtp
smtp 25/tcp mail # Simple Mail Transfer
smtp 25/udp mail # Simple Mail Transfer
smtps 465/tcp # eMail Server
# Boris B. Maiden <Boris_Maiden@smtp.microcom.com>
rsmtp 2390/tcp # RSMTP
rsmtp 2390/udp # RSMTP
bkupsrv01:/etc/postfix # cat /etc/services | grep 10025
bkupsrv01:/etc/postfix #
nix mit 10025... irgendwas ist da grundsätzlich falsch. postfix gibt ja auch keine vernünftige fehlermeldung...
ich weiss nicht mehr so recht aber hatte ::1 nicht etwas mit IPv6 zutun?
ich weiss nicht mehr so recht aber hatte ::1 nicht etwas mit IPv6 zutun?
Das habe ich mir auch schon gedacht. Komisch?!
Btw: Läuft eventuell eine Firewall wie Portsentry o.ä.?
nix mit firewall. ist auch nur in der lan umbebung, alles andere ist einwandfrei.
bkupsrv01:/ # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Steht was in /var/log/warn drin?
Steht in der master.cf was von dem Port 10025 drin?
sorry, ich bin nicht mehr in der firma. wegen wartung komm ich auch nicht auf´s vpn. wir machen montag weiter, jungs. ich werd übers wochenende mal versuchen, das im kleinen zu hause nachzubauen.
ich glaub nicht wirklich, dass das an postfix liegt. sonst hätte er bescheid gesagt...
/var/log/warn:
Sep 5 14:02:08 bkupsrv01 postfix/master[6617]: fatal: bind ::1 port 10025: Cannot assign requested address
hey!!!
kann 10025 an amavis liegen?
ich hab amavis einfach mal deinstalliert, und siehe da...
ich hatte amavis ohne hintergedanken dazugenommen (kann ja nicht schaden...). wie man sich irren kann...
hey!!!
kann 10025 an amavis liegen?
Jepp! Benutzt du Amavis?
in master.cf:
...... 127.0.0.1:10025 inet n - y - - smtpd .......
Der erste Teil fügt einen zusätzlichen SMTP-Listener auf Port 10025 hinzu. Dieser Daemon wird von Amavis dazu genutzt die gescannten Email wieder an den MTA zurückzugeben.
na, jetzt benutz ich´s nicht mehr. ich werd´s mir wohl nochmal angucken, wenn ich auch die zeit für die doku habe.
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.