Friday, February 29, 2008

Basic qmail commands

These files are in location /var/qmail/bin

--- clean up the queue directory

qmail-getpw -- qmail-getpw finds the user that controls a particular address, local.

qmail-inject --- preprocess and send a mail message

qmail-qread --- list outgoing messages and recipients. qmail-qread must be run either as root or with user id qmails and group id qmail.

qmail-qstat ---- summarize status of mail queue

qmail-queue -- queue a mail message for delivery. qmail-queue reads a mail message from descriptor 0. It then reads envelope information from descriptor 1. It places the message into the outgoing queue for future delivery by qmail-send.

qmail-remote -- send mail via SMTP

qmail-remote host sender recip [ recip ... ] mail-remote reads a mail message from its input and sends the message to one or more recipients at a remote host.

qmail-send ----- deliver mail messages from the queue

qmail-start - turn on mail delivery. invokes qmail-send, qmail-lspawn, qmail-rspawn, and qmail-clean. These four daemons cooperate to deliver messages from the queue.

splogger - make entries in syslog

qmail-showctl - analyze the qmail configuration files

The mail log file in the location /var/log/send/current . Here you can find the log of send/received mail.

No comments: