PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix Netzwerkstruktur Fragen



mullfreak
08.03.05, 19:42
Hallo,

ich will zur Zeit einen Postfix Mailserver konfigurieren.

Nun habe ich bisher folgende Schritte vollzogen:
1. Beim Provider gibt es jetzt zwei MX-Einträge. Einen mit Priorität 10 auf meine öffentliche statische IP und einen mit Priorität 20 auf den Server des Providers. Die dortigen Einträge lauten beide auf mail.domain.info.
2. An meinem Postfix habe ich den "hostname" auf diesen oben genannten Eintrag ausgerichtet, also "mail.domain.info".
3. Am Router habe ich eine IP-Weiterleitung an den Postfix-Server mit Port 25.
4. Lokal antwortet Postfix über Telnet einwandfrei.

Nun versuche ich mittels Telnet übers Internet (telnet mail.domain.info 25) Postfix zu erreichen. Dies funktioniert aber nicht. Ich kriege keine Verbindung. Versuche ich nun telnet domain.info antwortet der Sendmail des Providers.

Kann das sein?

Wie kriege ich Verbindung zu meinem Postfix-Server?

Bin für jede Antwort dankbar.

Grüsse
Mullfreak

Terran Marine
08.03.05, 19:43
Nabend,

main.cf und master.cf posten.

Blinde Vermutung :

inet_interfaces nicht auf all ;)

Gruß
Terran

mullfreak
08.03.05, 23:31
Hi,
werde ich sofort morgen (Mittwoch) hier hinterlegen. Kein Problem.
so long ...

Mullfreak

mullfreak
09.03.05, 19:29
Hallo,

ich führe folgenden Befehl aus:

telnet localhost 25

Dann bekomme ich eine Antwort vom Postfix-Server.

Führe ich folgenden Befehl aus:

telnet 10.0.0.1 25

Dann wird die Verbindung verweigert und ich bekomme eine Fehlermeldung. Dann habe ich unter "mynetworks" das interne Netzwerk mit folgende Eintrag notiert:
mynetworks = 10.0.0.0/8

Jetzt müsste es doch funktionieren, tut es aber nicht.

Grüsse
Mullfreak

Terran Marine
09.03.05, 23:46
Hi,
werde ich sofort morgen (Mittwoch) hier hinterlegen. Kein Problem.
so long ...


Ich warte noch auf die Config-Files ...

Und ich bleib dabei, inet_interfaces ist wahrscheinlich nicht auf all gesetzt.

Gruß
Terran

mullfreak
10.03.05, 16:59
Hi,
hier das config-file von postfix (main.cf):

alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain
mydomain = mster.info
myhostname = mail.mster.info
mynetworks = 10.0.0.0/8, 192.168.0.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450

Wie gesagt, der MX-Eintrag beim Provider lautet: mail.mster.info. Wenn Du die anpingst, hast Du unsere öffentliche IP.

Dann kommt unser Router, der Port 25 auf die externe Netzwerkkarte (192.168.0.155) leitet.

Aber ich glaub ich bin schon zuweit. Weil wenn ich versuche per Telnet und der internen IP Postfix zu erreichen, dann kriege ich auch eine Fehlermeldung mit "Connection Refused". Da geb ich dann ein: Telnet 10.0.0.1 25 und nix passiert.

Weiß nicht mehr weiter. Vielen Dank für Deine Hilfe.

Grüsse
Mullfreak

Terran Marine
10.03.05, 17:06
Aber ich glaub ich bin schon zuweit. Weil wenn ich versuche per Telnet und der internen IP Postfix zu erreichen, dann kriege ich auch eine Fehlermeldung mit "Connection Refused". Da geb ich dann ein: Telnet 10.0.0.1 25 und nix passiert.


Firewall auf der Maschine drauf ?

Ansonsten mal lsof -i :25 eingeben, um zu prüfen, auf welchen interfaces postfix läuft.

mullfreak
10.03.05, 17:09
Hi,

es laufen die Standard Firewalls von SUSE Linux 9.1. Ich hab es aber gestern auch ohne Firewalls probiert und es ging auch nicht. Ich müsste doch zumindest lokal mit der IP per Telnet draufkommen.

Ich schau jetzt mal schnell was für Ports von Postfix benutzt werden.
Melde mich gleich wieder.

Grüsse
Mullfreak

mullfreak
10.03.05, 17:14
Hi,

ich habe den Befehl eingegeben und kriege folgendes Ergebnis:

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
master 4703 root 12u IPv4 7489 TCP localhost:smtp (LISTEN)
master 4703 root 13u IPv6 7490 TCP localhost:smtp (LISTEN)

