PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : "Mail loops back" bei Postfix + AMaViS + Cyrus



Dominik.F
08.03.04, 14:54
Hallo!
Ich habe einen Mailserver mit Postfix (mit MySQL), AMaViS und Cyrus-IMAPD aufgesetzt. Das Teil läuft, super, solange ich den content_filter raus lasse.
Sobald ich ihn mit reinnehme, bekomme ich in den Logs folgenden Fehler:

----------------------------------------------------------------------------------------------------------
Mar 8 14:32:47 MAIL postfix/smtpd[2813]: connect from unknown[192.168.1.247]
Mar 8 14:32:47 MAIL postfix/smtp[2829]: warning: host mail.testnetz.net[192.168
.1.247] greeted me with my own hostname mail.testnetz.net
Mar 8 14:32:47 MAIL postfix/smtp[2829]: warning: host mail.testnetz.net[192.168
.1.247] replied to HELO/EHLO with my own hostname mail.testnetz.net
Mar 8 14:32:47 MAIL postfix/smtp[2829]: 0C7051C42F: to=<dominik.testdomain.net@
mail.testnetz.net>, orig_to=<dominik@testdomain.net>, relay=mail.testnetz.net[19
2.168.1.247], delay=0, status=bounced (mail for mail.testnetz.net loops back to
myself)
Mar 8 14:32:47 MAIL postfix/smtpd[2813]: lost connection after EHLO from unknow
n[192.168.1.247]
Mar 8 14:32:47 MAIL postfix/smtpd[2813]: disconnect from unknown[192.168.1.247]
----------------------------------------------------------------------------------------------------------

Meine main.cf:

setgid_group=mail
mynetworks=192.168.1.0/24, 127.0.0.0/8
myhostname=mail.testnetz.net
mydomain=testnetz.net
mydestination = mysql:/etc/postfix/mysql-mydestination.cf
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
content_filter=vscan:[127.0.0.1]:100025
virtual_alias_maps = hash:/etc/postfix/virtual, mysql:/etc/postfix/mysql-virtual.cf
sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf

Meine master.cf:

# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
#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
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - 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.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus unix - n n - - pipe
user=cyrus argv=/usr/cyrus/bin/deliver -e -r ${sender} -m ${extension} user.${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 - - pipe flags=q user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}
localhost:10025 inet n - y - - smtpd -o content_filter=

----------------------------------------------------------------------------------------------------------

Ich wäre echt sehr dankbar für eine Lösung! Probiere schon ewig herum aber bekomme das einfach nicht hin!

thom01
09.03.04, 08:12
content_filter=vscan:[127.0.0.1]:100025

Bei mir sieht das so aus:

content_filter=smtp-amavis:[127.0.0.1]:10024

(Debian, daher anderer Name. Eine Null zuviel, außerdem sollte hier nicht der gleiche Port wie in der main.cf stehen - einer für rein, einer für raus... -> main.cf dann antsprechend auch port 10025 statt 100025. Ich meine, so viele Ports gibt es nicht :confused: )