[Postfixbuch-users] Re: Amavis

Manfred Ockert m.ockert at bss-services.de
Do Mär 18 08:02:51 CET 2004




***
 >06F6E307D8     2160 Wed Mar 17 15:44:30  ich at xx1xx.de
 >>                                                     (transport is 
unavailable)
 >>                                          auchich at xxxx.de


Welcher transport?


 >> smtp-amavis	unix - - n -2 smtp


OK

 >> smtp		inet  n - n - -  smtpd
 >> 127.0.0.1:10025	inet  n - n - -  smtpd -o content_filter=
OK.

 >> mittels Telnet erreicht ich auch
 >> localhost 10024
 >> localhost 10025
 >> host	  25

OK

 >> für mich ist eher die Frage: auf welchem Port liefert er nun beim
 >> Provider ein???
 >>
 >> bei relayhost:25 ??

klar.

 >> in der Main.cf kann ich den Content-Filter ein/ausschalten mittels
 >> "umkommentieren"


postconf -n bitte

-- Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hildebrandt at charite.de


****************************************
postconf -n ergibt
  per Hand ist die alternatice content_filter Einstellung einkommentiert


********************
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
body_checks = pcre:/etc/postfix/body_checks
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
command_time_limit = 100s
config_directory = /etc/postfix
content_filter =
#content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
debug_peer_list = linuxs.zentrum
default_destination_concurrency_limit = 50
defer_transports =
delay_warning_time = 7200s
disable_dns_lookups = yes
fast_flush_domains = $relay_domains
header_checks = pcre:/etc/postfix/header_checks
in_flow_delay = 1s
inet_interfaces = all
local_recipient_maps = $alias_maps unix:passwd.byname
mail_name = Postfix on  Linux
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 204800000
mailbox_transport = lmtp:unix:public/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_domains = ccccccces.de, bbbbbbbbbb.de,zzzzzzzzzzzzz.de
masquerade_exceptions = root
message_size_limit = 102400000
mydomain = zentrum
myhostname = linuxs.zentrum
mynetworks = 192.168.1.0/24, 127.0.0.0/8
mynetworks_style = subnet
newaliases_path = /usr/sbin/sendmail
readme_directory = /usr/share/doc/packages/postfix/README_FILES
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical_maps
relay_domains = $mydestination
relayhost = [smtp.bbbbbbbbb.de]
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /etc/postfix
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_always_send_ehlo = yes
smtp_helo_name = bbbbbbbbb.de
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
smtp_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks 
reject_unauth_destination    check_sender_access 
hash:/etc/postfix/policy_by_senders    permit
smtpd_restriction_classes = may_use_external_mail, only_internal_mail
soft_bounce = yes
transport_maps = hash:/etc/postfix/transport

**************************************************************

und gleich noch die master.cf dazu

mit den Kommentarzeilen liefert er jetzt
ohne Kommentarzeilen scannt  er aber liefert nicht zum Provider

**************************************************************
smtp	  inet	n	-	n	-	-	smtpd
pickup	  unix	n	-	n	60	1	pickup
cleanup	  unix	n	-	n	-	0	cleanup
qmgr	  unix	n	-	n	300	1	qmgr
rewrite	  unix	-	-	n	-	-	trivial-rewrite
bounce	  unix	-	-	n	-	0	bounce
defer	  unix	-	-	n	-	0	bounce
flush	  unix	n	-	n	1000?	0	flush
smtp	  inet	n	-	n	-	-	smtp	
#127.0.0.1:10025 inet n  -       n       -       -       smtpd -o 
content_filter=
showq     unix	n	-	n	-	-	showq
error     unix	-	-	n	-	-	error
local	  unix	-	n	n	-	-	local
virtual	  unix	-	n	n	-	-	virtual
lmtp	  unix	-	-	n	-	-	lmtp
#smtp-amavis	unix	-	-	n	-	2	smtp -o smtp_data_done_timeout=1800 -o 
disable_dns_lookups=yes
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
tlsmgr	  fifo	-	-	n	300	1	tlsmgr
#
# 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/lib/cyrus/bin/deliver -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan     unix  -       n       n       -       10      pipe    flags=q 
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail  unix  -       n       n       -       -       pipe    flags=R 
user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXT=${extension} 
/etc/procmailrc

*****************************************************************************

Muss unbedingt dazu sagen: Zwischen Postfix und Provider steht noch ne 
Firewall. Da sind alle Ports oberhalb 1024 (erstmal) zu!



Fred



Mehr Informationen über die Mailingliste Postfixbuch-users