Kannst Du damit was anfangen?

Noch eine Frage, ist es eigentlich egal welchen Hostnamen ich für mein Linux verwende. So hab ich jetzt z. B. unix.dscontent.local, will aber z. B. für Postfix mail.mster.info verwenden. Ist das falsch oder kann man das so machen?

Grüsse
Mullfreak

Terran Marine
10.03.05, 17:21
Hi,

ich habe den Befehl eingegeben und kriege folgendes Ergebnis:

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
master 4703 root 12u IPv4 7489 TCP localhost:smtp (LISTEN)
master 4703 root 13u IPv6 7490 TCP localhost:smtp (LISTEN)

Noch eine Frage, ist es eigentlich egal welchen Hostnamen ich für mein Linux verwende. So hab ich jetzt z. B. unix.dscontent.local, will aber z. B. für Postfix mail.mster.info verwenden. Ist das falsch oder kann man das so machen?


Ja, postfix lauscht nur auf localhost und nicht auf dem Netzwerkkarteninterface,
in der config ist dies aber richtig eingetragen.

Poste bitte nochmal das Startlog von postfix, da muss sich was drin finden ( /var/log/mail oder ähnlich)

Und poste auch nochmal ifconfig, sicher ist sicher ;)

Der Name ist relativ egal, FQDN die nicht im Internet zugelassen sind (z.b. TLD local), können aber Probleme beim SMTP-Versand machen, da viele ISPs auf ordentliche Domainnamen prüfen.

Gruß
Terran

mullfreak
10.03.05, 17:32
Hi terran,

danke nochmal für Deine ausführliche Hilfe und entschuldige die Wartezeit gestern und heute.

Hier die Startdatei von postfix:
#! /bin/sh
# Copyright (c) 2000-2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2002 SuSE Linux AG
#
# Author: Carsten Hoeger <feedback@suse.de>
#
# /etc/init.d/postfix
#
### BEGIN INIT INFO
# Provides: sendmail postfix
# Required-Start: $network $named $syslog
# X-UnitedLinux-Should-Start: cyrus ldap ypbind openslp
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: start the Postfix MTA
### END INIT INFO

# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}

MASTER_BIN=/usr/lib/postfix/master
POSTFIX_BIN=/usr/sbin/postfix
OPENSLP_BIN=/usr/bin/slptool

test -x $POSTFIX_BIN || exit 5
test -x $MASTER_BIN || exit 5

cond_slp() {
cmd=$1
PIFACES=$(postconf -h inet_interfaces|sed -e 's/127.0.0.1//')
PSERVICES=$(grep -E '^smtp.*smtpd' /etc/postfix/master.cf| cut -d" " -f1)
if [ -x $OPENSLP_BIN -a -n "$PIFACES" ]; then
FQHN=$(postconf -h myhostname)
for srv in $PSERVICES; do
sport=$(sed -ne "/^$srv/Is/^$srv[[:space:]]\+\([0-9]\+\)\/tcp.*/\1/gp" /etc/services)
if [ -n "$sport" ]; then
$OPENSLP_BIN $cmd service:$srv://$FQHN:$sport > /dev/null 2>&1
fi
done
fi
}


# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_failed <num> set local and overall rc status to <num><num>
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
. /etc/rc.status

# First reset status of this service
rc_reset

# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signalling is not supported) are
# considered a success.

case "$1" in
start)
echo -n "Starting mail service (Postfix)"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.

if ! /sbin/checkproc -p /var/spool/postfix/pid/master.pid $MASTER_BIN; then
$POSTFIX_BIN start > /dev/null 2>&1
else
rc_reset
fi

# Remember status and be verbose
rc_status -v

( i=60
# waiting for qmgr
while [ -z "$(pidof qmgr)" -a $i -gt 0 ]; do
i=$(( $i - 1 ))
sleep 1
done
/usr/sbin/postfix flush ) > /dev/null 2>&1 &
cond_slp "register" &
;;
stop)
echo -n "Shutting down mail service (Postfix)"
## Stop daemon with killproc(8) and if this fails
## set echo the echo return value.

/sbin/killproc -p /var/spool/postfix/pid/master.pid -TERM $MASTER_BIN

# Remember status and be verbose
cond_slp "deregister" &
rc_status -v
;;
try-restart)
## Stop the service and if this succeeds (i.e. the
## service was running before), start it again.
## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
$0 status >/dev/null && $0 restart

# Remember status and be quiet
rc_status
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start

