Exim: Difference between revisions
From DWIKI
m (→FAQs) |
m (→FAQ) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Docs= | =Docs= | ||
*[http://www.flatmtn.com/computer/Linux-Exim4.html Setting up exim] | *[http://www.flatmtn.com/computer/Linux-Exim4.html Setting up exim] | ||
*[http://bradthemad.org/tech/notes/exim_cheatsheet.php Exim cheatsheet] | |||
=Links= | |||
*[[vexim]] | |||
=HOWTO= | |||
==Find logins in log== | |||
grep "A=login" /var/log/exim/mainlog | |||
== | ==Show queue== | ||
exim -bp | |||
===all relevant MX records point to non-existent hosts | ==Show length of queue== | ||
exim -bpc | |||
==Show body of message in queue== | |||
exim -Mvb 1gKM2x-0004ti-Lj | |||
==remove frozen from queue== | |||
exim -bp|grep frozen|awk '{print $3}' |xargs exim -Mrm | |||
=FAQ= | |||
==Message is frozen== | |||
Mail can't be delivered locally, check storage. | |||
==hostname --fqdn did not return a fully qualified name== | |||
fix /etc/hosts etc, but if hostname -f/--fqdn fails, run hostname mail.example.com and save yourself a lot of headache | |||
==Helo command rejected: need fully-qualified hostname== | |||
Make sure your FQDN/IP are ok in /etc/hosts | |||
==all relevant MX records point to non-existent hosts== | |||
This may mean the MX IP is a private one, in that case remove that IP/network from ignore_target_hosts | This may mean the MX IP is a private one, in that case remove that IP/network from ignore_target_hosts | ||
==Remove all frozen messages== | |||
exiqgrep -z -i | xargs exim -Mrm | |||
[[Category:Mail]] |
Latest revision as of 16:59, 6 December 2024
Docs
Links
HOWTO
Find logins in log
grep "A=login" /var/log/exim/mainlog
Show queue
exim -bp
Show length of queue
exim -bpc
Show body of message in queue
exim -Mvb 1gKM2x-0004ti-Lj
remove frozen from queue
exim -bp|grep frozen|awk '{print $3}' |xargs exim -Mrm
FAQ
Message is frozen
Mail can't be delivered locally, check storage.
hostname --fqdn did not return a fully qualified name
fix /etc/hosts etc, but if hostname -f/--fqdn fails, run hostname mail.example.com and save yourself a lot of headache
Helo command rejected: need fully-qualified hostname
Make sure your FQDN/IP are ok in /etc/hosts
all relevant MX records point to non-existent hosts
This may mean the MX IP is a private one, in that case remove that IP/network from ignore_target_hosts
Remove all frozen messages
exiqgrep -z -i | xargs exim -Mrm