PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix erzeugt Schleife mit Trendmicro IMSS



marcel w.
22.12.04, 08:44
Hallo,

Vorweg was will ich machen:

Es soll ein PC mit Suse-Linux (8.2 Enterprise) als Mail-Gateway arbeiten.
Dazu wird IMSS von Trendmicro installiert.

Der Aufbau sieht so aus:

Firewall <-> Linux <-> SMTP-Server(wasweisich.de) <-> SMTP-Client

Über Postfix wird denn das ganze abgewickelt und IMSS ist hier als content-filter
eingebunden.

In IMSS und Postfix habe ich die Domain wasweisich.de auch angegeben damit die Zuständigkeit geklährt ist.

Was geht:

Wenn ich ne Mail z.B. von gmx(mygmx) an wasweisich.de verschicke denn wird diese
von Postfix angenommen, von IMSS auf Viren geprüft und bereinigt an den
SMTP-Server verschickt.

Man hat die Möglichkeit im IMSS anzugeben, wer(z.b. Admin) neben dem eigentlichen Empfänger
noch ne Mail erhalten soll (Notification).
Diese Mail kommt auch beim SMTP-Server an.

Nun das Problem:

Genau diese Notification-Mail fängt Postfix an x-mal zu versenden. Dabei werden
sie einmal an den SMTP-Server ausgeliefert und müllen das Postfach zu oder werden
gar nicht ausgeliefert und landen im Queue von Postfix und der Linux PC geht irre
in die Knie, sodaß nur noch ein stop von Postfix hilft.

Weiterhin werden Notification-Mails (Absender - mygmx) nicht richtig verschickt. Postfix zeigt
zwar an, dass an gmx versendet wurde und dort die Mail auch abgenommen wurde, nur
kommt bei mygmx nichts an. Postfix scheint hier irgendwo hinzusenden.


Den Rückweg (SMTP-Client -> GMX) habe ich noch nicht probiert.


Anbei mal der code von Postfix main.cf und master.cf und ein Auszug aus dem Log von Postfix
Vielleicht erkennt Ihr ja, woran es liegt.

-------------- main.cf ----------------------------------------------------------------------


command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
unknown_local_recipient_reject_code = 450

debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES

#ip adressen die versenden dürfen
mynetworks = 192.168.10.0/24,127.0.0.1/8


myhostname = viruswall
mydomain = wasweisich.de
myorigin = $mydomain

mydestination = $mydomain

mail_owner=postfix

#postfix soll mails per smtp versenden
default_transport=smtp

smtpd_banner = $myhostname ESMTP

alias_maps=hash:/etc/aliases
alias_database=hash:/etc/aliases

setgid_group=maildrop

luser_relay = local
local_recipient_maps=

canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
program_directory = /usr/lib/postfix
disable_dns_lookups = no
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
mailbox_size_limit = 51200000
message_size_limit = 10240000

#manuell eingetragen wie in hilfe auf seite 3-3 von imss beschrieben
default_process_limit=200
imss_timeout=10m
imss_connect_timeout=1s
content_filter = imss:localhost:10025
imss_destination_recipient_limit=200
imss_destination_concurrency_limit=20

#wird von imss eingetragen wenn per web configuriert wird
transport_maps = $default_database_type:$config_directory/transportList
inet_interfaces = all
smtpd_client_restrictions = $default_database_type:$config_directory/denyAccessList, permit

-------------- master.cf ----------------------------------------------------------------------

# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#localhost:10025 inet n - n - - smtpd -o content_filter=
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan unix - n n - 10 pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}

#InterScan MSS: content filter smtp transport imss for InterScan MSS
imss unix - - n - - smtp
-o disable_dns_lookups=yes
-o smtp_connect_timeout=$imss_connect_timeout
-o smtp_data_done_timeout=$imss_timeout

#InterScan MSS: content filter loop back smtpd
localhost:10026 inet n - n - 20 smtpd
-o content_filter=
-o smtpd_timeout=$imss_timeout
-o local_recipient_maps=
-o myhostname=localhost

