PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Amavis mag nicht



flachskopf
21.07.03, 22:22
Hallo Wissender,

Ich habe gerade Amavis mit AntiVir auf meinem Suse 8.1 Server mit funktionierendem postfix installiert. Nun klappt aber die Auslieferung der Mails nicht mehr.

Wenn ich postfix neu starte, versucht es die Mails aus dem Queue zu verschicken. Dabei zeigt /var/log/mail folgende Ausgabe:

Jul 21 22:10:25 gandalf postfix/postfix-script: starting the Postfix mail system
Jul 21 22:10:25 gandalf postfix/master[3120]: daemon started
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: 6DC382572A: from=<daniel@meinhomeserver.de>, size=587, nrcpt=1 (queue active)
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: warning: connect to transport amavis: No such file or directory
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: warning: connect to transport amavis: No such file or directory
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: 239B328FB8: from=<>, size=3001, nrcpt=1 (queue active)
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: 4179825204: from=<>, size=3243, nrcpt=1 (queue active)
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: 517C228841: from=<daniel@meinhomeserver.de>, size=593, nrcpt=1 (queue active)
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: A6BB528ACF: from=<daniel@meinhomeserver.de>, size=1336, nrcpt=1 (queue active)
Jul 21 22:10:25 gandalf postfix/qmgr[3124]: E4D29251CD: from=<>, size=2968, nrcpt=1 (queue active)
Jul 21 22:10:28 gandalf postfix/smtp[3134]: E4D29251CD: to=<daniel@meinhomeserver.de>, relay=mailin.hsl.com[81.27.226.254], delay=36057, status=deferred (SOFT BOUNCE - host mailin.hsl.com[81.27.226.254] said: 503 Bad sequence of commands)
Jul 21 22:10:28 gandalf postfix/smtp[3128]: 239B328FB8: to=<daniel@meinhomeserver.de>, relay=mailin.hsl.com[81.27.226.254], delay=10471, status=deferred (SOFT BOUNCE - host mailin.hsl.com[81.27.226.254] said: 503 Bad sequence of commands)
Jul 21 22:10:28 gandalf postfix/smtp[3132]: 4179825204: to=<daniel@meinhomeserver.de>, relay=mailin.hsl.com[81.27.226.254], delay=78275, status=deferred (SOFT BOUNCE - host mailin.hsl.com[81.27.226.254] said: 503 Bad sequence of commands)
Jul 21 22:10:31 gandalf amavisd[3133]: starting. amavis 0.3.12 Thu Jul 17 18:11:21 CEST 2003
Jul 21 22:10:31 gandalf amavisd[3133]: Cannot create temporary directory - check permissions
Jul 21 22:10:31 gandalf amavisd[3133]: do_exit:1571 - ending execution with 75
Jul 21 22:10:32 gandalf postfix/pipe[3130]: A6BB528ACF: to=<flachskopftest@web.de>, relay=vscan, delay=31392, status=deferred (temporary failure)
Jul 21 22:10:32 gandalf amavisd[3131]: starting. amavis 0.3.12 Thu Jul 17 18:11:21 CEST 2003
Jul 21 22:10:32 gandalf amavisd[3131]: Cannot create temporary directory - check permissions
Jul 21 22:10:32 gandalf amavisd[3131]: do_exit:1571 - ending execution with 75
Jul 21 22:10:32 gandalf postfix/pipe[3129]: 517C228841: to=<flachskopftest@web.de>, relay=vscan, delay=350949, status=deferred (temporary failure)

Ich bin als Anfänger momentan ratlos. Anscheinend kann ein temp-Verzeichnis nicht angelegt werden, aber welches?

Bin dankbar für jeden Tip!

Gruß,

Flachskopf

DaGrrr
21.07.03, 22:35
Hallo,

poste mal bitte deine master.cf und main.cf.
Zu finden in /etc/postfix/
Bitte ohne! die Kommentare posten oder als Anhang speichern.

Ohne einen Blick in die Config, kann dir wahrscheinlich niemand helfen.

Grüße
DaGrrr

DaGrrr
21.07.03, 22:37
Alternativ auch hier mal ein Blick reinwerfen:

Zu dem Thema habe ich mal nen Artikel geschrieben.
Ist zwar auf Debian :D angepasst, sollte aber mit kleinen änderungen auf SuSE laufen.

http://www.linuxforen.de/forums/showthread.php?s=&threadid=60485

Grüße
DaGrrr

flachskopf
22.07.03, 01:31
Habe dieses Problem beseitigt (weiß nicht genau wie...)
Da ich aber schon wieder am nächsten festhänge, eröffne ich nachher einen neuen Thread.

Danke für Eure Hilfe!!!













Danke für die Hilfe.

Die angegebene Anleitung hilft mir leider nicht weiter. Ich habe trotz Installation keine amavisd.conf!?

Hier meine main.cf und master.cf:

soft_bounce = yes
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = daniel.meinhomeserver.de
mydomain = meinhomeserver.de
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.1/8
#relay_domains = $mydestination
#relayhost = $mydomain
#local_recipient_maps = $alias_maps unix:passwd.byname
#in_flow_delay = 1s
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail
#mailbox_transport = lmtp:unix:/file/name
#fallback_transport = lmtp:unix:/file/name
#luser_relay = $user@other.host
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
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/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
canonical_maps = hash:/etc/postfix/canonical
content_filter = smtp:127.0.0.1:10025

Der Eintrag bei "content_filter" steht wegen einer Backdoor die ich bei der AntiVir-Installation erstellt habe (beschrieben unter http://www.antivir.de/support/mgtfaq.htm#postfix )
Eine Veränderung zu "content_filter = amavis:" oder "= vscan:" bringen nichts.

smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd -o content_filter=vscan:
# -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=procmail:spamfilter

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}

Auch hier habe ich Anpassungen auf Grund der oben erwähnten Backdoor gemacht, die aber nichts verbessern. Ich blicke langsam nicht mehr durch... jedes HowTo erklärt mir einen anderen Weg, nur keiner funzt :(

Ist es überhaupt möglich postfix, procmail, fetchmail, spamassassin, amavis und antivir so zu konfigurieren, daß sie miteinander arbeiten und nicht die Installation des einen den Tod des anderen bewirkt.
Ich bastele nun schon seit zwei Monaten an meinem Linux-Server und langsam kommen mir Zweifel, ob Linux die richtige Wahl war.


Danke für Deine Tips!

Gruß, Flachskopf