<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>AW: [Postfixbuch-users] Re: [Erledigt]header_checks und mime_headerchecks zur gleichen Zeit nicht möglich?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Hallo!</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Ich verwende postfix 1.1.11.0 (debian woody stable). Der mailserver funktioniert soweit.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Habe versucht mittels amavis und Antivir einen mailscanner zu realisieren. (amavis-snapshot-20020300)</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Habe einen user vscan mit ID 401 und /bin/false als shell angelegt.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Habe amavis mit folgendem Befehl configuriert:</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">./configure --enable-smtp --with-warnrecip</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Führt zu folgender Ausgabe vom System:</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">** Configuration summary for amavisd snapshot-20020300 2002-03-00:</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Install amavis daemon as: /usr/sbin/amavisd</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Install amavis client as: /usr/sbin/amavis</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Daemon config file: /etc/amavisd.conf</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Path to socket: /var/amavis/amavisd.sock</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Configured for use with: postfix</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Configuration type: SMTP</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Use virus scanner(s): H+BEDV AntiVir/X</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Scanner runs as: vscan</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Logging to syslog: yes</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Run-time directory: /var/amavis</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Warn sender: yes</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Warn recipient(s): yes</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> Notify admin: yes</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">To accept the above, type "make" </FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Konnte dann make und make install ohne Fehlermeldung durchführen.</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Habe die Einträge in der main.cf und der master cf wie im Buch beschrieben vorgenommen: (blau, jetzt wieder remarked damit das Ding wieder läuft)</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># see /usr/share/postfix/main.cf.dist for a commented, fuller</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># version of this file.</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># Do not change these directory settings - they are critical to Postfix</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># operation.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">command_directory = /usr/sbin</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">daemon_directory = /usr/lib/postfix</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">program_directory = /usr/lib/postfix</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> #smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> #_mynetworks,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> #check_client_access hash:/etc/postfix/pop-before-smtp</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">smtpd_recipient_restrictions =</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> check_sender_access hash:/etc/postfix/access,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> check_recipient_access hash:/etc/postfix/access,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> permit_mx_backup,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> permit_mynetworks,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> check_relay_domains</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">setgid_group = postdrop</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">biff = no</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># appending .domain is the MUA's job.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">append_dot_mydomain = no</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">myhostname = </FONT></SPAN><A HREF="file://www.eke.at"><SPAN LANG="de"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.eke.at</FONT></U></SPAN></A><SPAN LANG="de"></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#relayhost = </FONT></SPAN><A HREF="file://www.eke.at"><SPAN LANG="de"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">www.eke.at</FONT></U></SPAN></A><SPAN LANG="de"></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">alias_maps = hash:/etc/aliases</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">alias_database = hash:/etc/aliases</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">mailbox_command = procmail -a "$EXTENSIONS"</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">myorigin = /etc/mailname</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">mydestination = eke.at, localhost.at, , localhost</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">mynetworks = 127.0.0.0/8</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">mailbox_size_limit = 0</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">recipient_delimiter = +</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">#content_filter = vscan:</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#inet_interfaces = all</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#soft_bounce = yes</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">master.cf:</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># ==========================================================================</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">smtp inet n - - - - smtpd</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">#localhost:10025 inet n - n - - smtpd -o content_filter=</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#628 inet n - - - - qmqpd</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">pickup fifo n - - 60 1 pickup</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">cleanup unix n - - - 0 cleanup</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">qmgr fifo n - - 300 1 qmgr</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#qmgr fifo n - - 300 1 nqmgr</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">rewrite unix - - - - - trivial-rewrite</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">bounce unix - - - - 0 bounce</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">defer unix - - - - 0 bounce</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">flush unix n - - 1000? 0 flush</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">smtp unix - - - - - smtp</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">showq unix n - - - - showq</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">error unix - - - - - error</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">local unix - n n - - local</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">virtual unix - n n - - virtual</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">lmtp unix - - n - - lmtp</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">#vscan unix - n n - 4 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># Interfaces to non-Postfix software. Be sure to examine the manual</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># pages of the non-Postfix software to find out what options it wants.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"># The Cyrus deliver program has changed incompatibly.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">#</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">cyrus unix - n n - - pipe</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">uucp unix - n n - - pipe</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">ifmail unix - n n - - pipe</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">bsmtp unix - n n - - pipe</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">scalemail-backend unix - n n - 2 pipe</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"> flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Der Wert content_filter aus der main.cf ist auch bei einem postconf -n erschienen.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">postfix lies sich ohne Probleme reloaden oder restarten.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Habe auch getestet ob sich postfix auf dem port 10025 meldet, konnte mich problemlos über Telnet localhost auf 10025 zu postfix verbinden.</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Alle mails die auf dem mailserver relayed werden sollten sind aber spurlos verschwunden (ohne Fehlermeldung)</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Die einzigen verdächtigen Einträge, welche ich in der mail.err mail.warn mail.log bzw mail info gefunden habe, sind folgende!</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">mail.warn:</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Sep 23 22:56:01 eke postfix/qmgr[15968]: warning: connect to transport amavis: No such file or directory</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">mail.log</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Sep 24 22:14:02 eke postfix/pipe[1646]: E94B681E74: to=<h.agerer@chello.at>, relay=vscan, delay=167604, status=deferred (temporary failure)</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Sep 24 22:14:02 eke postfix/pipe[1643]: 0EBF581E5F: to=<agerer@eke.at>, relay=vscan, delay=169531, status=deferred (temporary failure)</FONT></SPAN></P>
<BR>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Sicher sollte ich noch erwänen, dass ich seit ich mit amavis rumexperimentiere auch wenn ich alle hinzugefügten (blauen) Einträge in der main.cf</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">und in der master.cf wieder remarke auch bei einem funktionierendem Server folgenden Eintrag im mail.log habe.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">Sep 24 21:13:01 eke postfix/qmgr[386]: warning: connect to transport amavis: No such file or directory</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Habe dann kontrolliert ob das file /usr/sbin/amavis vorhanden ist -> ist vorhanden</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Habe im transport config nachgeschaut ob es hier einen verdächtigen Eintrag gibt und habe nichts gefunden.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Irgendwo muss postfix noch einen Verweis auf amavis haben.</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Es läuft auch kein Dienst mit dem Namen amavis auf dem server.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Der Befehl ps ax | grep amavis</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">führt zu:</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">1779 pts/0 S 0:00 grep amavis</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Vielleicht kann mir jemand helfen?</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Danke!</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#000000" SIZE=2 FACE="Arial">Hansjörg!</FONT></SPAN>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>