Probleme mit Amavis und avmailgate

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
klausi01
Posts: 115
Joined: 2003-05-19 22:28

Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-29 20:38

Oct 29 20:38:45 p15121968 amavis[26295]: mail forwarding failed, retry; Failure to connect to local SMTP port: Bad file descriptor at /usr/sbin/amavisd line 979, <GEN0> line 12.
Oct 29 20:38:45 p15121968 amavis[26295]: do_exit:355 - ending execution with 75
Oct 29 20:38:46 p15121968 postfix/pipe[26293]: 6627D1A3604: to=<root@localhost>, relay=amavis, delay=30, status=deferred (temporary failure)
Oct 29 20:48:01 p15121968 amavis[26817]: Virus scanner failure: /usr/lib/AntiVir/antivir (error code: 214)
Ich empfange absolut keine mail mehr ..weder extern noch intern ... welche daten braucht ihr hier genau um mit helfen zu können ??
Oct 29 20:45:32 p15121968 amavis[26668]: do_exit:355 - ending execution with 75
Oct 29 20:45:32 p15121968 postfix/pipe[26273]: BCBB11A360E: to=<root@localhost>, relay=amavis, delay=31, status=deferred (temporary failure)

captaincrunch
Userprojekt
Userprojekt
Posts: 7225
Joined: 2002-10-09 14:30
Location: Dorsten

Re: Probleme mit Amavis und avmailgate

Post by captaincrunch » 2003-10-29 20:47

Benötigte Infos :
cat /etc/postfix/master.cf
cat /etc/postfix/main.cf | grep -v ^#
lsof -i :10024
lsof -i :25
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-29 20:57

cat /etc/postfix/master.cf
#smtp inet n - n - - smtpd
localhost:smtp-backdoor inet n - n - - smtpd -o content_filter=
#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
#
# 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
amavis unix - n n - 10 pipe
user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}
cat /etc/postfix/main.cf | grep -v ^#
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

append_dot_mydomain = no
myhostname = smtp.p15121968.pureserver.info
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = localhost
mydestination = clansnet.de, p15121968.pureserver.info, localhost.pureserver.info, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
relay_domains =
mydomain = clansnet.de
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
amtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
content_filter = amavis:


virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
lsof -i :10024

gibt keine daten her ..

lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
avgated 27179 root 4u IPv4 5331845 TCP *:smtp (LISTEN)

EDIT !!


Jetzt sehe ich in meiner mail.log :

Oct 29 21:01:47 p15121968 avgated[27676]: Relaying denied for rcpt chris@domain.de

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-29 21:28

Ich hab mitlerweile feststellen müssen, das mein postfix gar nicht läuft !

In der mail.log steht :
Oct 29 21:28:51 p15121968 postfix/master[29189]: fatal: unknown service: smtp-backdoor/tcp
EDIT :

Postfix läuft jetzt wieder ...

Aber ich bekomme nach wievior folgende meldungen in der mail.log :
Oct 29 21:43:12 p15121968 amavis[30547]: mail forwarding failed, retry; Failure to connect to local SMTP port: Bad file descriptor at /usr/sbin/amavisd line 979, <GEN0> line 12.
und wenn ich eine mail an meinen server sende :
Oct 29 21:42:56 p15121968 avgated[30570]: connection from http://www.adxxl.com
Oct 29 21:42:56 p15121968 avgated[30570]: Relaying denied for rcpt user@domain.de
Oct 29 21:42:57 p15121968 avgated[30570]: connection to http://www.adxxl.com closed

EDIT 2 !!!


Anscheinend liegts am Antivir :
Oct 29 22:19:01 p15121968 amavis[485]: All virus scanners failed!
Oct 29 22:19:01 p15121968 amavis[485]: do_exit:959 - ending execution with 75
und danach wieder die deferred meldung ...

captaincrunch
Userprojekt
Userprojekt
Posts: 7225
Joined: 2002-10-09 14:30
Location: Dorsten

Re: Probleme mit Amavis und avmailgate

Post by captaincrunch » 2003-10-29 22:20

Du bist vermutlich nach der avmailgate-Anleitung vorgegangen, oder ? Sofern amavis ins Spiel kommt, muss Postfix wieder auf Port 25 lauschen, die Mails an amavis übergeben, und dieser muss sie dann dem Virenscanner vor die Füße werfen.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-29 22:21

ja genau ..

was genau muss ich denn ändern ??

captaincrunch
Userprojekt
Userprojekt
Posts: 7225
Joined: 2002-10-09 14:30
Location: Dorsten

Re: Probleme mit Amavis und avmailgate

