[Postfixbuch-users] Ausgehende Mail nicht durch Amavis

Andreas Pothe mailingliste-postfixbuch at pothe.com
Sa Jan 27 11:31:32 CET 2007


Hallo,

Vor einiger Zeit habe ich es mal gelesen (ich meine sogar, hier auf dieser
Liste), allerdings leider nicht gemerkt und jetzt auch nicht wiedergefunden
:-(

Wie bringe ich Postfix bei, dass Mails von per SMTP-AUTH identifizierte
Nutzer sowie lokal erzeugte E-Mails NICHT von Amavisd-new auf SPAM überprüft
werden?

Hintergrund: Wenn ich mal wieder unterwegs bin und von einer
E-Plus-UMTS/GPRS-IP versende, werden die Mails immer als SPAM erkannt, d. h.
bei Zustellung an einen lokalen User mit "***SPAM***" im Titel versehen, da
Amavis trotz erfolgreicher SMTP-AUTH-Überprüfung an Postfix diese auf Spam
überprüft (eigentlich ja auch logisch, da Amavis ja nicht weiß, dass diese
authentifiziert zugestellt wurde). Das sieht dann z. B. so aus:

==== SNIP ====
Return-Path: <xxxx>
X-Original-To: xxxx
Delivered-To: xxxx
Received: from localhost (localhost [127.0.0.1])
	by mailserver.pothe.de (Postfix) with ESMTP id F086619462F
	for <xxxx>; Sat, 27 Jan 2007 09:57:26 +0100 (CET)
Received: from mailserver.pothe.de ([127.0.0.1])
 by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 13308-08 for <xxxx>; Sat, 27 Jan 2007 09:57:17 +0100 (CET)
Received: from notebook (gprs-pool-x-xxx.eplus-online.de [212.23.xxx.xxx])
	by mailserver.pothe.de (Postfix) with ESMTP id 80AA319462E
	for <andreas at pothe.de>; Sat, 27 Jan 2007 09:57:13 +0100 (CET)
From: "Andreas Pothe, Software" <xxxx>
To: <xxxx>
Subject: ***SPAM*** test
Date: Sat, 27 Jan 2007 09:57:07 +0100
Organization: Andreas Pothe, Software
Message-ID: <005101c741f1$263aa5d0$72aff170$@de>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcdB8R3gI9PzmfKDRM2nsidzxivavg==
Content-Language: de
X-Virus-Scanned: amavisd-new at mailserver.pothe.de
X-Spam-Status: Yes, score=6.289 tagged_above=-999 required=3.6
 tests=[BAYES_05=-1.11, RCVD_IN_SORBS_DUL=2.046, RCVD_IN_SORBS_WEB=1.456,
 RCVD_IN_XBL=3.897]
X-Spam-Score: 6.289
X-Spam-Level: ******
X-Spam-Flag: YES
==== SNIP ====


# postconf -n

alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 1
defer_code = 451
defer_transports =
delay_warning_time = 4h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = 88.198.178.170 127.0.0.1
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
maximal_backoff_time = 3600s
message_size_limit = 10240000
minimal_backoff_time = 301s
mydestination = $myhostname, localhost.$mydomain, mailserver.pothe.com,
mailserver.pothe.de, mail.pothe.com
mydomain = mailserver.pothe.de
myhostname = mailserver.pothe.de
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_destination_concurrency_limit = 5
smtp_helo_name = mailserver.pothe.de
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions =
smtpd_hard_error_limit = 3
smtpd_helo_required = yes
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,  reject_unauth_pipelining,  check_sender_access
hash:/etc/postfix/sender_access,  check_client_access
hash:/etc/postfix/client_checks_blacklist,  reject_non_fqdn_sender,
reject_non_fqdn_recipient,  reject_unknown_recipient_domain,
reject_unauth_destination,  reject_unlisted_recipient,  check_client_access
hash:/etc/postfix/client_checks_whitelist,  reject_unknown_sender_domain,
reject_unknown_client,  reject_rbl_client zen.spamhaus.org,
reject_rbl_client ix.dnsbl.manitu.net,  reject_rbl_client
dynablock.njabl.org,  reject_rhsbl_sender blackhole.securitysage.com,
reject_rhsbl_sender nomail.rhsbl.sorbs.net,  check_policy_service
inet:127.0.0.1:10023
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions =
smtpd_soft_error_limit = 1
smtpd_use_tls = no
soft_bounce = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 550
unknown_relay_recipient_reject_code = 550
unknown_virtual_alias_reject_code = 550
unknown_virtual_mailbox_reject_code = 550
unverified_recipient_reject_code = 550
unverified_sender_reject_code = 450
virtual_gid_maps = mysql:/etc/postfix/ids.mysql
virtual_mailbox_base = /var/spool/maildirs
virtual_mailbox_domains = hash:/etc/postfix/virtual
virtual_mailbox_maps = mysql:/etc/postfix/mailbox.mysql
virtual_minimum_uid = 5000
virtual_uid_maps = mysql:/etc/postfix/ids.mysql

TIA & CU
Andreas




Mehr Informationen über die Mailingliste Postfixbuch-users