PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Amavis bei eingehenden Mails



stranger74
12.02.05, 19:28
Hallo,

habe bei mir ein

Postfix/AmaVis/Procmail/Spamassassian/Cyrus-IMAP

Mailserver laufen.
Klappt alles eingentlich wunderbar, bis auf die kleinigkeit das Amavis
irgendwie eingehende Mail nicht checkt, wohl aber mails die meine Kiste verlassen.
Ich denke im mail.log sollte eigentlich amavis auftauchen wenn mails reinkommen. TUT ES ABER NICHT!
Im AMAVIS-STAT kann ich auch rauslesen das eingehende nicht gecheckt werden.

Hat da jemand eine Idee?

stranger74

whistle
12.02.05, 20:36
Hi,
schau mal in deiner amavisd.conf nach @local_domain_acl, ob dort deine Domain steht.
Damit nur die eingehenden Mails durch amavis gehen, gäbe es noch das hier:
main.cf:
smtpd_recipient_restrictions =
check_recipient_access hash: /etc/postfix/recip_access

/etc/postfix/recip_access:
testlab.net FILTER smpt-amavis:[127.0.0.1]:10034

Gruß
Whistle

Tomek
12.02.05, 20:37
Ist denn amavis im Mailheader zu finden? Sollte ungefähr so aussehen:

X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at server.de
Du solltest mal deine main.cf und master.cf von Postix posten.

stranger74
13.02.05, 09:26
Hallo,

also im Header steht nichts drin!

hier mal meine main.cf


# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = yes

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# -- Verzeichnisse --
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
program_directory = /usr/lib/postfix
readme_directory = no
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq

# -- Benutzer --
mail_owner = postfix
setgid_group = postdrop

# -- Host und Domain --
myhostname = hostname
mydomain = domainname

# -- Mail senden --
myorigin = $myhostname
default_transport = smtp
#local_recipient_maps = unix:passwd.byname $alias_maps
#smtpd_client_restrictions = permit_mynetworks, reject
relayhost = auth.mail.onlinehome.de
#disable_dns_lookup = yes
defer_transport = smtp

# -- SMTP-AUTH --
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_always_send_ehlo = yes
smtp_sasl_security_options = noanonymous

# -- Mail empfangen --
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain

# -- Trust und Relay Control --
mynetworks = 127.0.0.0/8

# -- Aliasnamen --
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

# -- Postmaster --
luser_relay = postmaster@$myhostname

# -- Zustellung --
content_filter = smtp-amavis:[127.0.0.1]:10024
mailbox_transport = cyrus
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
recipient_delimiter = +


und meine master.cf


================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
#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 oqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#

#Procmail
procmail unix - n n - - pipe
flags=R user=mail argv=/usr/bin/procmail -t -m USER=${user}
EXTENSION=${extension} /etc/procmailrc

#Cyrus
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}

#smtp-amavis
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_tomeout=1200
-o disable_dns_lookups=yes

maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
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
#tlsmgr fifo - - n 300 1 tlsmgr
#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


ich habe momentan keine Idee woran es liegen könnte

stranger74

whistle
13.02.05, 10:43
Hmmm, in /var/log/mail steht bei einer eintreffenden Mail nicht, das er sie über 127.0.0.1 leitet?
Gruß
Whistle

stranger74
13.02.05, 11:20
Hi,

Nein!
Steht nichts drin, nur wenn ich ne mail rausschicke nur dann
hängt amavis mit drin.

gruss

stranger74

stranger74
13.02.05, 17:33
Hi,

so wie´s ausschaut gibt fetchmail direkt an procmail weiter
und postfix kommt gar nicht mehr dazu die mail an amavis zu übergeben.
Nur weiss ich nicht wie ich das umgehen kann.
Ich hoffe ihr könnt mir helfen.

gruss

stranger74