Post by captaincrunch » 2003-10-29 22:25

Gute Frage. Diese Kombination habe ich bisher noch nie zu Gesicht bekommen, kann also nur raten :

Musst du avmailgate davon überzeugen, auf einem Port zu lauschen, auf dem es Mails vom amavis entgegennehmen kann. Diese Einstellung solltest du im Configfile von avmailgate finden.

Verwendest du den normalen amavis oder amavisd-new ?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-29 22:26

den normalen ..da ich kein amavisd-new packet finden konnte mit meinem apt ...

EDIT :

Ich nap, hatte ne falsche antivir Version installiert....

aber jetzt hab ich ein anderes problem ..mails versenden funktioniert wieder ...
Nur empfangen scheint so eine sache zu sein ..ein paar mails kommen an, bei anderen erhalte ich in der mail.log folgendes :
Oct 30 00:22:47 p15121968 postfix/local[15347]: 035EB1A341A: to=<alias@meinedomain.de>, relay=local, delay=0, status=bounced (unknown user: "alias")

und hier nochmal meine aktuellen files :

master.cf :
smtp inet n - n - - smtpd
localhost:10025 inet n - n - - smtpd -o content_filter=
#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
#
# 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}

amavis unix - n n - 10 pipe
user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}

# 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
main.cf :
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

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = p15121968.pureserver.info.pureserver.info
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = clansnet.de, p15121968.pureserver.info, localhost.pureserver.info, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
relay_domains =
mydomain = clansnet.de
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
amtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
content_filter = amavis:

### CONFIXX POSTFIX ENTRY ###

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains

### /CONFIXX POSTFIX ENTRY ###

Sobald ich die amavis einträge auf der main.cf und master.cf entferne, funktioniert wieder alles.

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-30 11:28

Im moment klappt " fast " alles.

Ich bekomme nur bei einem einzigen User die meldung :
Oct 31 14:09:56 pXXXXXXXX postfix/local[30854]: D2C5F1A3411: to=<klausi@domain.de>, relay=local, delay=0, status=bounced (unknown user: "klausi")
User klausi ist aber auf dieser domain im confixx eingerichtet.
Warum findet er den dann nicht ???

Main.cf :
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

# appending .domain is the MUA's job.
append_dot_mydomain = no
myhostname = clansnet.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = localhost
mydestination = domain.de, pxxxxxxxx.pureserver.info, localhost.pureserver.info, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
relay_domains =
mydomain = domain.de
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
amtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains, reject_unauth_destination
content_filter = amavis:
### CONFIXX POSTFIX ENTRY ###

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains

### /CONFIXX POSTFIX ENTRY ###
append_at_myorigin = no
Master.cf
smtp inet n - n - - smtpd
127.0.0.1:10024 inet n - n - - smtpd -o content_filter=
-o content_filter=
-o local_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200s
-o smtp_never_send_ehlo=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8


#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
#
# 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}
#filter unix - n n - - pipe flags=Rq user=mail
# argv=/usr/sbin/amavis ${sender} --${recipient}
amavis unix - n n - 10 pipe
user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}

klausi01
Posts: 115
Joined: 2003-05-19 22:28

Re: Probleme mit Amavis und avmailgate

Post by klausi01 » 2003-10-31 14:23

Gibts hier niemanden der mir weiterhelfen knn ? ich hab schon gegoogled wie ein verückter, aber konnte leider nichts finden was mich weiterbrachte ...

Noch mehr fehler :-(
Oct 31 15:53:31 p15121968 postfix/qmgr[4212]: 19C041A3414: from=<www-data>, size=921, nrcpt=1 (queue active)
Oct 31 15:53:31 p15121968 postfix/smtpd[4251]: disconnect from localhost[127.0.0.1]
Oct 31 15:53:31 p15121968 postfix/smtp[4253]: 19C041A3414: to=<franco.a@gmx.de>, relay=mx0.gmx.net[213.165.64.100], delay=0, status=bounced (host mx0.gmx.net[213.165.64.100] said: 550 {mx014} Complete address with domain, please)
Oct 31 15:53:31 p15121968 postfix/cleanup[4244]: 6A0991A3413: message-id=<20031031145331.6A0991A3413@clansnet.de>
Oct 31 15:53:31 p15121968 postfix/qmgr[4212]: 6A0991A3413: from=<>, size=2539, nrcpt=1 (queue active)
Oct 31 15:53:31 p15121968 postfix/local[4232]: 6A0991A3413: to=<klausi@clansnet.de>, relay=local, delay=0, status=bounced (unknown user: "klausi")