?
Solved

sendmail server

Posted on 2009-05-10
6
Medium Priority
?
281 Views
Last Modified: 2013-12-17
Hi all,

My sendmail server (which acts as our mail gateway) has over 8000 emails in the queue and has already been greylisted....

How do i troubleshoot this? Obviously we have been blacklisted for spamming, how do I get off lists and how do I proceed.

Is flushing the queue the only solution? Id hate to do that due to all the legitimate mail that might be in the queue
0
Comment
Question by:Network_Padawan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:aa789
ID: 24351300
As root, use:

/usr/lib/sendmail -bq

or, if you want to watch the action:

/usr/lib/sendmail -v -bq

However, since you want to clear the queue, and you know that many connections may be slow due to the greylist, you might want to issue many (10 - 20 depending on your cpu speed)

/usr/lib/sendmail -bq &

which will run the queue that many times

You may want to cd to the queue directory (usually /var/spool/mqueue) and grep the qf files ...

grep To: qf* | sort | more

And see which sites are making your queue fill up. Then you could (where foo.com is replaced by the site of interest)

grep foo.com qf* | cut -d: -f1 | sed "s/qf/*f/" >/tmp/qflist
rm `cat /tmp/qflist`

to delete those emails (assuming they're not important, of course). what this did was find the site name in the qf files, isolate the queue file name, and change the queue file name to a wildcard for the queue file name (there will be a qf<id>, df<id> and maybe xf<id> and others.




0
 

Author Comment

by:Network_Padawan
ID: 24351310
Hey thanks.

when I type /usr/lib/sendmail -v -bq  I get:

Invalid operation mode q
0
 
LVL 1

Expert Comment

by:aa789
ID: 24351464
Ooops ...

just

/usr/lib/sendmail -v -q

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Network_Padawan
ID: 24351935
Thanks for your help.

Just quickly, so i understand, the sendmail -q processes the queue right? Is this a forced queue? Because I thought sendmail processes the queue automatically
0
 
LVL 1

Accepted Solution

by:
aa789 earned 2000 total points
ID: 24353595
Yes, this is forcing the queue.

Sendmail runs the queue automatically at a fixed interval. That's the argument to sendmail (example: -q1h, -q15m) which you see when you do a ps <args>  command (args depend on your system). In my case
ps -ef |grep sendmail
show it. But when your queue is overfull, the queue run doesn't finish within your queue interval, so it keeps getting more full. So we force multiple queue runs to get the queue processed.

0
 

Author Closing Comment

by:Network_Padawan
ID: 31580014
Thankyou
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question