Changing interface IP address for exim mail server.

27 06 2008

You can change the interface IP address for exim mail server in the exim configuration file (exim.conf).

1) Open the configuration file of exim.

vi /etc/exim.conf

2) Check for the following parameters.

remote_smtp:

driver = smtp

interface=

Change to like this:

remote_smtp:

driver = smtp

interface=x.x.x.x

NB: Replace x.x.x.x with your IP address.

3) Restart the mail service using the following command.

/etc/init.d/exim restart





Useful Exim Commands

27 06 2008

To print a count of the mails in the queue -> exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient) -> exim -bp

To show the current configuration file of exim -> exim -bP

To show the version and configuration file of exim -> exim -bV

Generate and display Exim stats from a logfile -> eximstats /var/log/exim_mainlog

Print what Exim is doing right now -> exiwhat

To Print the message-id of the messages in queue -> exiqgrep -i

To remove a mail from the queue -> exim -Mrm <message-id>

To freeze a mail -> exim -Mf <message-id>

To deliver a specific mail from the queue -> exim -M <message-id>

To remove all frozen mails -> exiqgrep -z -i | xargs exim -Mrm

To view the headers of a mail -> exim -Mvh <message-id>

To view body of a mail -> exim -Mvb <message-id>








Follow

Get every new post delivered to your Inbox.