# Remember status and be quiet
rc_status
;;
force-reload)
## Signal the daemon to reload its config. Most daemons
## do this on signal 1 (SIGHUP).
## If it does not support it, restart.

echo -n "Reload mail service (Postfix)"
# if it supports it:
/sbin/killproc -p /var/spool/postfix/pid/master.pid -HUP $MASTER_BIN
#touch /var/run/FOO.pid
rc_status -v
/usr/sbin/postfix flush > /dev/null 2>&1

## Otherwise:
#$0 stop && $0 start
#rc_status
;;
reload)
echo -n "Reload mail service (Postfix)"

# If it supports signalling:
/sbin/killproc -p /var/spool/postfix/pid/master.pid -HUP $MASTER_BIN
#touch /var/run/FOO.pid
rc_status -v
/usr/sbin/postfix flush > /dev/null 2>&1

## Otherwise if it does not support reload:
#rc_failed 3
#rc_status -v
;;
status)
echo -n "Checking for service Postfix: "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.

# Status has a slightly different for the status command:
# 0 - service running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running

# NOTE: checkproc returns LSB compliant status values.
/sbin/checkproc -p /var/spool/postfix/pid/master.pid $MASTER_BIN
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
exit 1
;;
esac
rc_exit


-------------------------------------------------------------------------------------------------

Hier ifconfig:

eth0 Link encap:Ethernet HWaddr 00:0B:6A:A4:E2:A1
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::20b:6aff:fea4:e2a1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4651 (4.5 Kb) TX bytes:12719 (12.4 Kb)
Interrupt:10 Base address:0xd400

eth1 Link encap:Ethernet HWaddr 00:11:6B:31:44:C1
inet addr:192.168.0.155 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:6bff:fe31:44c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1514 errors:0 dropped:0 overruns:0 frame:0
TX packets:1635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:590909 (577.0 Kb) TX bytes:321606 (314.0 Kb)
Interrupt:10 Base address:0xf00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5549 errors:0 dropped:0 overruns:0 frame:0
TX packets:5549 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1027026 (1002.9 Kb) TX bytes:1027026 (1002.9 Kb)


Mullfreak

Terran Marine
10.03.05, 17:43
Hi terran,

danke nochmal für Deine ausführliche Hilfe und entschuldige die Wartezeit gestern und heute.

Hier die Startdatei von postfix:


Ich meine nicht Startdatei, sondern Startlog, also die Logdatei (wie gesagt /var/log/mail*)

Gruß
Terran

