Exim Management

Basic command,
1. Start, stop and restart exim
/etc/init.d/exim start|stop|restart

2. Showing what exim is doing right now
exiwhat

3. Check how the exim route to the given email.
exim -bt [email protected]

4. Generate the exim stats from log file.
eximstats /var/log/exim_mainlog

5. Run pretend SMTP from command where xxx.xxx.xxx.xxx is the IP.
exim -bh xxx.xxx.xxx.xx

6. Display exim configuration.
exim -bP

Queue information,
1. Print the number of email queue
exim -bpc

2. Print the list of message from email queue
exim -bp

3. View the summary of message from queue.
exim -bp | exiqsumm

Searching information
1. Search the email queue from a specific sender
exim -f [email protected]

2. Search the email queue from a specific recipient
exim -r [email protected]

Disable Port Scanning on port 25 with McAfee

Last few day, I was working on client server and found out their ASP.Net script do not able to send out any email from IIS SMTP.

After further check, it is found out port 25 is blocked from McAfee AntiVirus.

1. Locate the McAfee icon in your taskbar. Double-click the icon to launch the application. You can also run the program by clicking “Start > All Programs > McAfee > McAfee VirusScan.”
2 Click “Virus Scan Enterprise > Virus Scan Console.” Double-click “Virus Protection.” Click the “Access Protection” tab.
3 Check “Prevent mass mailing worms from sending mail.” This will disable port 25. Click “Apply” to save your settings, then click “OK.”

Set SPF records for Google Apps

Nowadays, many user use Google Apps for their own domain such as mickgenie.com but they do not know Google Apps did allow them to apply SPF (Sender Policy Framework) to their email to protect spamming issue.

By using SPF records, it allow domain owners to specify which hosts are permitted to send email on behalf of their domains. Normal SMTP allows any computer to send an email claiming to be from anyone. Thus, it’s easy for spammers to send emails with forged From: addresses. SPF allows a domain owner to use a special format of DNS TXT records to specify which machines or hosts are authorized to transmit email for their domain; this makes it difficult to forge From: addresses.

To set your domain’s SPF record, you should have access to your domain’s DNS settings. On your DNS resource, publish the following TXT record: v=spf1 include:aspmx.googlemail.com ~all