PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : postfix fetchmail amavis



baze
12.05.04, 00:21
Hallo
ich hab ein problem wenn ich mit fetchmail mails abhole dann bekomme ich folgende Fehlermeldung in der /var/log/mail.info


May 11 23:48:42 mailserver amavisd[298]: starting. amavis 0.3.12 Tue May 11 22:26:40 CEST 2004
May 11 23:48:42 mailserver amavisd[298]: Cannot create temporary directory - check permissions
May 11 23:48:42 mailserver amavisd[298]: do_exit:1565 - ending execution with 75
May 11 23:48:42 mailserver postfix/pipe[297]: 48E9F43A89: to=<sebastian@localhost.local>, orig_to=<sebastian@localhost>, relay=vscan, delay=3, status=deferred (temporary failure)


meine master.cf sieht so aus:



vscan unix - n n - - pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
localhost:10025 inet n - n - 10 smtpd -o content_filter=
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -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


meine main.cf so:



soft_bounce = no

queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

myhostname = mailserver.local

inet_interfaces = all

unknown_local_recipient_reject_code = 450

relayhost = mail.da-master.de

alias_maps = hash:/etc/postfix/aliases

mail_spool_directory = /var/spool/mail

debug_peer_level = 2


debugger_command =
PATH=/bin:/usr/bin:/usr/local/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 = postdrop

manpage_directory = /usr/local/man

sample_directory = /etc/postfix

readme_directory = no

smtp_sasl_auth_enable = yes

smtp_sasl_password_maps = hash:/etc/postfix/saslpass

smtp_sasl_security_options = noplaintext

content_filter = vscan:


was muss ich ändern das es geht????

MFG

baze

dipesh
12.05.04, 00:46
Gem.

May 11 23:48:42 mailserver amavisd[298]: Cannot create temporary directory - check permissions

versucht amavis ein temporäres Verzeichnis anzulegen um dort die Mails zu untersuchen. Dies gelingt jedoch nicht. Das Problem liegt also bei amavis. Guck dir doch mal den Inhalt der /etc/amavis/amavisd.conf (oder wo immer die unter deinem System liegt) an und betrachte was bei $MYHOME und $TEMPBASE für Pfade angegeben sind. Eventuell musst du diese Pfade einfach dem Benutzer vscan schenken bzw. überhaupt erstmal erstellen...

p.s. die obrige Angabe bezieht sich auf amavisd-new. Ich denke jedoch amavis wird solch eine Konfigurationsdatei mit der Angabe des Arbeitsverzeichnisses ebenfalls besitzen.

baze
12.05.04, 16:39
also bei mir gibts die datei /etc/amavisd.conf und dann gibts weder $MYHOME $TEMPBASE also was gebs noch für möglichkeiten???

baze
12.05.04, 18:27
ich hab jetzt was geändert in der master.cf


smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
smtp inet n - n - - smtpd -o content_filter=smtp-amavis:[127.0.0.1]:10024
127.0.0.1:10025 inet n - n - - smtpd
-o local_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o strict_rfc821_envelopes=yes
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -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


und jetzt krieg ich den fehler:



May 12 18:33:47 mailserver postfix/smtpd[328]: connect from localhost[127.0.0.1]
May 12 18:33:47 mailserver postfix/smtpd[328]: 873DE43A8A: client=localhost[127.0.0.1]
May 12 18:33:47 mailserver postfix/cleanup[330]: 873DE43A8A: message-id=<40A25218.9090906@web.de>
May 12 18:33:47 mailserver postfix/qmgr[322]: 873DE43A8A: from=<prof.einstein@web.de>, size=1219, nrcpt=1 (queue active)
May 12 18:33:47 mailserver postfix/smtp[333]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 12 18:33:47 mailserver postfix/smtpd[328]: disconnect from localhost[127.0.0.1]
May 12 18:33:47 mailserver postfix/smtp[333]: 873DE43A8A: to=<sebastian@localhost.toha.de.local>, orig_to=<sebastian@localhost>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)



was könnte das sein??? PLEASE HELP ME

*G*

BAZE

Athluxpower
12.05.04, 20:20
>> connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)

Da läuft kein Dienst auf dem Port.

Ich nehme an dein Amavis ist nicht richtig konfiguriert oder läuft erst gar nicht.

Poste doch mal das config file und schau mal in den logs ob da nicht noch ne meldung von amavis selber kommt. Bei der ersten Post sieht man ja das Er gar nicht erst startet.

baze
12.05.04, 21:20
also hier meine amavisd.conf


$uvscan = "";

$antivir = "";

$sophos = "";
$sophos_ide_path = "";

$avp = "";
$AVPDIR = dirname($avp);

$avpdc = "";

$fsav = "/usr/bin/fsav";

$vscan = "";

$vfind = "";

$inocucmd = "";

$rav = "";

$nod32 = "";

$nod32cli = "";

$csav = "";

$vbengcl = "";

$cscmdline = "";

$sophie_sockname = "";

$trophie_sockname = "";

$fprot = "";

$fprotd = "";

$panda = "";

$vexira = "";

$oav = "";

$drweb = "";

$mks = "";

$norman = "";

$clamscan = "";

$clamd = "";

$ikarus = "";


$DO_SYSLOG = "yes";

$LOGDIR = "/var/amavis";
$LOGFILE = "amavis.log";

$log_level = 0;


$warnadmin = "yes";
$warnsender = "yes";
$warnrecip = "yes";

$warn_offsite = "yes";

$requeue_on_scanner_errors = "yes";

@local_domains = qw( local );

$QUARANTINEDIR = "/var/virusmails";

$X_HEADER_TAG = "X-Virus-Scanned";
$X_HEADER_LINE = "by amavisd 0.1";



$arc = "/usr/bin/arc";
$bunzip = "/usr/bin/bunzip2";
$file = "/usr/bin/file";
$lha = "/usr/bin/lha";
$unarj = "/usr/bin/unarj";
$uncompress = "/bin/uncompress";
$unrar = "/usr/bin/unrar";
$zoo = "/usr/bin/zoo";


$QMAILDIR = "/bin";

$smtp_port = "NOT_SET";
$localhost_name = "localhost";
$localhost_ip = "127.0.0.1";

$enable_relay = "yes";

$sendmail_cf_orig = "";

$sendmail_wrapper = "/usr/lib/sendmail";
$sendmail_wrapper_args = "-oMr scanned-ok -i -t";


$MAXLEVELS = 20;

$MAX_ARCHIVE_NESTING = 3;

$MAXFILES = 500;

$threshold = 14;

$mailfrom = 'postmaster@local';

$mailto = 'virusalert@local';

$credits = "no";

die main.cf hab ich eh oben gepostet die hab ich nicht geändert.
sieht jemand nen fehler???

baze
13.05.04, 14:43
Hallo ich find den fehler nicht!

dipesh
13.05.04, 18:40
ps -ef | grep amavis
sollte dir zeigen ob amavis überhaupt läuft. Ggf. mittels
/etc/init.d/amavisd start
erstmal starten.

baze
13.05.04, 20:27
also hab inzwischen an was es liegt nämlich das ich amavisd nicht als root ausführen darf sondern als vscan nur das problem ist das wenn ich es per
su - vscan -c "/usr/sbin/amavisd >/dev/null 2>&1" ausführe dann starte er es nicht und ich weiß nicht an was es liegt keine ahnung evtl weis es jemand von euch!!!

mfg
baze