mullfreak
10.03.05, 17:45
Feb 22 20:43:34 linux postfix/sendmail[3045]: warning: My hostname linux is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Feb 22 20:43:34 linux postfix[3057]: warning: My hostname linux is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Feb 22 20:43:34 linux postfix/master[3058]: warning: My hostname linux is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Feb 22 20:43:34 linux postfix/postfix-script: warning: My hostname linux is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Feb 22 20:43:34 linux postfix/postfix-script: fatal: the Postfix mail system is not running
Feb 22 20:44:51 linux postfix/postfix-script: fatal: the Postfix mail system is not running
Feb 22 19:44:59 linux postfix/postdrop[4087]: warning: unable to look up public/pickup: No such file or directory
Feb 22 19:44:59 linux postfix/postdrop[4101]: warning: unable to look up public/pickup: No such file or directory
Feb 22 19:44:59 linux postfix/postdrop[4090]: warning: unable to look up public/pickup: No such file or directory
Feb 22 20:46:01 linux postfix/postfix-script: starting the Postfix mail system
Feb 22 20:46:01 linux postfix/master[6518]: daemon started -- version 2.0.19-20040312
Feb 22 20:46:02 linux postfix/pickup[6525]: 0390B188F8: uid=0 from=<root>
Feb 22 20:46:02 linux postfix/cleanup[6531]: 0390B188F8: message-id=<421B8BBB.mail35R11PTQP@linux.site>
Feb 22 20:46:02 linux postfix/qmgr[6526]: 0390B188F8: from=<root@linux.site>, size=774, nrcpt=1 (queue active)
Feb 22 20:46:02 linux postfix/pickup[6525]: 54F87188C6: uid=0 from=<root>
Feb 22 20:46:02 linux postfix/cleanup[6531]: 54F87188C6: message-id=<421B8BBB.mail359112RUR@linux.site>
Feb 22 20:46:02 linux postfix/qmgr[6526]: 54F87188C6: from=<root@linux.site>, size=5808, nrcpt=1 (queue active)
Feb 22 20:46:02 linux postfix/pickup[6525]: AD38DB800: uid=0 from=<root>
Feb 22 20:46:02 linux postfix/cleanup[6649]: AD38DB800: message-id=<421B8BBB.mail35H11U94M@linux.site>
Feb 22 20:46:02 linux postfix/local[6648]: 0390B188F8: to=<root@linux.site>, orig_to=<root>, relay=local, delay=63, status=sent (delivered to mailbox)
Feb 22 20:46:02 linux postfix/qmgr[6526]: 0390B188F8: removed
Feb 22 20:46:02 linux postfix/local[6648]: 54F87188C6: to=<root@linux.site>, orig_to=<root>, relay=local, delay=63, status=sent (delivered to mailbox)
Feb 22 20:46:02 linux postfix/qmgr[6526]: AD38DB800: from=<root@linux.site>, size=1730, nrcpt=1 (queue active)
Feb 22 20:46:02 linux postfix/qmgr[6526]: 54F87188C6: removed
Feb 22 20:46:02 linux postfix/local[6665]: AD38DB800: to=<root@linux.site>, orig_to=<root>, relay=local, delay=63, status=sent (delivered to mailbox)
Feb 22 20:46:02 linux postfix/qmgr[6526]: AD38DB800: removed
Feb 22 20:46:54 linux postfix/master[6518]: terminating on signal 15
Feb 23 14:01:16 linux postfix/postfix-script: starting the Postfix mail system
Feb 23 14:01:17 linux postfix/master[3118]: daemon started -- version 2.0.19-20040312
Feb 23 14:04:01 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:04:01 linux postfix/master[3118]: reload configuration
Feb 23 14:04:07 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:04:07 linux postfix/master[3118]: reload configuration
Feb 23 14:05:13 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:05:13 linux postfix/master[3118]: reload configuration
Feb 23 14:05:18 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:05:18 linux postfix/master[3118]: reload configuration
Feb 23 14:12:07 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:12:07 linux postfix/master[3118]: reload configuration
Feb 23 14:54:22 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:54:22 linux postfix/master[3118]: reload configuration
Feb 23 14:56:51 linux postfix/postfix-script: refreshing the Postfix mail system
Feb 23 14:56:51 linux postfix/master[3118]: reload configuration
Feb 23 14:57:14 linux postfix/master[3118]: terminating on signal 15
Feb 23 14:58:23 unix postfix/postfix-script: starting the Postfix mail system
Feb 23 14:58:23 unix postfix/master[3090]: daemon started -- version 2.0.19-20040312
Feb 23 15:43:19 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 23 15:43:19 unix postfix/master[3090]: reload configuration
Feb 24 11:11:12 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 24 11:11:12 unix postfix/master[3090]: reload configuration
Feb 24 11:43:19 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 24 11:43:19 unix postfix/master[3090]: reload configuration
Feb 24 11:43:28 unix postfix/pickup[18477]: E720518982: uid=0 from=<root>
Feb 24 11:43:28 unix postfix/cleanup[18739]: E720518982: message-id=<421DAFCF.mailEGA11TQ4L@unix.dscontent.local>
Feb 24 11:43:29 unix postfix/qmgr[18483]: E720518982: from=<root@unix.dscontent.local>, size=717, nrcpt=1 (queue active)
Feb 24 11:43:30 unix postfix/local[18741]: E720518982: to=<root@unix.dscontent.local>, orig_to=<root>, relay=local, delay=2, status=sent (delivered to mailbox)
Feb 24 11:43:30 unix postfix/qmgr[18483]: E720518982: removed
Feb 24 11:44:40 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 24 11:44:40 unix postfix/master[3090]: reload configuration
Feb 24 13:27:07 unix postfix/master[3090]: terminating on signal 15
Feb 24 13:28:49 unix postfix/postfix-script: starting the Postfix mail system
Feb 24 13:28:49 unix postfix/master[3049]: daemon started -- version 2.0.19-20040312
Feb 25 09:01:25 unix postfix/master[3049]: terminating on signal 15
Feb 25 09:25:18 unix postfix/postfix-script: starting the Postfix mail system
Feb 25 09:25:18 unix postfix/master[2985]: daemon started -- version 2.0.19-20040312
Feb 25 13:27:18 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 25 13:27:18 unix postfix/master[2985]: reload configuration
Feb 25 13:28:24 unix postfix/master[2985]: terminating on signal 15
Feb 25 13:30:05 unix postfix/postfix-script: starting the Postfix mail system
Feb 25 13:30:05 unix postfix/master[3006]: daemon started -- version 2.0.19-20040312
Feb 25 13:36:19 unix postfix/postfix-script: starting the Postfix mail system
Feb 25 13:36:19 unix postfix/master[3030]: daemon started -- version 2.0.19-20040312
Feb 25 13:39:23 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 25 13:39:23 unix postfix/master[3030]: reload configuration
Feb 25 13:39:32 unix postfix/pickup[4295]: 13C1F1836B: uid=0 from=<root>
Feb 25 13:39:32 unix postfix/cleanup[4562]: 13C1F1836B: message-id=<421F1C82.mail3IH1VN14A@unix.dscontent.local>
Feb 25 13:39:33 unix postfix/qmgr[4300]: 13C1F1836B: from=<root@unix.dscontent.local>, size=717, nrcpt=1 (queue active)
Feb 25 13:39:33 unix postfix/local[4564]: 13C1F1836B: to=<root@unix.dscontent.local>, orig_to=<root>, relay=local, delay=2, status=sent (delivered to mailbox)
Feb 25 13:39:34 unix postfix/qmgr[4300]: 13C1F1836B: removed
Feb 25 13:41:04 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 25 13:41:04 unix postfix/master[3030]: reload configuration
Feb 26 09:46:47 unix postfix/master[3030]: terminating on signal 15
Feb 27 15:07:25 unix postfix/postfix-script: starting the Postfix mail system
Feb 27 15:07:25 unix postfix/master[2967]: daemon started -- version 2.0.19-20040312
Feb 27 15:12:12 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 27 15:12:12 unix postfix/master[2967]: reload configuration
Feb 27 15:40:27 unix postfix/master[2967]: terminating on signal 15
Feb 27 15:44:29 unix postfix/postfix-script: starting the Postfix mail system
Feb 27 15:44:29 unix postfix/master[3021]: daemon started -- version 2.0.19-20040312
Feb 28 10:14:02 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 28 10:14:02 unix postfix/master[3021]: reload configuration
Feb 28 10:15:50 unix postfix/postfix-script: refreshing the Postfix mail system
Feb 28 10:15:51 unix postfix/master[3021]: reload configuration
Mar 1 09:35:27 unix postfix/master[3021]: terminating on signal 15
Mar 7 10:19:38 unix postfix/postfix-script: starting the Postfix mail system
Mar 7 10:19:38 unix postfix/master[2980]: daemon started -- version 2.0.19-20040312
Mar 7 10:24:08 unix postfix/master[2980]: terminating on signal 15
Mar 7 10:29:35 unix postfix/postfix-script: starting the Postfix mail system
Mar 7 10:29:35 unix postfix/master[2967]: daemon started -- version 2.0.19-20040312
Mar 8 00:21:59 unix postfix/smtpd[5032]: connect from localhost[127.0.0.1]
Mar 8 00:22:14 unix postfix/smtpd[5032]: lost connection after CONNECT from localhost[127.0.0.1]
Mar 8 00:22:14 unix postfix/smtpd[5032]: disconnect from localhost[127.0.0.1]
Mar 8 00:26:54 unix postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check)
Mar 8 00:27:01 unix postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check)
Mar 8 00:27:07 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 8 00:27:07 unix postfix/master[2967]: reload configuration
Mar 8 00:28:06 unix postfix/smtpd[5163]: connect from localhost[127.0.0.1]
Mar 8 00:28:19 unix postfix/smtpd[5163]: lost connection after CONNECT from localhost[127.0.0.1]
Mar 8 00:28:19 unix postfix/smtpd[5163]: disconnect from localhost[127.0.0.1]
Mar 8 00:30:50 unix postfix/smtpd[5222]: connect from localhost[127.0.0.1]
Mar 8 00:30:55 unix postfix/smtpd[5222]: lost connection after CONNECT from localhost[127.0.0.1]
Mar 8 00:30:55 unix postfix/smtpd[5222]: disconnect from localhost[127.0.0.1]
Mar 8 00:32:05 unix postfix/postfix-script: fatal: the Postfix mail system is already running
Mar 8 00:32:09 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 8 00:32:09 unix postfix/master[2967]: reload configuration
Mar 8 17:47:33 unix postfix/smtpd[7267]: connect from localhost[127.0.0.1]
Mar 8 17:48:05 unix postfix/smtpd[7267]: lost connection after HELO from localhost[127.0.0.1]
Mar 8 17:48:05 unix postfix/smtpd[7267]: disconnect from localhost[127.0.0.1]
Mar 8 23:41:13 unix postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check)
Mar 8 23:41:17 unix postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, or check)
Mar 8 23:41:22 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 8 23:41:22 unix postfix/master[2967]: reload configuration
Mar 9 00:12:12 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 9 00:12:13 unix postfix/master[2967]: reload configuration
Mar 9 00:12:24 unix postfix/smtpd[9264]: connect from localhost[127.0.0.1]
Mar 9 00:13:03 unix postfix/smtpd[9264]: 96F671E717: client=localhost[127.0.0.1]
Mar 9 00:14:04 unix postfix/cleanup[9267]: 96F671E717: message-id=<20050308231246.96F671E717@mail.mster.info>
Mar 9 00:14:04 unix postfix/qmgr[9261]: 96F671E717: from=<mmueller@ds-content.de>, size=361, nrcpt=1 (queue active)
Mar 9 00:14:14 unix postfix/smtpd[9264]: disconnect from localhost[127.0.0.1]
Mar 9 00:14:55 unix postfix/smtp[9279]: connect to mail.mster.info[213.146.119.157]: Connection timed out (port 25)
Mar 9 00:14:56 unix postfix/smtp[9279]: 96F671E717: to=<mmueller@mster.info>, relay=mail2.mster.info[217.172.173.165], delay=130, status=sent (250 ok 1110323113 qp 15045)
Mar 9 00:14:56 unix postfix/qmgr[9261]: 96F671E717: removed
Mar 9 19:16:23 unix postfix/smtpd[10933]: connect from localhost[127.0.0.1]
Mar 9 19:16:38 unix postfix/smtpd[10933]: disconnect from localhost[127.0.0.1]
Mar 9 19:16:40 unix postfix/smtpd[10933]: connect from localhost[127.0.0.1]
Mar 9 19:16:46 unix postfix/smtpd[10933]: disconnect from localhost[127.0.0.1]
Mar 9 19:28:08 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 9 19:28:08 unix postfix/master[2967]: reload configuration
Mar 10 10:30:28 unix postfix/postfix-script: starting the Postfix mail system
Mar 10 10:30:28 unix postfix/master[4785]: daemon started -- version 2.0.19-20040312
Mar 10 10:34:31 unix postfix/smtpd[5891]: connect from localhost[127.0.0.1]
Mar 10 10:34:36 unix postfix/smtpd[5891]: disconnect from localhost[127.0.0.1]
Mar 10 15:35:50 unix postfix/postfix-script: starting the Postfix mail system
Mar 10 15:35:50 unix postfix/master[4898]: daemon started -- version 2.0.19-20040312
Mar 10 15:48:52 unix postfix/smtpd[7476]: connect from localhost[127.0.0.1]
Mar 10 15:48:55 unix postfix/smtpd[7476]: disconnect from localhost[127.0.0.1]
Mar 10 15:50:55 unix postfix/postfix-script: starting the Postfix mail system
Mar 10 15:50:55 unix postfix/master[4934]: daemon started -- version 2.0.19-20040312
Mar 10 16:32:53 unix postfix/master[4934]: terminating on signal 15
Mar 10 16:34:44 unix postfix/postfix-script: starting the Postfix mail system
Mar 10 16:34:44 unix postfix/master[4703]: daemon started -- version 2.0.19-20040312
Mar 10 16:56:39 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 10 16:56:39 unix postfix/master[4703]: reload configuration
Mar 10 16:56:39 unix postfix/master[4703]: warning: service smtp: ignoring inet_interfaces change
Mar 10 16:56:39 unix postfix/master[4703]: warning: to change inet_interfaces, stop and start Postfix
Mar 10 17:02:20 unix postfix/smtpd[6148]: connect from localhost[127.0.0.1]
Mar 10 17:02:23 unix postfix/smtpd[6148]: lost connection after CONNECT from localhost[127.0.0.1]
Mar 10 17:02:23 unix postfix/smtpd[6148]: disconnect from localhost[127.0.0.1]
Mar 10 17:16:46 unix postfix/postfix-script: refreshing the Postfix mail system
Mar 10 17:16:46 unix postfix/master[4703]: reload configuration
Mar 10 17:16:46 unix postfix/master[4703]: warning: service smtp: ignoring inet_interfaces change
Mar 10 17:16:46 unix postfix/master[4703]: warning: to change inet_interfaces, stop and start Postfix
Mar 10 17:16:50 unix postfix/smtpd[6319]: connect from localhost[127.0.0.1]
Mar 10 17:16:56 unix postfix/smtpd[6319]: disconnect from localhost[127.0.0.1]
Mar 10 17:18:52 unix postfix/smtpd[6325]: connect from localhost[127.0.0.1]
Mar 10 17:18:55 unix postfix/smtpd[6325]: lost connection after CONNECT from localhost[127.0.0.1]
Mar 10 17:18:55 unix postfix/smtpd[6325]: disconnect from localhost[127.0.0.1]

