• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[ERLEDIGT]Amavisd-new wirft SPAM-Emils in /var/lib/a.....

Skayritarai

Member
Hi,


Ich habe Spamassassin, Amavis-new, Clamav und Procmail mit Postfix und Courier installiert

Nur leider landen die SPAMs nicht in Verzeichnis "$HOME/Maildir/.Junk" wie es im /etc/procmailrc vorgegeben, sondern in "/var/lib/amavis/virusmails".

Bei den anderen Foren bei der Google-Suche hies es das diese Einstellungen dran Schult sind (ein Auszug von der Config-Datei "/etc/amavis/conf.d/20-debian_defaults"):
Code:
$final_virus_destiny      = D_DISCARD;  # (data not lost, see virus quarantine)
$final_banned_destiny     = D_BOUNCE;   # D_REJECT when front-end MTA
$final_spam_destiny       = D_BOUNCE;
$final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
(Anmerkung: Dies ist die Standarteinstellung von Amavisd-New.)

In der SuFu habe ich auch umgeschaut aber die bei den genannten Amavis-New sind veraltete Versionen von Amavisd-New, ich verwende aber die neusten Version.


***EDIT***

Ich habe folgendes in der /etc/amavis/conf.d/50-user eingetragen und Amavisd neu gestartet:
Code:
$final_spam_destiny = D_PASS;                      # Mails werden zugestellt
 @local_domains_acl = ( ".$mydomain","localhost" );   # Problemlösung siehe auch http://forum.ubuntuusers.de/topic/93752/?highlight=amavis

$sa_spam_subject_tag = '***SPAM*** '; 
$sa_tag_level_deflt  = 3.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
Und es hat geklappt.
 

ceegee

Hacker
Hi,

wenn du Spammails nicht verwerfen sondern durchlassen und bei den Usern einsortieren willst, musst du

Code:
$final_spam_destiny       = D_BOUNCE;

ändern in

Code:
$final_spam_destiny       = D_PASS;

Amavis soll ja die Spammails in diesem Fall nur markieren aber trotzdem durchlassen.

Gruß, Christian
 
OP
Skayritarai

Skayritarai

Member
Hi,

Leider hat dies kein Erfolg gehabt. :(
Hier das ergebnis:
Code:
Nov 21 19:52:12 h****** postfix/smtpd[11981]: connect from unknown[190.252.182.186]
Nov 21 19:52:13 h****** postfix/smtpd[11981]: 1D498684187: client=unknown[190.252.182.186]
Nov 21 19:52:16 h****** postfix/cleanup[11985]: 1D498684187: message-id=<b2d9019dbdd0$5b5ddd76$8ab27d0f@pgawtn.com>
Nov 21 19:52:17 h****** postfix/qmgr[4618]: 1D498684187: from=<sherrix@pgawtn.com>, size=17298, nrcpt=1 (queue active)
Nov 21 19:52:17 h****** postfix/smtpd[11981]: disconnect from unknown[190.252.182.186]
Nov 21 19:52:20 h****** amavis[4046]: (04046-04) Blocked SPAM, [190.252.182.186] [190.252.182.186] <sherrix@pgawtn.com> -> <******@skayritarweb.de>, quarantine: r/spam-r+LWdUpKkomK.gz, Message-ID: <b2d9019dbdd0$5b5ddd76$8ab27d0f@pgawtn.com>, mail_id: r+LWdUpKkomK, Hits: 53.792, size: 17298, 2461 ms
Nov 21 19:52:20 h****** postfix/smtp[11986]: 1D498684187: to=<******i@skayritarweb.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.9, delays=4.4/0.02/0.01/2.5, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=04046-04 - SPAM)
Nov 21 19:52:20 h****** postfix/qmgr[4618]: 1D498684187: removed
Nov 21 19:55:37 h****** postfix/anvil[11983]: statistics: max connection rate 1/60s for (smtp:190.252.182.186) at Nov 21 19:52:12
Nov 21 19:55:37 h****** postfix/anvil[11983]: statistics: max connection count 1 for (smtp:190.252.182.186) at Nov 21 19:52:12
Nov 21 19:55:37 h****** postfix/anvil[11983]: statistics: max cache size 1 at Nov 21 19:52:12
Nov 21 20:23:57 h****** postfix/smtpd[12082]: connect from cpe-024-211-233-144.nc.res.rr.com[24.211.233.144]
Nov 21 20:23:59 h****** postfix/smtpd[12082]: NOQUEUE: reject: RCPT from cpe-024-211-233-144.nc.res.rr.com[24.211.233.144]: 550 5.1.1 <******@skayritarweb.de>: Recipient address rejected: User unknown in local recipient table; from=<gewinnhoufy@web.de> to=<******@skayritarweb.de> proto=SMTP helo=<web.de>
Nov 21 20:23:59 h****** postfix/smtpd[12082]: lost connection after RCPT from cpe-024-211-233-144.nc.res.rr.com[24.211.233.144]
Nov 21 20:23:59 h****** postfix/smtpd[12082]: disconnect from cpe-024-211-233-144.nc.res.rr.com[24.211.233.144]
Nov 21 20:27:19 h****** postfix/anvil[12084]: statistics: max connection rate 1/60s for (smtp:24.211.233.144) at Nov 21 20:23:57
Nov 21 20:27:19 h****** postfix/anvil[12084]: statistics: max connection count 1 for (smtp:24.211.233.144) at Nov 21 20:23:57
Nov 21 20:27:19 h****** postfix/anvil[12084]: statistics: max cache size 1 at Nov 21 20:23:57
 
Oben