Am Freitag, 21. Mai 2004 19:37 schrieb Andreas Winkelmann:
Am Freitag, 21. Mai 2004 19:31 schrieb Al Bogner:
Wie konfiguriere ich es am besten, dass postfix nur intern im
lokalen LAN, aber nicht extern versenden darf? (Zum Versenden
der externen Mails soll ein SMTP-Server des ISP verwendet
werden.)
disable_dns_lookups = yes
relayhost = [mail.isp.tld]
Ist in diesem Fall der lokale bind9 kontraproduktiv? Folgendes Mail
kam an:
echo "Test" | mail -s "Das Mail sollte geblockt werden-"`date
+%y-%m-%dc no-spam@un04q2-nospam.pinguin.uni.cc
May 21 20:38:52 gw postfix/pickup[4666]: A2C2E1B3B7: uid=1000
from=
May 21 20:38:52 gw postfix/cleanup[7488]: A2C2E1B3B7:
message-id=<40AE4CBC.mail5RV1MXX3T@un04q2-nospam.pinguin.uni.cc>
May 21 20:38:52 gw postfix/qmgr[4667]: A2C2E1B3B7:
from=, size=517, nrcpt=1
(queue active)
May 21 20:38:52 gw amavis[5513]: (05513-08) prolong_timer after new
request - timer reset: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-08) SMTP> 220 [127.0.0.1]
ESMTP amavisd-new service ready
May 21 20:38:52 gw amavis[5513]: (05513-08) prolong_timer after
reading SMTP command: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-08) SMTP< EHLO gw.local\r\n
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP> 250-[127.0.0.1]
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP> 250-PIPELINING
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP> 250-SIZE
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP> 250-8BITMIME
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP> 250
ENHANCEDSTATUSCODES
May 21 20:38:52 gw amavis[5513]: (05513-08) prolong_timer after
reading SMTP command: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-08) ESMTP< MAIL
FROM: SIZE=517\r\n
May 21 20:38:52 gw amavis[5513]: (05513-08) prolong_timer after MAIL
FROM received - timer reset: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP> 250 2.1.0 Sender
unread-spam@un04q2-nospam.pinguin.uni.cc OK
May 21 20:38:52 gw amavis[5513]: (05513-09) prolong_timer after
reading SMTP command: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP< RCPT
TO:\r\n
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP> 250 2.1.5
Recipient no-spam@un04q2-nospam.pinguin.uni.cc OK
May 21 20:38:52 gw amavis[5513]: (05513-09) prolong_timer after
reading SMTP command: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP< DATA\r\n
May 21 20:38:52 gw amavis[5513]: (05513-09) prolong_timer after DATA
received - timer reset: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09)
ESMTP::10024 /var/spool/amavis/amavis-20040521T195731-05513:
->
Received: SIZE=517 from
gw.local ([127.0.0.1]) by localhost (gw.local [127.0.0.1])
(amavisd-new, port 10024) with ESMTP id 05513-09 for
; Fri, 21 May 2004 20:38:52
+0200 (CEST)
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP> 354 End data with
<CR><LF>.<CR><LF>
May 21 20:38:52 gw amavis[5513]: (05513-09) ESMTP< .\r\n
May 21 20:38:52 gw amavis[5513]: (05513-09) body hash:
2205e48de5f93c784733ffcca841d2b5
May 21 20:38:52 gw amavis[5513]: (05513-09) Original mail size: 503;
quota set to: 251500 bytes
May 21 20:38:52 gw amavis[5513]: (05513-09) Checking:
->
May 21 20:38:52 gw amavis[5513]: (05513-09) Extracting mime
components
May 21 20:38:52 gw amavis[5513]: (05513-09) mime_decode:
Content-type: text/plain, name:
May 21 20:38:52 gw amavis[5513]: (05513-09) prolong_timer after
mime_decode-1: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09) Checking for banned MIME
types and names
May 21 20:38:52 gw amavis[5513]: (05513-09) decode_parts: level=1,
#parts=1 : part-00001
May 21 20:38:52 gw amavis[5513]: (05513-09) File-type of part-00001:
ASCII text; (.asc)
May 21 20:38:52 gw amavis[5513]: (05513-09) Checking for banned
(contents-based) file types, 1 parts
May 21 20:38:52 gw amavis[5513]: (05513-09) do_ascii: Decoding part
part-00001 (0 items)
May 21 20:38:52 gw amavis[5513]: (05513-09) decompose_part:
part-00001 - atomic
May 21 20:38:52 gw amavis[5513]: (05513-09) prolong_timer after
decoding: remaining time = 300 s
May 21 20:38:52 gw amavis[5513]: (05513-09) Using H+BEDV AntiVir or
CentralCommand Vexira Antivirus: /usr/bin/antivir --allfiles
-noboot -nombr -rs -s
-z /var/spool/amavis/amavis-20040521T195731-05513/parts
May 21 20:38:53 gw amavis[5513]: (05513-09) run_av: /usr/bin/antivir
status=0 (0 ),AntiVir / Linux Version 2.1.0-26\nCopyright (c)
1994-2004 by H+BEDV Datentechnik GmbH.\nAll rights reserved.
\n\nLoading /usr/lib/AntiVir/antivir.vdf ...\n\nVDF version:
6.25.0.74 created 21 May 2004\n\nFor private, non-commercial use
only.\nAntiVir license: ... for ...\n\nchecking drive/path
(list): /var/spool/amavis/amavis-20040521T195731-05513/parts\n\n-----
scan results -----\n
directories: ...1\n...files: ...1\n...alerts: ...0\n
suspicious: ...0\n scan time:
00:00:01\n------------------------\nThank you for using AntiVir.
May 21 20:38:53 gw amavis[5513]: (05513-09) prolong_timer after
virus_scan: remaining time = 300 s
May 21 20:38:53 gw amavis[5513]: (05513-09) white_black_list:
checking sender
May 21 20:38:55 gw poll.tcpip: Starting mail and news send/fetch
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
spam_scan_SA: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) spam_scan: hits=-4.74
tests=BAYES_00,NO_REAL_NAME
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
spam_scan: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) headers CLUSTERING: done
all 1 recips in one go
May 21 20:39:04 gw amavis[5513]: (05513-09) FWD via SMTP:
[127.0.0.1]:10025 ->
May 21 20:39:04 gw postfix/smtpd[7889]: connect from
localhost[127.0.0.1]
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-connect: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-mail-from: remaining time = 300 s
May 21 20:39:04 gw postfix/smtpd[7889]: 396E81B3C6:
client=localhost[127.0.0.1]
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-rcpt-to: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-data: remaining time = 300 s
May 21 20:39:04 gw postfix/cleanup[7488]: 396E81B3C6:
message-id=<40AE4CBC.mail5RV1MXX3T@un04q2-nospam.pinguin.uni.cc>
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-data-end: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
fwd-rundown-1: remaining time = 300 s
May 21 20:39:04 gw postfix/smtpd[7889]: disconnect from
localhost[127.0.0.1]
May 21 20:39:04 gw postfix/qmgr[4667]: 396E81B3C6:
from=, size=959, nrcpt=1
(queue active)
May 21 20:39:04 gw amavis[5513]: (05513-09) mail_via_smtp: 250 2.6.0
Ok, id=05513-09, from MTA: 250 Ok: queued as 396E81B3C6
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
forwarding: remaining time = 300 s
May 21 20:39:04 gw amavis[5513]: (05513-09) Passed,
->
, Message-ID:
<40AE4CBC.mail5RV1MXX3T@un04q2-nospam.pinguin.uni.cc>, Hits: -4.74
May 21 20:39:04 gw amavis[5513]: (05513-09) sending SMTP response:
"250 2.6.0 Ok, id=05513-09, from MTA: 250 Ok: queued as 396E81B3C6"
May 21 20:39:04 gw amavis[5513]: (05513-09)
rmdir_recursively: /var/spool/amavis/amavis-20040521T195731-05513/parts,
excl=1
May 21 20:39:04 gw amavis[5513]: (05513-09) TIMING [total 11578 ms]
- SMTP EHLO: 8 (0%), SMTP pre-MAIL: 8 (0%), SMTP pre-DATA-flush: 16
(0%), SMTP DATA: 30 (0%), body hash: 1 (0%), mime_decode: 38 (0%),
get-file-type: 30 (0%), decompose_part: 7 (0%), parts: 0 (0%),
AV-scan-1: 832 (7%), SA msg read: 7 (0%), SA parse: 7 (0%), SA
check: 10366 (90%), fwd-connect: 109 (1%), fwd-mail-from: 7 (0%),
fwd-rcpt-to: 14 (0%), write-header: 14 (0%), fwd-data: 1 (0%),
fwd-data-end: 49 (0%), fwd-rundown: 10 (0%), unlink-1-files: 23
(0%), rundown: 1 (0%)
May 21 20:39:04 gw amavis[5513]: (05513-09) ESMTP> 250 2.6.0 Ok,
id=05513-09, from MTA: 250 Ok: queued as 396E81B3C6
May 21 20:39:04 gw postfix/smtp[7490]: A2C2E1B3B7:
to=, relay=127.0.0.1
[127.0.0.1], delay=12, status=sent (250 2.6.0 Ok, id=05513-09, from
MTA: 250 Ok: queued as 396E81B3C6)
May 21 20:39:04 gw amavis[5513]: (05513-09) prolong_timer after
reading SMTP command: remaining time = 0 s
May 21 20:39:04 gw amavis[5513]: (05513-09) ESMTP< QUIT\r\n
May 21 20:39:04 gw amavis[5513]: (05513-09) ESMTP> 221 2.0.0
[127.0.0.1] (amavisd) closing transmission channel
May 21 20:39:04 gw postfix/qmgr[4667]: A2C2E1B3B7: removed
May 21 20:39:05 gw postfix/smtp[7490]: 396E81B3C6:
to=,
relay=un04q2-nospam.pinguin.uni.cc[64.191.111.75], delay=1,
status=sent (250 OK id=1BREvE-0002HE-2q)
May 21 20:39:05 gw postfix/qmgr[4667]: 396E81B3C6: removed
May 21 20:39:10 gw poll.tcpip: Done mail and news send/fetch
# postconf -n
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = yes
inet_interfaces = 127.0.0.1 ::1
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
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain
myhostname = gw.local
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_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions =
permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
Al