qmail control commands

#qmail

http://www.qmailtoaster.com/
stable packages.

/var/qmail/bin/qmail-qread for list of unsent emails
/var/qmail/bin/qmail-qstat for list of all waiting emails in the queue.

/var/qmail/supervise/clamd

****  to disable clamd  = no   -->  /var/qmail/control/simcontrol

vi /var/qmail/supervise/clamd/run

tail  /var/log/qmail/smtp/current

# comment out to stop it.

vi /etc/mail/spamassassin/local.cf
==== Whitelist Manually in the /etc/mail/spamassassin/local.cf or in ~/.spamassassin/user_prefs
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

ok_locales all
skip_rbl_checks 1

required_score 7.4
report_safe 0
rewrite_header Subject ***SPAM***

use_pyzor 1

use_auto_whitelist 1

use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1

whitelist_from  dennychuang@gmail.com
whitelist_from  *@sixxon.com
whitelist_from  *@sixxon.com.cn
whitelist_from  *@foxracingshox.com
whitelist_from  *@newmarine.com.tw
whitelist_from  *@nmclogistics.com.tw


You can query the rpm database with these powerful commands:


bash$ rpm -qpl foobar-1.0-1.i386.rpm ....(list of files in a rpm package)
bash$ rpm -ql foobar-1.0-1 ....(list of files from already installed package)

bash$ rpm -qpR foobar-1.0-1.i386.rpm ....(list packages on which this package depends)
bash$ rpm -qR foobar-1.0-1 ....(list packages on which this installed package depends)

bash$ # rpm -q foo ...(print package name, version, and release number of package foo)
foo-2.0-1

bash$ rpm -qa | less ....(list all the installed package)
bash$ rpm -qa | grep -i kde ....(list all the installed package matching kde)
bash$ rpm -qif /bin/ls ....(list the package which installed the file /bin/ls)

To show the values RPM will use for all of the options that may be set in rpmrc files
(/usr/lib/rpm/rpmrc, /etc/rpmrc, ~/.rpmrc ), type:
bash$ rpm --showrc | less


======

Qmail Clear and check queue

======

more clearqueue.sh

cd ../queue
find intd todo local remote mess info bounce -type f -print |xargs rm


======


留言

這個網誌中的熱門文章

tw quote

FPDF Big5 Font

三重幫 - 2013-09-11