14552 amavisd-new can't start again - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old May 17th, 2010, 14:43
xwwu xwwu is offline
Member
 
Join Date: Nov 2008
Posts: 148
Thanks: 2
Thanked 0 Times in 0 Posts
Default amavisd-new can't start again

Dear Friends:

Amavisd can't start again:

Code:
# /usr/local/etc/rc.d/amavisd start
Starting amavisd.
# /usr/local/etc/rc.d/amavisd restart
amavisd not running?
Starting amavisd.
#
Quite simple, no any clue. How to fix it?

I remember when upgrade python, there are some problem with some modules, then the server ask me if ignore the problem, I reply yes.

Regards!

Xwwu

Last edited by DutchDaemon; May 17th, 2010 at 15:38. Reason: use [code] tags!
Reply With Quote
  #2  
Old May 17th, 2010, 14:48
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Perhaps you should look in a few log files to see why it's failing to start?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old May 17th, 2010, 14:58
xwwu xwwu is offline
Member
 
Join Date: Nov 2008
Posts: 148
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks very much for your reply. No log file regarding amavisd-new.
but there is a sentence regarding amvisd-new in maillog:

Code:
May 17 21:52:15 xxx postfix/error[1332]: EC5352DE97:to=<xxx@xxx.xxx.xxx.xxx>, relay=none, delay=4690, delays=4690/0.07/0/0, dsn=4.4.1, 
status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Last edited by DutchDaemon; May 17th, 2010 at 15:39. Reason: format your posts, please
Reply With Quote
  #4  
Old May 18th, 2010, 01:14
plamaiziere plamaiziere is offline
Member
 
Join Date: Jan 2009
Location: Rennes, France
Posts: 174
Thanks: 1
Thanked 39 Times in 29 Posts
Default

Quote:
Originally Posted by xwwu View Post
Thanks very much for your reply. No log file regarding amavisd-new.
You should configure amavisd-new to log into syslog: (they will be in /var/log/mailog)

amavisd.conf:
Code:
# Section III - Logging
#

# true (e.g. 1) => syslog;  false (e.g. 0) => logging to file
$DO_SYSLOG = 1;                   # (defaults to false)
#$SYSLOG_LEVEL = 'user.info';     # (facility.priority, default 'mail.info')

#NOTE: levels are not strictly observed and are somewhat arbitrary
# 0: startup/exit/failure messages, viruses detected
# 1: args passed from client, some more interesting messages
# 2: virus scanner output, timing
# 3: server, client
# 4: decompose parts
# 5: more debug details
$log_level = 5;           # (defaults to 0)
Reply With Quote
  #5  
Old May 17th, 2010, 15:41
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,824
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

Increase verbosity with sh -x /usr/local/etc/rc.d/amavisd start or even sh -xv /usr/local/etc/rc.d/amavisd start and see whether any error or problem shows up.

And be so kind to format your posts.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #6  
Old May 17th, 2010, 21:46
xwwu xwwu is offline
Member
 
Join Date: Nov 2008
Posts: 148
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks your reply very much.

The output is:
Code:
#amavis_p0fanalyser_enable="YES"
#amavis_p0fanalyser_p0f_filter="tcp dst port 25"
clamav_clamd_enable="YES"
+ clamav_clamd_enable=YES
clamav_freshclam_enable="YES"
+ clamav_freshclam_enable=YES
spamd_enable="YES"
+ spamd_enable=YES
webmin_enable="YES"
+ webmin_enable=YES
snmpd_enable="YES"
+ snmpd_enable=YES
#snmpd_flagse="-a -p /var/run/snmpd.pid"
snmptrapd_enable="YES"
+ snmptrapd_enable=YES
#snmptrapd_flags="-a -p /var/run/snmptrapd.pid"
#mrtg_daemon_enable="YES"
#nfsuserd_enable="YES"
#nfscbd_enable="YES"
#gssd_enable="YES"
inetd_enable="YES"
+ inetd_enable=YES
+ sourced_files=:/etc/rc.conf::/etc/rc.conf.local:
+ [ -r /etc/rc.conf.local ]
+ _rc_conf_loaded=true
+ [ -f /etc/rc.conf.d/amavisd ]
+ [ -n '' ]
run_rc_command "$1"
+ run_rc_command start
+ _return=0
+ rc_arg=start
+ [ -z amavisd ]
+ shift 1
+ rc_extra_args=''
+ _rc_prefix=''
+ eval '_override_command=$amavisd_program'
+ _override_command=''
+ command=/usr/local/sbin/amavisd
+ _keywords='start stop restart rcvar reload'
+ rc_pid=''
+ _pidcmd=''
+ _procname=/usr/local/sbin/amavisd
+ [ -n /usr/local/sbin/amavisd ]
+ [ -n '' ]
+ _pidcmd='rc_pid=$(check_process /usr/local/sbin/amavisd )'
+ [ -n 'rc_pid=$(check_process /usr/local/sbin/amavisd )' ]
+ _keywords='start stop restart rcvar reload status poll'
+ [ -z start ]
+ [ -n '' ]
+ eval 'rc_flags=$amavisd_flags'
+ rc_flags=''
+ eval '_chdir=$amavisd_chdir' '_chroot=$amavisd_chroot' '_nic'_groups=$amavisd_groups'
+ _chdir='' _chroot='' _nice='' _user='' _group='' _groups=''
+ [ -n '' ]
+ eval 'rc_pid=$(check_process' /usr/local/sbin/amavisd ')'
+ check_process /usr/local/sbin/amavisd
+ _procname=/usr/local/sbin/amavisd
+ _interpreter=''
+ [ -z /usr/local/sbin/amavisd ]
+ _find_processes /usr/local/sbin/amavisd . -ax
+ [ 3 -ne 3 ]
+ _procname=/usr/local/sbin/amavisd
+ _interpreter=.
+ _psargs=-ax
+ _pref=''
+ [ . != . ]
+ _procnamebn=amavisd
+ _fp_args='_arg0 _argv'
+ _fp_match='case "$_arg0" in
                    $_procname|$_procnamebn|${_procnamebn}:|"(
+ _proccheck='          /bin/ps -ww 2>/dev/null -o pid= -o jid
                while read _npid _jid _arg0 _argv; do
                        case "$_arg0" in
                    $_procname|$_procnamebn|${_procnamebn}:|"(
                                if [ "$JID" -eq "$_jid" ];
                                then echo -n "$_pref$_npid";
                                _pref=" ";
                                fi
                                ;;
                        esac
                done'
+ eval /bin/ps -ww '2>/dev/null' -o pid= -o jid= -o command= -in '$_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"o -n '"$_pref$_npid";' '_pref="' '";' fi ';;' esac done
+ /bin/ps -ww -o pid= -o jid= -o command= -ax
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ read _npid _jid _arg0 _argv
+ rc_pid=''
+ [ start != start ]
+ [ -n amavisd_enable -a start != rcvar ]
+ checkyesno amavisd_enable
+ eval '_value=$amavisd_enable'
+ _value=YES
+ debug 'checkyesno: amavisd_enable is set to YES.'
+ return 0
+ eval '_cmd=$start_cmd' '_precmd=$start_precmd' '_postcmd=$st
+ _cmd='' _precmd=start_precmd _postcmd=''
+ [ -n '' ]
+ [ -z '' -a -n '' ]
+ [ ! -x /usr/local/sbin/amavisd ]
+ _run_rc_precmd
+ check_required_before start
+ local _f
+ [ ! -r /usr/local/etc/amavisd.conf ]
+ return 0
+ [ -n start_precmd ]
+ debug 'run_rc_command: start_precmd: start_precmd '
+ eval 'start_precmd '
+ start_precmd
+ rm -rf '/var/amavis/tmp/*' /var/amavis/tmp/. /var/amavis/tmp
+ true
+ [ ]
+ _return=0
+ [ 0 -ne 0 ]
+ check_required_after start
+ local _f _args
+ return 0
+ return 0
+ check_startmsgs
+ [ -n '' ]
+ return 0
+ echo 'Starting amavisd.'
Starting amavisd.
+ [ -n '' ]
+ _doit='/usr/local/sbin/amavisd  '
+ [ -n '' ]
+ [ -n '' ]
+ _run_rc_doit '/usr/local/sbin/amavisd  '
+ debug 'run_rc_command: doit: /usr/local/sbin/amavisd  '
+ eval '/usr/local/sbin/amavisd  '
+ /usr/local/sbin/amavisd
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n '' ]
+ return 0
+ return 0
Reply With Quote
  #7  
Old May 18th, 2010, 00:25
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,824
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

Well, everything seems to be ok in the environment. Does anything show up in /var/log/messages after starting amavisd?
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---

Last edited by DutchDaemon; May 18th, 2010 at 12:38.
Reply With Quote
  #8  
Old May 18th, 2010, 04:02
xwwu xwwu is offline
Member
 
Join Date: Nov 2008
Posts: 148
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Well, everything seems to be ok in the environment. Does anything show up in /var/log/messages after starting amavisd?
Yes, the code is:
Code:
asus# tail -f /var/log/messages
May 18 10:40:11 xxx postfix/sendmail[39016]: fatal: root(0): No recipient addresses found in message header
May 18 10:42:20 xxx inetd[1112]: ssh/tcp: bind: Address already in use
May 18 10:45:01 xxx postfix/sendmail[39036]: fatal: root(0): No recipient addresses found in message header
May 18 10:45:05 xxx postfix/sendmail[39044]: fatal: root(0): No recipient addresses found in message header
May 18 10:50:00 xxx postfix/sendmail[39053]: fatal: root(0): No recipient addresses found in message header
May 18 10:50:01 xxx postfix/sendmail[39055]: fatal: root(0): No recipient addresses found in message header
May 18 10:52:20 xxx inetd[1112]: ssh/tcp: bind: Address already in use
May 18 10:55:01 xxx postfix/sendmail[39082]: fatal: root(0): No recipient addresses found in message header
May 18 10:55:01 xxx postfix/sendmail[39084]: fatal: root(0): No recipient addresses found in message header
May 18 10:58:36 xxx su: owen to root on /dev/pts/0
May 18 10:59:00 xxx postfix/sendmail[39107]: fatal: root(0): No recipient addresses found in message header

Last edited by DutchDaemon; May 18th, 2010 at 12:39.
Reply With Quote
  #9  
Old May 18th, 2010, 04:27
xwwu xwwu is offline
Member
 
Join Date: Nov 2008
Posts: 148
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
Well, everything seems to be ok in the environment. Does anything show up in /var/log/messages after starting amavisd?
Problem solved by run:sa-update.

But mail server works. But it is very slow.

Last edited by DutchDaemon; May 18th, 2010 at 12:38.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassassin amavisd inside jails klabacita Networking 3 March 16th, 2010 14:21
[Solved] amavisd: lost connection ... while sending end of data hansaplast Web & Network Services 13 September 18th, 2009 06:35
Amavisd 2.4.0 to 2.6.2?? anthony911 Installation and Maintenance of FreeBSD Ports or Packages 5 August 31st, 2009 17:29
amavisd can't be started xwwu Web & Network Services 13 May 2nd, 2009 21:37
Amavisd-new & sa-update dave Web & Network Services 2 April 7th, 2009 05:32


All times are GMT +1. The time now is 05:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0