-------------- LOG Postfix ----------------------------------------------------------------------


Dec 22 09:19:21 linux postfix/smtpd[29529]: connect from pop.gmx.de[213.165.64.20]
Dec 22 09:19:21 linux postfix/smtpd[29529]: 206E81A414: client=pop.gmx.de[213.165.64.20]
Dec 22 09:19:21 linux postfix/cleanup[29530]: 206E81A414: message-id=<13651.1103703554@www58.gmx.net>
Dec 22 09:19:22 linux postfix/qmgr[29304]: 206E81A414: from=<mygmx@gmx.de>, size=955, nrcpt=1 (queue active)
Dec 22 09:19:22 linux postfix/smtpd[29529]: disconnect from pop.gmx.de[213.165.64.20]
Dec 22 09:19:22 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:22 linux postfix/smtpd[29543]: CB4401A415: client=localhost[127.0.0.1]
Dec 22 09:19:23 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:23 linux postfix/smtp[29542]: 206E81A414: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=2, status=sent (250 OK: data received)
Dec 22 09:19:24 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/smtpd[29529]: B0F231A414: client=localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/cleanup[29530]: B0F231A414: message-id=<20041222081924.B0F231A414@viruswall>
Dec 22 09:19:24 linux postfix/qmgr[29304]: B0F231A414: from=<postmaster@wasweisich.de>, size=1968, nrcpt=1 (queue active)
Dec 22 09:19:24 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/smtpd[29529]: D246B1A415: client=localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/cleanup[29530]: D246B1A415: message-id=<20041222081924.D246B1A415@viruswall>
Dec 22 09:19:24 linux postfix/smtpd[29543]: E23891A418: client=localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/qmgr[29304]: D246B1A415: from=<postmaster@wasweisich.de>, size=2015, nrcpt=1 (queue active)
Dec 22 09:19:25 linux postfix/smtpd[29529]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtp[29542]: B0F231A414: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:25 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtpd[29543]: 5D6891A414: client=localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/cleanup[29530]: 5D6891A414: message-id=<20041222081924.D246B1A415@viruswall>
Dec 22 09:19:25 linux postfix/qmgr[29304]: 5D6891A414: from=<postmaster@wasweisich.de>, size=2178, nrcpt=1 (queue active)
Dec 22 09:19:25 linux postfix/smtp[29542]: D246B1A415: to=<mygmx@gmx.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 Ok: queued as 5D6891A414)
Dec 22 09:19:25 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29529]: 1E6071A415: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/cleanup[29548]: 1E6071A415: message-id=<20041222081935.1E6071A415@viruswall>
Dec 22 09:19:35 linux postfix/qmgr[29304]: 1E6071A415: from=<postmaster@wasweisich.de>, size=3064, nrcpt=1 (queue active)
Dec 22 09:19:35 linux postfix/smtpd[29529]: 3DE101A418: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29550]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/cleanup[29530]: 3DE101A418: message-id=<20041222081935.3DE101A418@viruswall>
Dec 22 09:19:35 linux postfix/smtpd[29550]: 49DC21A424: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/qmgr[29304]: 3DE101A418: from=<postmaster@wasweisich.de>, size=2977, nrcpt=1 (queue active)
Dec 22 09:19:35 linux postfix/smtpd[29529]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29543]: 958071A42A: client=localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29542]: 3DE101A418: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:36 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29549]: 1E6071A415: to=<postmaster@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:36 linux postfix/smtpd[29550]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29551]: 5D6891A414: to=<mygmx@gmx.de>, relay=mx0.gmx.de[213.165.64.100], delay=11, status=sent (250 2.6.0 {mx060} Message accepted)

ab hier schleife



