Solved

sendmail server

Posted on 2009-05-10
6
276 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
  • 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now