PDA

View Full Version : Courier Help


tligon01
02-06-2007, 10:31 AM
I am having major issues with courier. Here is the issue
this is a pstree
init-+-bdflush
|-courierd---courierd-+-courierdsn
| |-courieresmtp---35*[courieresmtp]
| |-courierfax
| |-courierlocal
| `-courieruucp
|-courierfilter
|-courierlogger---authdaemond---5*[authdaemond]
|-courierlogger---sqwebmaild
|-7*[courierlogger]
|-5*[couriertcpd]
|-couriertcpd-+-2*[courieresmtpd]
| `-34*[courieresmtpd---submit]
|-4*[couriertls]
|-crond
|-dsm
|-httpd---10*[httpd]
|-keventd
|-2*[kjournald]
|-klogd
|-ksoftirqd_CPU0
|-kswapd
|-kupdated
|-6*[mingetty]
|-mysqld_safe---mysqld---mysqld---15*[mysqld]
|-named---named---3*[named]
|-pop-before-smtp
|-postmaster---postmaster---postmaster
|-proftpd
|-spamd---5*[spamd]
|-5*[sqwebmaild]
|-sshd---sshd---bash---pstree
|-stunnel---stunnel
|-syslogd
`-xinetd
You notice there are 35 smtp and 34 esmtp
Most of these when looking in the mail log are for ONE domain on the box. A domain that is not even using email on the box. I even #domainname in the hosteddomains and remade the hosteddomains.dat file to attempt to kill this but it still continues. All these are to unlisted users at that domain - tons of them.
Now if I check mailq I have over 300 mails that are in there . Most to the senders of this garbage.

Other than clearing one at a time with cancelmsg and the id how do you clear this que!!!!

HELP, the load is killing the usefullness if have seen the cpu well over 8 normall runs about .2
Stoping courier fixes it but cant use email without it.

Paul
02-07-2007, 11:10 AM
Comment out the domain in the /etc/courier/esmtpacceptmailfor.dir/hosted file by placing a "#" in front of it and run the command below.

/usr/local/dsm/scripts/fixmail

You may want to also remove the dns entries"mx records" because you will still get the connections.