Dec 22 09:19:45 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/smtpd[29529]: 6789A1A414: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/cleanup[29530]: 6789A1A414: message-id=<20041222081945.6789A1A414@viruswall>
Dec 22 09:19:45 linux postfix/qmgr[29304]: 6789A1A414: from=<postmaster@wasweisich.de>, size=4073, nrcpt=1 (queue active)
Dec 22 09:19:45 linux postfix/smtpd[29529]: 8C2EF1A415: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/cleanup[29548]: 8C2EF1A415: message-id=<20041222081945.8C2EF1A415@viruswall>
Dec 22 09:19:45 linux postfix/smtpd[29543]: 97EDF1A418: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/qmgr[29304]: 8C2EF1A415: from=<postmaster@wasweisich.de>, size=3986, nrcpt=1 (queue active)


Mfg
Marcel

Terran Marine
22.12.04, 11:19
-------------- LOG Postfix ----------------------------------------------------------------------

Dec 22 09:19:21 linux postfix/smtpd[29529]: connect from pop.gmx.de[213.165.64.20]
Dec 22 09:19:21 linux postfix/smtpd[29529]: 206E81A414: client=pop.gmx.de[213.165.64.20]
Dec 22 09:19:21 linux postfix/cleanup[29530]: 206E81A414: message-id=<13651.1103703554@www58.gmx.net>
Dec 22 09:19:22 linux postfix/qmgr[29304]: 206E81A414: from=<mygmx@gmx.de>, size=955, nrcpt=1 (queue active)
Dec 22 09:19:22 linux postfix/smtpd[29529]: disconnect from pop.gmx.de[213.165.64.20]
Dec 22 09:19:22 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:22 linux postfix/smtpd[29543]: CB4401A415: client=localhost[127.0.0.1]
Dec 22 09:19:23 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:23 linux postfix/smtp[29542]: 206E81A414: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=2, status=sent (250 OK: data received)
Dec 22 09:19:24 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/smtpd[29529]: B0F231A414: client=localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/cleanup[29530]: B0F231A414: message-id=<20041222081924.B0F231A414@viruswall>
Dec 22 09:19:24 linux postfix/qmgr[29304]: B0F231A414: from=<postmaster@wasweisich.de>, size=1968, nrcpt=1 (queue active)
Dec 22 09:19:24 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/smtpd[29529]: D246B1A415: client=localhost[127.0.0.1]
Dec 22 09:19:24 linux postfix/cleanup[29530]: D246B1A415: message-id=<20041222081924.D246B1A415@viruswall>
Dec 22 09:19:24 linux postfix/smtpd[29543]: E23891A418: client=localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/qmgr[29304]: D246B1A415: from=<postmaster@wasweisich.de>, size=2015, nrcpt=1 (queue active)
Dec 22 09:19:25 linux postfix/smtpd[29529]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtp[29542]: B0F231A414: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:25 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/smtpd[29543]: 5D6891A414: client=localhost[127.0.0.1]
Dec 22 09:19:25 linux postfix/cleanup[29530]: 5D6891A414: message-id=<20041222081924.D246B1A415@viruswall>
Dec 22 09:19:25 linux postfix/qmgr[29304]: 5D6891A414: from=<postmaster@wasweisich.de>, size=2178, nrcpt=1 (queue active)
Dec 22 09:19:25 linux postfix/smtp[29542]: D246B1A415: to=<mygmx@gmx.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 Ok: queued as 5D6891A414)
Dec 22 09:19:25 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29529]: 1E6071A415: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/cleanup[29548]: 1E6071A415: message-id=<20041222081935.1E6071A415@viruswall>
Dec 22 09:19:35 linux postfix/qmgr[29304]: 1E6071A415: from=<postmaster@wasweisich.de>, size=3064, nrcpt=1 (queue active)
Dec 22 09:19:35 linux postfix/smtpd[29529]: 3DE101A418: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29550]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/cleanup[29530]: 3DE101A418: message-id=<20041222081935.3DE101A418@viruswall>
Dec 22 09:19:35 linux postfix/smtpd[29550]: 49DC21A424: client=localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/qmgr[29304]: 3DE101A418: from=<postmaster@wasweisich.de>, size=2977, nrcpt=1 (queue active)
Dec 22 09:19:35 linux postfix/smtpd[29529]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:35 linux postfix/smtpd[29543]: 958071A42A: client=localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29542]: 3DE101A418: to=<test@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:36 linux postfix/smtpd[29543]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29549]: 1E6071A415: to=<postmaster@wasweisich.de>, relay=localhost[127.0.0.1], delay=1, status=sent (250 OK: data received)
Dec 22 09:19:36 linux postfix/smtpd[29550]: disconnect from localhost[127.0.0.1]
Dec 22 09:19:36 linux postfix/smtp[29551]: 5D6891A414: to=<mygmx@gmx.de>, relay=mx0.gmx.de[213.165.64.100], delay=11, status=sent (250 2.6.0 {mx060} Message accepted)

