Some useful exim commands.

We are Provding you a useful things to know and manage the Exim mail Servers from spamming. First thing is to Determine how and from where the spam mails are orginated, If it is from any particular email id suddenly change the email ID password and stop further Spamming, If the spams are going from any scripts in any files, change the ownership of the file and Disable it. Outdated scripts are also a major cause of spamming. You need to check the exim log for more details about how the spamming is orginated, Below you can see some daily use of exim commands which will help you to find Spamming in your server.

Print a count of the messages in the queue:
root@server [/]# exim -bpc

Print a listing of the messages in the queue:(time queued, size, message-id, sender, recipient)
root@server [/]# exim -bp

To view the message body:
root@server [/]# exim -Mvb <message - ID>

To view the message header:
root@server [/]# exim -Mvh <message - ID>

To view the Frozen mails:
root@server [/]# exim -bpr

To get the number of frozen mails:
root@server [/]# exim -bpr | grep frozen | wc -l

To search the queue for messages from a specific sender:
root@server [/]# exiqgrep -f  user@domainname.com

To search the queue for a specific recipient:
root@server [/]# exiqgrep -r user@domainname.com

To remove message without sending any error message:
root@server [/]# exim -Mrm <message - ID>

To Remove all mails from a particular user:
root@server [/]# exiqgrep -i -f $user | xargs exim -Mrm

To remove all mails to a particular user:
root@server [/]# exiqgrep -i -r $user | xargs exim -Mrm

 











  • 2 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

Outlook 2010: Server Rejected your Login.

Your e-mail server rejected your login. Verify your user name and password for this account in...

Exim email trouble shooting with exigrep Command.

Choosing a Search StringChoosing the right search string for exigrep can help you find your...

Telnet To Check SMTP Service

One of the most common e-mail issues we encounter in our support department is customers who are...