Terran Marine
10.03.05, 19:59
Feb 22 20:43:34 linux postfix/sendmail[3045]: warning: My hostname linux is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Mar 10 16:56:39 unix postfix/master[4703]: warning: service smtp: ignoring inet_interfaces change
Mar 10 16:56:39 unix postfix/master[4703]: warning: to change inet_interfaces, stop and start Postfix


er meckert wg. dem Hostname.

Hast du einen Neustart gemacht, nach dem Neusetzen von inet_interfaces, sowie es das Log vorschreibt ?

Das nochmal prüfen und Rückmelden.

Gruß
Terran

mullfreak
10.03.05, 20:09
Hi,

hab ich gemacht mit postfix reload. Ich weiß echt nicht mehr weiter. Vielleicht postfix neu aufsetzen?

Ich mach morgen in der früh gleich mal einen kompletten restart der Kiste. Bin gerade zu Hause und mein VNC funzt irgendwie nicht mehr auf den Server.

Werde mich morgen wieder melden. OK?

Mullfreak

mullfreak
10.03.05, 20:13
Das mit dem Hostnamen kam vor, als ich den Server aufgesetzt habe. Dann hab ich ihn ja verändert mit dem postconf Befehl.

Ich verstehs echt nicht, weil wenn die IP-Adressen drin sind, müsste er doch lokal mit Telnet antworten.

