How to restrict users to send mail to outside domains
hi
How to restrict users to send mail to outside domains in qmail server, i have centos and qmail installed Amar |
Quote:
|
hi
i already mention doamins in rcphost still it send mail outside Regards Amar |
Add domains names to /var/qmail/control/locals and /var/qmail/control/virtualdomains then restart qmail and check.
|
thanks for reply
but still mail are going outside |
Hi,
You can put a non-existent host in the smtproutes file, so when qmail tries to deliver a message that is not local it fails with a "permanent error" You may also use queuelifetime to specify the time (e.g. 600) that the message stays in queue before it bounces back (default is 1 week) Regards |
i add abc in smtproute file and restart qmail but still mail go outside
Regards Amar |
Quote:
You need sometrhing like: Code:
:x.x.x.x The filename is smtproutes and it's located in /var/qmail/control/smtproutes |
Thanks very much
solved , but it does not give any error when i send to external id it just send but not receive on external id and any thing to do to get returned back error Amar |
You don't pay much attention to replies.
I've already told you, that you need to specify a small amount time in /var/qmail/control/queuelifetime, so yo don't have to wait a week to get the bounce back message. |
Hi
i entered 200 in /var/qmail/control/queuelifetime, and when i send message to outside mail i get delivery fail message after 1 week pls help Regards Amar |
Hi,
I don't know what you did, but I've just tested with a queuelifetime of 60sec and it worked, as you can see: Quote:
Even though there is no need to restart qmail, try to restart it and test to see what happens Regards |
i kept 200 in /var/qmail/control/queuelifetime, and restart but still not get bounce back i will baunce back after 1 week which is default values i think qmail not take value from queuelifetime need to edit any other files??
Regards Amar |
No, it's queuelifetime that specifies the time a mail stays in queue
What gives: Code:
/var/qmail/bin/qmail-showctl |grep queuelifetime Code:
echo 200 > /var/qmail/control/queuelifetime |
Hi
/var/qmail/bin/qmail-showctl |grep queuelifetime shows output as queuelifetime: Message lifetime in the queue is 200 seconds. queuelifetime~: I have no idea what this file does. and echo 200 > /var/qmail/control/queuelifetime shows nothing output Regards Amar |
All times are GMT -5. The time now is 01:12 PM. |