Probleme mit AV Mailgate

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
kalaschnikow
Posts: 12
Joined: 2003-10-23 01:40

Probleme mit AV Mailgate

Post by kalaschnikow » 2003-11-19 15:37

Hiho!

Ich habe mir Mailgate streng nach Anleitung installiert. Postfix habe ich mir auf meiner Suse 8.1 auch in der entsprechenden Version zusammenkompiliert.

Mails, die von außen auf den Server gelangen, werden normal gescannt und in die Postfächer verteilt.

Will ich nun eine Mail über einen Account auf dem Server verschicken, wird diese ausnahmslos mit folgendem Text gebounct:
The Mail Delivery System couldn't deliver this mail because of the following problem:

Final-Recipient: rfc822; blablablubb@domain.de
Last-Attempt-Date: Wed, 19 Nov 2003 15:21:24 +0100
Action: failed
Status: 5.0.0
Diagnostic-Code: 554 <blablablubb@domain.de>: Relay access denied
Vielleicht kennt ja jemand das Problem und hat ne Lösung parat...

Thx

chris76
Moderator
Moderator
Posts: 2015
Joined: 2003-06-27 14:37
Location: Germering

Re: Probleme mit AV Mailgate

Post by chris76 » 2003-11-19 16:45

servas!

AVmailgate von Antivir?
nach denen Ihrem Howto?

Gruß Christian

kalaschnikow
Posts: 12
Joined: 2003-10-23 01:40

Re: Probleme mit AV Mailgate

Post by kalaschnikow » 2003-11-19 16:58

ja, genau

chris76
Moderator
Moderator
Posts: 2015
Joined: 2003-06-27 14:37
Location: Germering

Re: Probleme mit AV Mailgate

Post by chris76 » 2003-11-19 17:25

Welcher MTA? Postfix?
Poste mal deine main.cf, master.cf /etc/services und /etc/avmailgate.conf ohne kommentare oder stell sie irgendwo Online

Gruß Christian

kalaschnikow
Posts: 12
Joined: 2003-10-23 01:40

Re: Probleme mit AV Mailgate

Post by kalaschnikow » 2003-11-19 17:58

main.cf

Code: Select all

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = autoresp
myhostname = meine-domain.de
mydomain = p*******.pureserver.info
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
mynetworks_style = host
local_recipient_maps = $alias_maps unix:passwd.byname
in_flow_delay = 0
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/mail
fast_flush_domains = $relay_domains
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
	 PATH=/usr/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
#suseconfig:
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
inet_interfaces = all
masquerade_domains = waldorfschule-potsdam.de
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = 
strict_rfc821_envelopes = no
#smtpd_recipient_restrictions = permit_mynetworks,check_relay_domains
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination

#SMTPD Auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

#TLS Support
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

#Anti Spam
smtpd_client_restrictions = reject_rbl_client relays.ordb.org
body_checks = pcre:/etc/postfix/body_checks.securitysage
header_checks = pcre:/etc/postfix/header_checks.securitysage

#Antivir
#content_filter = vscan:
#inet_interfaces = all
#content_filter = smtp:127.0.0.1:10024
Nicht wunderm, daß ich den Antivir-Müll auskommentiert habe, ich will, daß postfix läuft :lol:

Master.cf

Code: Select all

smtp	  inet	n	-	n	-	-	smtpd
smtps	  inet	n	-	n	-	-	smtpd
  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission	inet	n	-	n	-	-	smtpd
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628	  inet	n	-	n	-	-	qmqpd
pickup	  fifo	n	-	n	60	1	pickup
cleanup	  unix	n	-	n	-	0	cleanup
qmgr	  fifo	n	-	n	300	1	qmgr
#qmgr	  fifo	n	-	n	300	1	nqmgr
#tlsmgr	  fifo	-	-	n	300	1	tlsmgr
rewrite	  unix	-	-	n	-	-	trivial-rewrite
bounce	  unix	-	-	n	-	0	bounce
defer	  unix	-	-	n	-	0	bounce
flush	  unix	n	-	n	1000?	0	flush
smtp	  unix	-	-	n	-	-	smtp
showq     unix	n	-	n	-	-	showq
error     unix	-	-	n	-	-	error
local	  unix	-	n	n	-	-	local
virtual	  unix	-	n	n	-	-	virtual
lmtp	  unix	-	-	n	-	-	lmtp
#localhost:10025 inet	n	-	n	-	-	smtpd -o content_filter=
#
# 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
  user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
relay	  unix	-	-	n	-	-	smtp
proxymap  unix        -       -       n       -       -       proxymap
#Antivir---------
# =============================================================================
# service         type     private unpriv chroot wakeup  maxproc command + args
#                          (yes)   (yes)  (yes)  (never)  (50)
# =============================================================================
#smtp              inet        n      -      n      -       -     smtpd
# Für AntiVir Maildämon 
#localhost:smtp-backdoor inet  n      -      n      -       -     smtpd -o content_filter=
in der avmailgate.conf ist nich drin, außer das, was im Howto drinstand

Code: Select all

ListenAddress localhost port antivir
ForwardTo SMTP: localhost port smtp-backdoor
AllowSourceRouting YES
langsam bin ich am Verzweifeln :roll:

chris76
Moderator
Moderator
Posts: 2015
Joined: 2003-06-27 14:37
Location: Germering

Re: Probleme mit AV Mailgate

Post by chris76 » 2003-11-19 18:11

die /etc/services hast du da uch was geändert?

Gruß Christian

kalaschnikow
Posts: 12
Joined: 2003-10-23 01:40

Re: Probleme mit AV Mailgate

Post by kalaschnikow » 2003-11-19 18:13

ja, genau nach anleitung

Code: Select all

# Content Filter for postfix
    antivir 10024/tcp #Port for avgated
    smtp-backdoor 10025/tcp #Port for postfix backdoor

kalaschnikow
Posts: 12
Joined: 2003-10-23 01:40

Re: Probleme mit AV Mailgate

Post by kalaschnikow » 2003-11-19 18:58

Hach, ich glaube, ich habe es geschafft. Wie ich mir schon fast dacht, lag es am smtp_auth. Deswegen hat Postfix die antivir Mail abgewiesen.

Also fü alle, die smtp_auth einsetzen. In der master.cf muß fogendes stehen, dann klappts auch mit Mailgate:

Code: Select all

localhost:smtp-backdoor inet n - n - - smtpd -o content_filter= -o smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,check_relay_domains
Danke an alle, die helfen wollten.

chris76
Moderator
Moderator
Posts: 2015
Joined: 2003-06-27 14:37
Location: Germering

Re: Probleme mit AV Mailgate

Post by chris76 » 2003-11-19 19:29

yepp, daran lags bei mir auch, konnte erst gerade daheim nachsehen.
Warst wohl schneller :-)

Ciao Christian

distanzcheck
Posts: 531
Joined: 2003-01-09 08:58
Location: NRW

Re: Probleme mit AV Mailgate

Post by distanzcheck » 2004-02-22 08:42

kann mir bitte jemand sagen wo es das howtoo für amavis mit postfix suse 8.1 gibt, suche hat leider nichts gefunden

Dirk

chris76
Moderator
Moderator
Posts: 2015
Joined: 2003-06-27 14:37
Location: Germering

Re: Probleme mit AV Mailgate

Post by chris76 » 2004-02-22 12:39

Es gibt nicht nur die Forum-Suche, versuche es doch mal hiermit
http://www.google.de/search?sourceid=na ... tfix+howto

In diesem Thread hier geht es IMHO um avmailgate

Ciao Christian