Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
tharider
Posts: 15 Joined: 2004-05-12 12:49
Post
by tharider » 2005-04-08 18:50
Habe da ein kleines Problem im Zusammenhang mit Postfix, amavisd-new, clamav und spamassassin.
Und zwar fehlen mir etliche X-Spam Header und ich weiß einfach nicht mehr weiter, wie ich die in meine Mail-Header mitreinbekommen soll.
Zur Zeit bekomme ich lediglich folgende X-Spam Header in meinen Mails:
Code: Select all
X-Virus-Scanned: by amavisd-new (Debian Linux) at serv-2.servername-geändert.de
X-Spam-Status: No, hits=1.4 tagged_above=-1000.0 required=5.0
tests=MISSING_SUBJECT, NO_REAL_NAME, X_PRIORITY_HIGH
X-Spam-Level: *
Ich möchte aber gerne zusätzlich folgende X-Spam Header drinnen haben:
Code: Select all
X-Spam-Flag: YES
X-Spam-Checker-Version:
X-Spam-Report:
Kann mir irgendjemand dabei helfen, dieses Problem in den Griff zu bekommen?
tharider
Posts: 15 Joined: 2004-05-12 12:49
Post
by tharider » 2005-04-09 11:24
Danke für die zahlreichen Antworten, da muss ich mich wohl woanders um Hilfe bemühen.
chris76
Posts: 1878 Joined: 2003-06-27 14:37
Location: Germering
Post
by chris76 » 2005-04-09 11:48
ThaRider wrote: Danke für die zahlreichen Antworten, da muss ich mich wohl woanders um Hilfe bemühen.
Ungeduldig bist du aber nicht oder? :evil:
Gruß Christian
BofH excuses: YOU HAVE AN I/O ERROR -> Incompetent Operator error
tharider
Posts: 15 Joined: 2004-05-12 12:49
Post
by tharider » 2005-04-09 12:20
Sorry, aber habe, wie du sehen kannst schon gestern abend gepostet.
Außerdem bin ich es nunmal gewohnt, in einem so gut besuchten Forum eine Antwort innerhalb von 12 Std. zu erhalten.
Ich denke, es ist einfach diese "Warum postest du überhaupt, bemüh dich mal lieber selber, um eine Antwort zu erhalten" Mentalität.
Aber ich poste, weil ich bisher nix entsprechendes gefunden habe, vielleicht suche ich auch einfach nur falsch.
Joe User
Project Manager
Posts: 11191 Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
Post
by Joe User » 2005-04-09 12:54
Read my sig...
tharider
Posts: 15 Joined: 2004-05-12 12:49
Post
by tharider » 2005-04-09 14:44
Postfix main.cf
Code: Select all
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
myorigin = serv-2.kochipnet.de
mydomain = serv-2.kochipnet.de
myhostname = serv-2.kochipnet.de
mydestination = $myhostname, localhost.$mydomain, $mydomain, $transport_maps
mynetworks = 127.0.0.1/8
alias_maps = $alias_database
virtual_mailbox_base = /var/kunden/mail/
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
unknown_local_recipient_reject_code = 550
virtual_mailbox_limit = 52428800
mailbox_size_limit = 52428800
message_size_limit = 52428800
smtpd_helo_required = yes
content_filter = amavis:[127.0.0.1]:10024
smtpd_error_sleep_time = 15s
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
Postfix master.cf
Code: Select all
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ==========================================================================
smtp inet n - - - - smtpd
#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
amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - 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,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
#
# 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
tharider
Posts: 15 Joined: 2004-05-12 12:49
Post
by tharider » 2005-04-09 14:46
Spamassassin local.cf
Code: Select all
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
###########################################################################
#
# rewrite_header Subject *****SPAM*****
# report_safe 1
# trusted_networks 212.17.35.
# lock_method flock
#user_scores_dsn DBI:mysql:spamassassin:localhost
#user_scores_sql_username spamassassin
#user_scores_sql_password aaliyah
#user_scores_sql_table userpref
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, hits=_HITS_ required=_REQD_ tests=_TESTSSCORES(,)_ bayes=_BAYES_ relaysuntrusted=_RELAYSUNTRUSTED_ autolearn=_AUTOLEARN_ scanned=[_DATE_] version=_VERSION_ postmaster=_CONTACTADDRESS_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_
spam_level_stars 1
dns_available no
# Encapsulate spam in an attachment
report_safe 1
# Use terse version of the spam report
use_terse_report 1
# Enable the Bayes system
use_bayes 1
# Enable Bayes auto-learning
auto_learn 1
bayes_auto_learn 1