qmail is a mail transfer agent that runs on Unix. It was written, starting December 1995, by Daniel J. Bernstein as a more secure replacement for the popular Sendmail program. qmail's source code is released to the public domain, making qmail free software. Most Popular email services like Yahoo,Gmail are using qmail for their mail traffic. Here I am pasting some qmail tips,which helped me to override when I was blackout with my Qmail Box.
qmailctl - This command will show you a lot of information about your qmail server.
[root@mail.admin.org] qmailctl stat
/service/qmail-send: up (pid 3030) 30 seconds
/service/qmail-send/log: up (pid 3025) 30 seconds
/service/qmail-smtpd: up (pid 3028) 30 seconds
/service/qmail-smtpd/log: up (pid 3029) 30 seconds
/service/qmail-pop3d: up (pid 3026) 30 seconds
/service/qmail-pop3d/log: up (pid 3027) 30 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
The above output means your Qmail server is Ready to deliver / receive messages. The seconds figure should be same,for a clean server.
[root@mail.admin.org]qmailctl queue
messages in queue: 0
messages in queue but not yet preprocessed: 0
This will shows the list of mails which were not delivered in the server.
[root@mail.admin.org]qmailctl queue | wc -l
Which will give the number of mails in the queue.
[root@mail.admin.org]qmailctl start
Starts mail service (smtp connection accepted, mail can go out)
[root@mail.admin.org]qmailctl stop
Stops mail service (smtp connections refused, nothing goes out).
[root@mail.admin.org]qmailctl pause
Temporarily stops mail service (connections accepted, nothing leaves).
To block a sender or entire domain to your Qmail Box. Because some times you need to block a user or entire domain from outside world to reach to your qmail
[root@mail.admin.org] vi /var/qmail/control/badmailfrom
Inside the " badmailfrom " file, the syntax might look something like this:
spam@spammerhell.org
@spammerhell.org
What do the above lines do?
The entry for "spam@spammerhell.org" would block all mail coming from "spam@spammerhell.org".
The entry for "@spammerhell.org" would block any and all mail coming from the domain "@spammerhell.org".
To be Continued....
Because Qmail Administration is an Ocean,I am just seeing it from the Shore. ..
2 comments:
I am really thankfull for you to share good info with all. you are requested to please let me know how can i block users to send email to outside or internet??
Any help would be appriciated.
Regards,
Rakesh
rakeshparth2003@gmail.com
Hi iam very thankfull to you to share this information
with regards
kishore kumar
Post a Comment