Solved

sendmail server

Posted on 2009-05-10
6
275 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
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 a mailbox database 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 Servers >> Data…

863 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

18 Experts available now in Live!

Get 1:1 Help Now