PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : hilfe ;) smtp lässt sich nicht öffnen



Fly
02.06.05, 17:43
Moin,

hab amavis und antivir Konfiguration nach dieser Anleitung (http://www.linux-technik.de/) gemacht. Ich bekomme den Port 25 bzw. 10025 nicht frei :ugly: Port 10024 ist frei:


mailserver:/etc/postfix# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost AntiVir MailGate


main.cf


# Virenschutz - Aufruf des amavis-Filters
# content_filter = amavis:[127.0.0.1]:10025
content_filter = amavis:
soft_bounce = yes

master.cf


#smtp inet n - - - - smtpd
-o content_filter=postfixfilter:
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
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 -d -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}

# only used by postfix-tls
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

# amavis settings
amavis unix - n n - 10 pipe user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}

localhost:10025 inet n - n - - smtpd -o content_filter=

# spamassassin settings
postfixfilter unix - n n - - pipe
flags=Rq user=postfixfilter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}

amavis.conf


# postfix-specific
$smtp_port = "10025";
$localhost_name = "localhost";
$localhost_ip = "127.0.0.1";


habe ich wo was vergessen?

Blackcollar
03.06.05, 07:50
welche Postfix bzw. amavis Version benutzt du ?
bzw. was bekommst du für eine Ausgabe mit dem Befehl :

netstat -tulpen
??

Fly
03.06.05, 11:28
welche Postfix bzw. amavis Version benutzt du ?
bzw. was bekommst du für eine Ausgabe mit dem Befehl :

netstat -tulpen
??


mailserver:/# netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State Benutzer Inode PID/Program name
tcp 0 0 0.0.0.0:679 0.0.0.0:* LISTEN 0 1262 921/rpc.statd
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 0 1114 887/avgated
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 1158 908/inetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 875 770/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 0 1318 949/perl
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 0 1159 908/inetd
tcp 0 0 172.16.1.1:53 0.0.0.0:* LISTEN 103 1087 864/named
tcp 0 0 10.45.94.20:53 0.0.0.0:* LISTEN 103 1085 864/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 103 1083 864/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 1239 916/sshd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 103 1091 864/named
udp 0 0 0.0.0.0:32768 0.0.0.0:* 103 1088 864/named
udp 0 0 0.0.0.0:10000 0.0.0.0:* 0 1319 949/perl
udp 0 0 0.0.0.0:673 0.0.0.0:* 0 1242 921/rpc.statd
udp 0 0 0.0.0.0:676 0.0.0.0:* 0 1253 921/rpc.statd
udp 0 0 172.16.1.1:53 0.0.0.0:* 103 1086 864/named
udp 0 0 10.45.94.20:53 0.0.0.0:* 103 1084 864/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 103 1082 864/named
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 874 770/portmap

Version:


ii amavisd-new 20030616p10-5 Interface between MTA and virus scanner/content filters
ii postfix 2.1.5-9 A high-performance mail transport agent

Roger Wilco
03.06.05, 11:54
Dein Postfix und amavisd-new laufen nicht.
Ausserdem hast du die master.cf irgendwie verunstaltet. Dir fehlt z. B. ein (nicht auskommentierter) Eintrag für smtpd.

Blackcollar
03.06.05, 16:24
Hinweis: Ich nutze die unstable Version von Amavis (new-20020517) & Postfix (1.1.11.20020917)


Die andere Frage ist, ob die Einstellungen von der Anleitung auch unter deinen aktuellen Versionen funktionieren...

Fly
06.06.05, 13:23
Die andere Frage ist, ob die Einstellungen von der Anleitung auch unter deinen aktuellen Versionen funktionieren...

Ich habe es nach HowTo (http://linux.studentensiedlung.de/howto/relay.php) von Andreas Maunz gemacht... Ist der HowTo schon zu alt?

Blackcollar
06.06.05, 14:25
Ich habe es nach HowTo (http://linux.studentensiedlung.de/howto/relay.php) von Andreas Maunz gemacht... Ist der HowTo schon zu alt?



hab amavis und antivir Konfiguration nach dieser Anleitung gemacht.
http://www.linux-technik.de/


Öhm, nach welcher Anleitung/HowTo hast du das nun gemacht??

Fly
06.06.05, 15:39
Öhm, nach welcher Anleitung/HowTo hast du das nun gemacht??

Jetzt habe ich zumindest den Amavis mit dieser HowTo (http://www.linux-tin.org/modules.php?op=modload&name=PagEd&file=index&topic_id=2&page_id=11#section3) zum laufen gebracht. :rolleyes:

jetzt sieht es mit netstat -tulpen auch besser aus:


mailserver:/etc/postfix# netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State Benutzer Inode PID/Program name
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 0 6715 2475/amavisd (maste
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 1229 950/inetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 938 802/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 0 1624 1086/perl
tcp 0 0 0.0.0.0:816 0.0.0.0:* LISTEN 0 1568 1058/rpc.statd
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 0 1230 950/inetd
tcp 0 0 172.16.1.1:53 0.0.0.0:* LISTEN 103 1150 896/named
tcp 0 0 10.45.94.20:53 0.0.0.0:* LISTEN 103 1143 896/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 103 1141 896/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 1543 1053/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 9611 2869/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 103 1152 896/named
tcp 0 0 127.0.0.1:122 0.0.0.0:* LISTEN 0 1177 919/avgated
udp 0 0 0.0.0.0:32768 0.0.0.0:* 103 1151 896/named
udp 0 0 0.0.0.0:10000 0.0.0.0:* 0 1625 1086/perl
udp 0 0 0.0.0.0:810 0.0.0.0:* 0 1548 1058/rpc.statd
udp 0 0 0.0.0.0:813 0.0.0.0:* 0 1565 1058/rpc.statd
udp 0 0 172.16.1.1:53 0.0.0.0:* 103 1149 896/named
udp 0 0 10.45.94.20:53 0.0.0.0:* 103 1142 896/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 103 1140 896/named
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 937 802/portmap


Jedoch funktioniert telnet localhost 10025 nicht, aber Port 25 öffnet sich... Kann mir jemand ein tipp geben, woran es liegen kann, dass sich der Port 10025 nicht öffnet?

postconf -n Ausgabe:


alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
canonical_maps = hash:/etc/postfix/canonical content_filter = smtp-amavis:[127.0.0.1]:10024 soft_bounce = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mailbox_size_limit = 100000000
mydestination = mailserver.privat.ax, localhost.privat.ax localhost
mydomain = straeussl.ax
myhostname = mailserver.privat.ax
mynetworks = 127.0.0.0/8, 10.45.94.0/24
myorigin = /etc/mailname
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)

master.cf


smtp inet n - n - 50 smtpd -o content_filter=smtp:[localhost]:10024
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
smtp unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
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 -d -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}
# only used by postfix-tls
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
${sender} ${recipient}
localhost:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.1/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
smtp-amavis unix - - n - 50 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
# spamassassin settings
postfixfilter unix - n n - - pipe
flags=Rq user=postfixfilter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}

Fly
06.06.05, 16:22
Moin,

ich habe wirklich zahlreiche HowTos durchgelesen. Das eine was ich nicht ganz verstehe ist transport_maps... Ich gehe davon aus, dass wegen der fehlendentransport_map Postfix nicht richtig läuft. Kann ich den transport_map wie folgend konfigurieren:


#top-leveldomain lokaler mailserver
example.com smtp:[mailserver.privat.ax]:10025


Ich habe schon viele verschiedene Einträge im Transport maps probiert und immer wieder fehler im Logs gefunden... :mad: