February 12th, 2012 |
admin |
Check emails in mail queue root@server [~]# exim -bp Count number of emails in mail queue root@server [~]# exim -bpc Count number of frozen emails in mail queue root@server [~]# exim -bp | grep frozen | wc -l Delete forzen emails from the mail queue exim -bp | awk ‘$6~”frozen” { print $3 }’ | [...]
February 11th, 2012 |
admin |
If you’re interesting in saving a copy of all incoming and outgoing mail for a particular domain, look no further! This can be expanded a little further to include all domains on the server or other stipulations, but I am going to include the config for a single domain. First we’ll need to make a [...]
February 11th, 2012 |
admin |
The current exim.pl files have the ability to track who is sending email. There is an option to turn on a limit for how many emails are sent by a particular user. To enable this limit, simply add the number of emails you’d likely to allow per day to the /etc/virtual/limit file. For most cases [...]
January 17th, 2012 |
admin |
Howto check number of emails in the mail queue: exim -bpc To check the email ID, sender and receiver of the each email: exim -bp | more To delete frozen emails from the mail queue, execute: exim -bp | grep ‘frozen’ | awk ‘{print $3}’ | xargs exim -Mrm similarly, to delete emails sent using [...]
January 7th, 2012 |
admin |
To clear SPAMS and unwanted mails from the mail queue exim -bp | awk ‘$6~”frozen” {print $3 }’ | xargs exim -Mrm grep -lr ‘nobody@’ /var/spool/exim/input/ | \sed -e ’s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm grep -rl ‘From: Mail Delivery System’ /var/spool/exim/input/ | \sed -e ’s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm grep -rl ‘X-Spam-Status: Yes’ /var/spool/exim/input/ [...]
January 3rd, 2012 |
admin |
DomainKeys and its successor DomainKeys Identified Mail (DKIM) are technologies that allow organizations to take responsibility for a message. This is done by cryptographically signing an email as it leaves an organization in route to its destination. The signature can be verified using the DNS system to establish trust. In theory the technologies help cut [...]
December 19th, 2011 |
admin |
I never used exim. My faviorate MTA is postfix. But this time I needed to configure exim MTA (mail transfer agent used in Unix-like operating systems) to router all mails using a smarthost called mta3.somewhere.com Open exim configuration file i.e. begin routers section and add or modify it as follows: smarthost: driver = manualroute domains [...]
December 17th, 2011 |
admin |
qmail is a mail transfer agent that runs on Linux and Unixish oses. It is more secure replacement for the popular Sendmail program. Yes, it is possible to bind Qmail to specific IP. Here is what I did. Please note that I am running light weight QMAIL server from xinetd service. 1) Open your /etc/xinetd.d/smtp [...]
December 16th, 2011 |
admin |
In order to move MDaemon to a new machine you should first remove the MDaemon service. To remove MDaemon as a service Go to Setup Click on System Service Settings Click on Remove Service Open Windows Explorer and navigate to your MDaemon directory. Make a backup of the entire directory. Make a note of the [...]
December 12th, 2011 |
admin |
Edit /etc/dovecot.conf, find: mechanisms = plain Add after: passdb passwd-file { args = /etc/dovecot-deny.%Ls deny = yes } Now use the following script to disable IMAP (or POP3 (replace IMAP with POP3 in the script)) access (usage: ./script allow/deny usename): #!/bin/sh # # Script used to deny IMAP access for a particular user show_help() [...]