ab hier schleife


Dec 22 09:19:45 linux postfix/smtpd[29529]: connect from localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/smtpd[29529]: 6789A1A414: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/cleanup[29530]: 6789A1A414: message-id=<20041222081945.6789A1A414@viruswall>
Dec 22 09:19:45 linux postfix/qmgr[29304]: 6789A1A414: from=<postmaster@wasweisich.de>, size=4073, nrcpt=1 (queue active)
Dec 22 09:19:45 linux postfix/smtpd[29529]: 8C2EF1A415: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/smtpd[29543]: connect from localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/cleanup[29548]: 8C2EF1A415: message-id=<20041222081945.8C2EF1A415@viruswall>
Dec 22 09:19:45 linux postfix/smtpd[29543]: 97EDF1A418: client=localhost[127.0.0.1]
Dec 22 09:19:45 linux postfix/qmgr[29304]: 8C2EF1A415: from=<postmaster@wasweisich.de>, size=3986, nrcpt=1 (queue active)


Hallo,

haben eine ähnliche Konstellation, allerdings auf zwei Rechner verteilt (postfix und Trendmicro ISVW).

Zum Log File, wird soviel Log für nur eine Mail generiert ?

Das ist afaik schon zuviel, normalerweise müsste das doch eine Annahme von gmx
sein, eine Weiterleitung auf den Trendmicro daemon und dann ne Weiterleitung auf den SMTP-Server im LAN?

Sind denn die Transport Maps in Ordnung, poste die dochmal ?

Und der luser_relay Eintrag, ist das Standard, sagt mir gerade nicht viel ?

Gruß
Terran

marcel w.
22.12.04, 12:15
Hi,

in der transportList steht:

wasweisich.de, smtp:[192.168.10.50]:25

Sagt ja aus, das postfix/imss die Mails die an wasweisich.de
adressiert sind über port 25 an den smtp-server weiterleiten soll.
Diese geht ja auch in gewisser weise

Zum Log: denke mal, dass die Menge der Logs zu einer Mail davon abhängen,
wie viele Notifications imss senden soll.

Bei meiner mail von gmx sind es also 3. Die eigentliche Mailsendung, die an den Administrator und wieder eine an mich (gmx) wegen Virus.

Und eben die Mail an den Administrator wird in einer schleife ausgeführt.
Die Mail an mich(gmx) kommt nicht an, obwohl sie angeblich versendet wurde.


Luser_Relay
Keine Ahnung ob das Standard ist. Kann ja mal versuchen, hier einige Einstellungen vorzunehmen und nochmal testen ob das was bringt.

mfg
marcel

Terran Marine
22.12.04, 12:34
Und eben die Mail an den Administrator wird in einer schleife ausgeführt.
Die Mail an mich(gmx) kommt nicht an, obwohl sie angeblich versendet wurde.


Administrator = postmaster@wasweissich.de?

Vielleicht löst er den postmaster in der /etc/aliases in einen User auf, der zu einer Schleife führt ?

Was anderes :

Wenn du ein -v an den smtpd Befehl in der master.cf hängst, bekommst du ein erweitertes Log, vielleicht hilft das weiter.

Gruß
Terran