Liege ich mit den Subnetzen richtig?
10.0.0.0/8, 192.168.0.0/24

Mullfreak

mullfreak
11.03.05, 12:22
Hi,

ich habe heute morgen einen Restart des Servers gemacht und siehe da, der Server funktioniert jetzt.
Ich kann jetzt Postfix auf beiden Netzwerkkarten per Telnet erreichen, sei es lokal aus dem Netzwerk oder übers Internet.

Wunderbar.

Jetzt gehts ans testen des E-Mailing. Zuerst mal lokal versuchen und dann übers Netzwerk und dann übers Internet.

Ich danke Dir für Deine Hilfe und hoffe Du wirst mir auch bei weiteren Fragen behilflich sein.

Grüsse
Mullfreak

mullfreak
11.03.05, 15:22
Hallo,

ich hab an dem Linux-Server einen Windows 2003 Server dran hängen auf dem ich jetzt Outlook Express als Testclient von meinem Postfix verwende.

Dazu habe ich auf dem Suse "qpopper" installiert.

Dann habe ich das Konto konfiguriert und es funktioniert einwandfrei. Ich kann Mails versenden. Die Domäne wird optimal masqueriert und die Mails werden ausgeliefert. Nur wenn ich versuche Mails von draußen an den Postfix zu schicken, werden alle diese von meinem Provider empfangen.

Weiß noch nicht warum, aber werds schon rauskriegen. Anscheinend lehnt er die Mails ab und leitet diese an den zweiten MX-Eintrag des Providers weiter.

Vielleicht fällt Dir noch was ein. Die main.cf ist eh noch unverändert und kannst ja nochmal durchlesen.

Grüsse
Mullfreak

Terran Marine
11.03.05, 17:45
Vielleicht fällt Dir noch was ein. Die main.cf ist eh noch unverändert und kannst ja nochmal durchlesen.


Jo habs gerade mal an deinem server getestet, mydestination muss noch um den Parameter $mydomain ergänzt werden (danach restart mit /etc/init.d/postfix restart), damit postfix sich für mster.info zuständig fühlt.

Gruß
Terran

mullfreak
11.03.05, 20:31
Hi,

werde ich morgen mal machen. Mein VNC von zu Hause geht leider nicht mehr. Weiß nicht warum. Auch putty streikt.

Na ja, mach ich morgen früh an der Maschine selbst. Melde mich dann wieder.

Grüsse
Mullfreak

mullfreak
12.03.05, 19:05
Hi,

ich habe jetzt mydestination um den Eintrag $mydomain erweitert und siehe da, ich kann mails empfangen. Eigentlich ganz einfach. :cool:

Soweit so gut, jetzt gehts weiter mit der Installation von amavis und spamassassin.

Was hältst Du davon? Sind die Programme gut?

