- Log file is located at /var/log/exim/main_log
- To see some general stats: eximstats -nr /var/log/exim_mainlog
- To see current activity: exim -bp | exiqsumm
- To see output number of mails in the queue: exim -bpc, to list queued mails exim -bp
- To see undelivered messages in the queue: exim -bpu
- To see what the actual processes are doing: exiwhat
- Checking mailbox size: du -hsc * (run in /home)
- The configuration template is in /etc/exim/update-exim.conf. and the actual config file in in /var/lib/exim/config.auto generated.
- Regenerate the config file from the template: update-exim.conf
- Reload the configuration: invoke-rc.d exim reload
- Send a test message send "content" | mail -s "subject" user@example.com
- Send a message without "send": echo "body" | mail -s "subject" user@example.com
- Process the queue: exim -q -v
- Process the queue, ignoring retry times: exim -qf -v
- Process the queue, including even frozen messages: exim -qff -v or exim -qff -v -C /etc/exim.conf &
- To see the contents of a specific message: exim -Mvc message id
- To remove mails by id exim -v -Mrm ID
- To delete frozen mails exim -bp | awk '$6~"frozen" { print $3 }' | xargs exim -Mrm
- To freeze mails from sender exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf
- To remove mails from sender exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm
- To find most emailing ip tail -1000 /var/log/exim_mainlog |grep '\[' |cut -d[ -f2 |cut -d] -f1|sort -n |uniq -c |sort -n or tail -2000 /var/log/exim_mainlog | grep public
- To find the mail in the queue with $name exim -bp|grep $name
- To view the message header exim -Mvh $MSGID
- To view the message body exim -Mvb $MSGID
- To Force deliver of message exim -M $MSGID
- To view the transact of message exim -v -M $MSGID
- To force exim update in cpanel server /scripts/eximup --force
Friday, February 17, 2012
Exim Commands.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment