single Emails arrives several times

Discussion in 'Server Operation' started by daff, May 13, 2008.

  1. daff

    daff New Member

    Hi

    I have a Debian Etch System + Perfect Setup with ISPConfig 2.2.23 installed. I have the problem that some Emails arrive repeatedly. The numbers of "double"mails of one Email are between 2 and 8. Any hints why that happens?

    daff
     
  2. chipsafts

    chipsafts New Member

    set up the procmail to write out to a log file, then inspect the logfile. You might already have enough information in your mail dameon log file.
     
  3. daff

    daff New Member

    Could the reason be that my system is very overloaded? It has only 128 MB RAM... Because if I send an email to the server and its not very high loaded the mail receives only one time.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    That could be. But did you check your mail log?
     
  5. daff

    daff New Member

    I actual found something in the file mail.warn:
    Code:
    warning: database /etc/aliases.db is older than source file /etc/aliases
    I already fixed it with:
    /usr/bin/newaliases

    EDIT:The Problems seams to be that postfix gets killed. I let it restart with monit. In monit I also have mysql monitored but it doesn't get killed. How can tell the system that it mustn't kill postfix ?
     
    Last edited: May 14, 2008
  6. falko

    falko Super Moderator Howtoforge Staff

    Is it killed by monit (e.g. because the laod average is too high), or by some other process?
    What's in your monitrc?
     
  7. daff

    daff New Member

    I don't think that monit is the reason. but here the config:

    Code:
    check process proftpd with pidfile /var/run/proftpd.pid
       start program = "/etc/init.d/proftpd start"
       stop program  = "/etc/init.d/proftpd stop"
       if failed port 21 protocol ftp then restart
    
    check process sshd with pidfile /var/run/sshd.pid
       start program  "/etc/init.d/ssh start"
       stop program  "/etc/init.d/ssh stop"
       if failed port 22 protocol ssh then restart
    
    check process mysql with pidfile /var/run/mysqld/mysqld.pid
       group database
       start program = "/etc/init.d/mysql start"
       stop program = "/etc/init.d/mysql stop"
       if failed host 127.0.0.1 port 3306 then restart
    
    check process apache with pidfile /var/run/apache2.pid
       group www
       start program = "/etc/init.d/apache2 start"
       stop program  = "/etc/init.d/apache2 stop"
       if failed host www.kirche-c.de port 80 protocol http
          and request "/monit/token" then restart
       if cpu is greater than 60% for 2 cycles then restart
       if cpu > 80% for 5 cycles then restart
       if totalmem > 500 MB for 5 cycles then restart
       if children > 250 then restart
       if loadavg(5min) greater than 10 for 8 cycles then restart
    
    check process postfix with pidfile /var/spool/postfix/pid/master.pid
       group mail
       start program = "/etc/init.d/postfix start"
       stop  program = "/etc/init.d/postfix stop"
       if failed port 25 protocol smtp then restart
    
    check process spamd with pidfile /var/run/spamd.pid
       group mail
       start program = "/etc/init.d/spamassassin start"
       stop  program = "/etc/init.d/spamassassin stop"
       if 5 restarts within 5 cycles then timeout
       if cpu usage > 99% for 5 cycles then alert
       if mem usage > 99% for 5 cycles then alert
       depends on spamd_bin
       depends on spamd_rc
    
     check file spamd_bin with path /usr/sbin/spamd
       group mail
       if failed checksum then unmonitor
       if failed permission 755 then unmonitor
       if failed uid root then unmonitor
       if failed gid root then unmonitor
    
     check file spamd_rc with path /etc/init.d/spamassassin
       group mail
       if failed checksum then unmonitor
       if failed permission 755 then unmonitor
       if failed uid root then unmonitor
       if failed gid root then unmonitor
    
    
    But I think that problem disappear soon because I requested an upgrade to 512 MB RAM. I hope that the system runs better then.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Yes, monit is not the problem. Hopefully it will work with more RAM. :)
     

Share This Page