Archive for the ‘Exim’ category

Exim4 is not sending mail

January 13th, 2010

I came across a problem today where Exim4 was just freezing messages in the queue.

When i unfroze one and tried to send it i got the following error message:

“R=nonlocal: Mailing to remote domains not supported”

A quick search showed that this was a configuration issue caused by Exim not being set to send mail to external locations. Thankfully this could easily be changed by running:

“dpkg-reconfigure exim4-config”

This will bring up a step by step config walk threw that you can use to make the needed changes. On the first option select :

“internet site; mail is sent and received directly using SMTP”

Finish the config and try and resend the messages.

Useful commands:

unfreeze a single message: exim -Mt messageid
unfreeze the entire queue and resend: exim4 -qff
remove all frozen messages: exiqgrep -z -i | xargs exim -Mrm

For more tips i recommend the following site with a good cheat sheet:
Exim Cheat sheet

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz