Exim ip

21 October 2008 | 3 تعليقات

if u mange  shared hosting server’s you’ll probably find one  of ur server’s blocked by other mail providers because of high mail volume or one of your users spamming. To change your exim IP for outgoing mail, you can edit your /etc/exim.conf file and locate this section:

remote_smtp:
driver = smtp

And below this add:

interface - xxx.xxx.xxx.xxx

Replace the x’s with the backup mail IP. Note that the backup mail IP needs to be added to the server, and should have a valid PTR and A-record.

Display Number of mails in queue :
exim -bpru | wc -l

Display mails :
exim -bpru | awk ‘{print $3}’

Remove mails from queue :
exim -bpru | awk ‘{print $3}’ | xargs exim -Mrm

kill nobody process
ps aux | grep nobody | awk ‘{print $2}’ | xargs kill -9

exim -bp
mailq — The mailq is relevant as it gives your the email IDs.
exim -M emailID
force delivery of one message
exim -qf
Force another queue run
exim -qff
Force another queue run and attempt to flush frozen messages
exim -Mvl messageID
View Log for message
exim -Mvb messageID
View Body for message
exim -Mvh messageID
View Header for message
exim -Mrm messageID
ReMove message (no errors sent)
exim -Mg messageID
Give up and fail message, message bounces to sender