Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam mam taki problem zainstalowałem serwer poczty wedle opisu [url]http://forum.dug.net.pl/viewtopic.php?id=6331[/url]
Wszysko działało do wczoraj kiedy przestały przychodzić maile sprawdziłem wygląda że coś z amavisem jest nie tak
dorum2:/etc/init.d/amavis restart Stopping amavisd: (not running). Starting amavisd: Insecure directory in $ENV{PATH} while running with -T switch at /usr/sbin/amavisd-new line 2553. (failed).
Ktoś może mi powiedzieć o co chodzi W logach wygląda to tak:
Jun 14 12:58:18 dorum2 postfix/smtpd[4225]: disconnect from localhost[127.0.0.1] Jun 14 12:58:18 dorum2 postfix/smtp[4229]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jun 14 12:58:18 dorum2 postfix/smtp[4229]: 2C2C13FAC97: to=<xxxx@xxxx.pl>, relay=none, delay=0.09, delays=0.05/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Na razie wyłączyłem amavisa i wszytko działa ale prosze o pomoc w rozwiązaniu tego problemu
Offline
Witam ktoś jest w stanie podpowiedzieć o co biega ???
google niec na ten temat nie mówią
Offline
Pokaż [tt]/etc/init.d/amavis[/tt].
Offline
[quote=azhag]Pokaż [tt]/etc/init.d/amavis[/tt].[/quote]
#! /bin/sh # # amavisd /etc/init.d/ initscript for amavisd-new # $Id: amavisd-new.init 800 2006-01-31 00:07:45Z hmh $ # # Copyright (c) 2003 by Brian May <bam@debian.org> # and Henrique M. Holschuh <hmh@debian.org> # Distributed under the GPL version 2 # # # How this thing works: # ${START} must be only what is needed for start-stop-daemon, DO NOT # ADD ANY PARAMETERS HERE! we might use it for --test, for example. # ${STOP} works just like ${START}, --signal is used with it. # # ${PARAMS} are the parameters to give the daemon when really starting # it. ### BEGIN INIT INFO # Provides: amavisd-new # Required-Start: $syslog $network $local_fs # Required-Stop: $syslog $network $local_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts amavisd-new mailfilter # Description: Launches the amavisd-new mailfilter ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/amavisd-new DAEMON2=/usr/bin/perl NAME=amavisd DAEMONNAME=amavisd-new DESC=amavisd test -f ${DAEMON} || exit 0 set -e START="--start --quiet --pidfile /var/run/amavis/${NAME}.pid --name ${DAEMONNAME} --startas ${DAEMON}" STOP="--stop --quiet --pidfile /var/run/amavis/${NAME}.pid --name ${DAEMONNAME}" PARAMS= check_noncompatible_upgrade() { for i in /etc/amavisd.conf /etc/amavis/amavisd.conf ; do if [ -e "${i}.disabled" ] ; then echo "Found incompatible config file flag!" >&2 echo "Due to safety concerns, amavisd-new will not be started." >&2 echo "Refer to /usr/share/doc/amavisd-new/README.Debian for instructions." >&2 exit 1 fi done } createdir() { # $1 = user # $2 = group # $3 = permissions (octal) # $4 = path to directory [ -d "$4" ] || mkdir -p "$4" chown -c -h "$1:$2" "$4" chmod -c "$3" "$4" } fixdirs() { dir=$(dpkg-statoverride --list /var/run/amavis) || { echo "You are missing a dpkg-statoverride on /var/run/amavis. Fix it, otherwise you risk silent breakage on upgrades." >&2 exit 1 } [ -z "$dir" ] || createdir $dir : } cleanup() { [ -d /var/lib/amavis ] && find /var/lib/amavis -maxdepth 1 -name 'amavis-*' -type d \ -exec rm -rf "{}" \; >/dev/null 2>&1 || true [ -d /var/lib/amavis/tmp ] && find /var/lib/amavis/tmp -maxdepth 1 -name 'amavis-*' -type d \ -exec rm -rf "{}" \; >/dev/null 2>&1 || true : } case "$1" in start) echo -n "Starting $DESC: " fixdirs check_noncompatible_upgrade if start-stop-daemon ${START} -- ${PARAMS} start >/dev/null ; then echo "amavisd-new." else if start-stop-daemon --test ${START} >/dev/null 2>&1; then echo "(failed)." exit 1 else echo "(already running)." exit 0 fi fi ;; stop) echo -n "Stopping $DESC: " if start-stop-daemon ${STOP} --retry 10 >/dev/null ; then cleanup echo "amavisd-new." else if start-stop-daemon --test ${START} >/dev/null 2>&1; then echo "(not running)." exit 0 else echo "(failed)." exit 1 fi fi ;; # reload) # echo "Reloading $DESC configuration files." # start-stop-daemon ${STOP} --signal 1 # ;; restart|force-reload) $0 stop exec $0 start ;; debug|debug-sa) mode="$1" echo "Trying to run amavisd-new in ${mode} mode..." fixdirs check_noncompatible_upgrade exec ${DAEMON} ${PARAMS} "${mode}" ;; *) N=/etc/init.d/amavis #echo "Usage: $N {start|stop|restart|reload|force-reload|debug}" >&2 echo "Usage: $N {start|stop|restart|force-reload|debug}" >&2 exit 1 ;; esac exit 0
Offline
[quote=Zawracki]Witam ktoś jest w stanie podpowiedzieć o co biega ???
google niec na ten temat nie mówią[/quote]
Mówią, tylko trzeba troszkę poszukać....
http://debian.linux.pl/threads/19104-Amavis-przesta%C5%82-dzia%C5%82a%C4%87
Adam
Offline
eeee odpal amavisa w trybie debug
/tam/gdzie/jest/amavisd debug
i popatrz przy starcie co sie dzieje,
Offline
Time (s) | Query |
---|---|
0.00014 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00102 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.138.69.39' WHERE u.id=1 |
0.00092 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.138.69.39', 1732704634) |
0.00054 | SELECT * FROM punbb_online WHERE logged<1732704334 |
0.00076 | SELECT topic_id FROM punbb_posts WHERE id=149924 |
0.00005 | SELECT id FROM punbb_posts WHERE topic_id=17050 ORDER BY posted |
0.00076 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=17050 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00186 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=17050 ORDER BY p.id LIMIT 0,25 |
0.00079 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=17050 |
Total query time: 0.00695 s |