Nach einer erfolgreichen Installation der beiden Programme und einer guten Absicherung bezüglich Viren und Spam kommt dann der letzte Punkt. Die Übergabe an eine Exchange 2003 System.

Dann wäre ich mit der Konfiguration am Ende. Genau so einen Mailrelay Server benötige ich.

Noch was:
Kann ich jetzt z. B. auch den Server als POP und SMTP Server übers Internet ansprechen, also einen Mail-Client verwenden und als Servereinträge mail.mster.info verwenden? Geht das? Ich werde das heute mal ausprobieren. Ich habe dazu den Port 110 auf meinem Router an die IP des Postfix-Servers weitergeleitet. Dann müsste das doch klappen.

Grüsse
Mullfreak

mullfreak
12.03.05, 19:20
Hi,

habs gerade ausprobiert auf einem entferntem Client. Ja, ich kann dort über Outlook Express auf den Server zugreifen. Spitze.

Jetzt fällt mir nur eins auf. Wenn ich die Testmails von GMX schicke, kommen diese einwandfrei an. Wenn ich aber Mails von meiner Firma wegschicke, dann kommen die nicht an.

Hmmm....

Hatte eigentlich nie Probleme mit meinem Firmenaccount. Nur bei manchen Kunden bin ich schon mal in dem Spamordner gelandet. Kann aber nicht sagen warum. Ausserdem dürfte das kein Problem sein, da ja auf dem Postfix-Server noch kein Anti-Spam läuft.

Grüsse
Mullfreak

mullfreak
13.03.05, 11:48
Hi,

zum Thema POP3 Server.

Gestern funktionierte es noch einwandfrei das ich Mails von einem entferntem Client über Outlook Express senden und empfangen konnte.
Heute leider nicht mehr.
Ich kriege dann folgenden Fehler:
'mullfreak@gmx.de' am 13.03.2005 11:44
554 <mullfreak@gmx.de>: Relay access denied
Dies ist auch logisch, weil ich ja dann übers Internet sende und Postfix ja nicht für dynamische IP´s konfiguriert ist.
Das würde heißen, dass dies nur möglich ist, wenn ich Clients hätte die über eine feste öffentliche IP verfügen und ich diese unter INET_Interfaces eintragen würde.
Da aber die Clients alle über dynamische öffentliche IP´s verfügen, wird dies nicht funktionieren. Eine Art Joker-Eintrag unter INET_Interfaces würde ja dann ein offenes Relay bedeuten.
Dies wollen wir ja auf keinen Fall.
D. h. der Client muss sich am Server vorher authentifizieren, womit wir jetzt beim Thema POP before SMTP wären, denke ich.
Nun habe ich mich ein bisschen eingelesen in das Thema und bin auf eine Authentifizierungsmethode mit SASL gestossen.
Jetzt muss ich erst mal wissen, ob das Standard Postfix aus SUSE 9.1 überhaupt mit SASL zusammenarbeiten kann?
Ich werde mich heute mal damit beschäftigen.

Grüsse
Mullfreak

Terran Marine
13.03.05, 14:04
Dies wollen wir ja auf keinen Fall.
D. h. der Client muss sich am Server vorher authentifizieren, womit wir jetzt beim Thema POP before SMTP wären, denke ich.
Nun habe ich mich ein bisschen eingelesen in das Thema und bin auf eine Authentifizierungsmethode mit SASL gestossen.
Jetzt muss ich erst mal wissen, ob das Standard Postfix aus SUSE 9.1 überhaupt mit SASL zusammenarbeiten kann?


pop-before-smtp ist veraltet, SASL ist der richtige, wenn auch schwerere Weg.
Suse 9.1 bringt eine SASL Unterstützung mit, musst eventuell noch ein Paket nachinstallieren (postfix-sasl oder so, habe zuhause kein Suse mehr).

SASL ist (obwohl der Name was anderes sagt), nicht ganz trivial, du findest dazu hier im Forum oder bei google allerdings genügend Howtos.
Alternativ gibts auch hier im Forum immer Hilfe dafür ;)

Gruß
Terran

mullfreak
13.03.05, 17:46
Hi,

danke für die Aufklärung.
Ich hab mir das Postfix Buch von O´Reilly besorgt und werde mich nach deren Tutorial mit SASL und Postfix halten.

Werde wieder berichten wie es gelaufen ist.

Eigentlich ist es ja unwichtig einen Internet POP3-Server zu basteln, weil ich ja eigentlich nur einen Mailgateway im Zusammenspiel mit einem Exchange 2003 benötige. Aber wenns grad so gut läuft mach ich das gerne mit.

Grüsse
Mullfreak