Qmail cheat sheet
http://supportlobby.com/blog/category/technical/qmail-technical/
========================
1) To check the mail queue in plesk from command line, you can use the command :
/var/qmail/bin/qmail-qstat
========================
=========================
2) You can examine the queue with qmail-qread.
/var/qmail/bin/qmail-qread
=========================
=========================
3) From the qread command you get the message id . In the above example , let us assume one of the id is 524514 . Now you can find the file holding the email in/var/qmail/queue with find command.
# find /var/qmail/queue -iname 524514
/var/qmail/queue/remote/22/524514
/var/qmail/queue/mess/22/524514 (mail headers)
/var/qmail/queue/info/22/524514
4) From the mail header you get the IP address
vi /var/qmail/queue/mess/22/524514
Or
Shortcut for the cool guys
---------------------------------
find /var/qmail/queue -iname queu_id | grep mess | xargs less
=========================
=========================
4) If you wish to remove the emails with some patterns , you can use qmail-remove
# /etc/init.d/qmail stop (Stop qmail before removing)
# /var/qmail/bin/qmail-remove -r -p "Time Passing"
(considering that Time Passing was the subject of the email )
/var/qmail/bin/qmail-remove -r -p (mail id)
=========================
You can also use the qmHandle to remove the mails but in case of large shared servers i recommend the qmail remove.
If you are further more interested in Qmail i recommend http://www.lifewithqmail.org/
=======================================
/usr/local/psa/admin/bin/mail_auth_view | grep mailid >> to get password
Note : This is stricly for the Linux Plesk server with the Qmail as the mail transfer agent.
=======================================
to set mail forwarding from back end.
[@ test]# cat .qmail
| true
| /usr/bin/deliverquota ./Maildir
=======================================
========================
1) To check the mail queue in plesk from command line, you can use the command :
/var/qmail/bin/qmail-qstat
========================
=========================
2) You can examine the queue with qmail-qread.
/var/qmail/bin/qmail-qread
=========================
=========================
3) From the qread command you get the message id . In the above example , let us assume one of the id is 524514 . Now you can find the file holding the email in/var/qmail/queue with find command.
# find /var/qmail/queue -iname 524514
/var/qmail/queue/remote/22/524514
/var/qmail/queue/mess/22/524514 (mail headers)
/var/qmail/queue/info/22/524514
4) From the mail header you get the IP address
vi /var/qmail/queue/mess/22/524514
Or
Shortcut for the cool guys
---------------------------------
find /var/qmail/queue -iname queu_id | grep mess | xargs less
=========================
=========================
4) If you wish to remove the emails with some patterns , you can use qmail-remove
# /etc/init.d/qmail stop (Stop qmail before removing)
# /var/qmail/bin/qmail-remove -r -p "Time Passing"
(considering that Time Passing was the subject of the email )
/var/qmail/bin/qmail-remove -r -p (mail id)
=========================
You can also use the qmHandle to remove the mails but in case of large shared servers i recommend the qmail remove.
If you are further more interested in Qmail i recommend http://www.lifewithqmail.org/
=======================================
/usr/local/psa/admin/bin/mail_auth_view | grep mailid >> to get password
Note : This is stricly for the Linux Plesk server with the Qmail as the mail transfer agent.
=======================================
to set mail forwarding from back end.
[@ test]# cat .qmail
| true
| /usr/bin/deliverquota ./Maildir
=======================================
Comments
Post a Comment