View Single Post
  #8  
Old 11th February 2011, 04:56
mpl mpl is offline
HowtoForge Supporter
 
Join Date: Dec 2010
Posts: 30
Thanks: 4
Thanked 1 Time in 1 Post
Default

What do you make of this????

webserver:/var/run/amavis# monit summary
The monit daemon 4.10.1 uptime: 5m

Process 'amavisd' not monitored

File 'amavisd_bin' accessible
File 'amavisd_rc' accessible
Process 'apache' running
Process 'clamd' running
File 'clamavd_bin' accessible
File 'clamavd_rc' accessible
Process 'postfix' running
File 'postfix_rc' accessible
Process 'spamd' running
File 'spamd_bin' accessible
File 'spamd_rc' accessible
Process 'syslogd' running
File 'syslogd_file' accessible
System 'webserver.kd8q.com' running

webserver:/var/run/amavis# monit validate
Sendmail error: 554 5.7.1 <*********@gmail.com>: Relay access denied
Alert handler failed, retry scheduled for next cycle
'amavisd' process is not runningSendmail error: 554 5.7.1 <**********@gmail.com>: Relay access denied
'amavisd' trying to restart'amavisd' start: /etc/init.d/amavis
Starting amavisd: 'amavisd' failed to startSendmail error: 554 5.7.1 <*********@gmail.com>: Relay access denied
webserver:/var/run/amavis# amavisd-new.

But then look at this.....

webserver:/var/run/amavis# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 3187/dovecot
tcp 0 0 *op3s *:* LISTEN 3187/dovecot
tcp 0 0 *:53443 *:* LISTEN 2043/rpc.statd
tcp 0 0 localhost:10024 *:* LISTEN 6469/amavisd (virgitcp 0 0 localhost:10025 *:* LISTEN 3141/master
tcp 0 0 *:mysql *:* LISTEN 2374/mysqld
tcp 0 0 *op3 *:* LISTEN 3187/dovecot
tcp 0 0 *:imap2 *:* LISTEN 3187/dovecot
tcp 0 0 localhost:spamd *:* LISTEN 2445/spamd.pid
tcp 0 0 *:sunrpc *:* LISTEN 2032/portmap
tcp 0 0 *:ftp *:* LISTEN 10528/pure-ftpd (SE
tcp 0 0 webserver.kd8q.c:domain *:* LISTEN 2273/named
tcp 0 0 localhost:domain *:* LISTEN 2273/named
tcp 0 0 *:ssh *:* LISTEN 2287/sshd
tcp 0 0 localhost:ipp *:* LISTEN 19914/cupsd
tcp 0 0 *:smtp *:* LISTEN 3141/master
tcp 0 0 localhost:953 *:* LISTEN 2273/named
tcp 0 0 localhost:2812 *:* LISTEN 6461/monit
tcp 0 0 localhost:mysql localhost:58702 ESTABLISHED 2374/mysqld
tcp 0 0 webserver.kd8q.co:56376 cpe-184-57-205-235:smtp TIME_WAIT -
tcp 50 0 localhost:42757 localhost:10025 CLOSE_WAIT 29417/amavisd (ch1-
tcp 0 0 localhost:58686 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:smtp localhost:35268 TIME_WAIT -
tcp 0 0 localhost:58702 localhost:mysql ESTABLISHED 6973/smtpd
tcp 0 300 webserver.kd8q.com:ssh 63-253-225-1:supfiledbg ESTABLISHED 4686/sshd: www [pri
tcp 0 0 localhost:mysql localhost:58685 TIME_WAIT -
tcp 0 0 localhost:58704 localhost:mysql ESTABLISHED 6973/smtpd
tcp 0 0 localhost:58684 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:58703 localhost:mysql ESTABLISHED 6973/smtpd
tcp 0 0 localhost:mysql localhost:58703 ESTABLISHED 2374/mysqld
tcp 0 0 localhost:mysql localhost:58704 ESTABLISHED 2374/mysqld
tcp6 0 0 [::]:http-alt [::]:* LISTEN 305/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 305/apache2
tcp6 0 0 [::]:tproxy [::]:* LISTEN 305/apache2
tcp6 0 0 [::]:ftp [::]:* LISTEN 10528/pure-ftpd (SE
tcp6 0 0 [::]:domain [::]:* LISTEN 2273/named
tcp6 0 0 [::]:ssh [::]:* LISTEN 2287/sshd
tcp6 0 0 localhost:ipp [::]:* LISTEN 19914/cupsd
tcp6 0 0 localhost:953 [::]:* LISTEN 2273/named
tcp6 0 0 [::]:https [::]:* LISTEN 305/apache2

So amavis is running but monit thinks it is not and cannot send the email??? Strange

Last edited by mpl; 11th February 2011 at 05:30. Reason: Figured it out! Monit email needed to be set to localhost...duh ;-)
Reply With Quote