[SOLVED] How to restrict users to send mail to outside domains
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What reply are you waiting for? Have you done what was proposed in my previous post? And if yes, what happened?
You may also post some logs here to see what happens to an external email.
Also you didn't say how you've installed qmail.
Looks like qmailtoaster uses the same file and in the same location, even though it's default time is 86400 (1 day), so I don't know why it's not working for you.
Try to restart qmail again, flush the queue and watch or post here the relevant logs
All these mails in queue are to postmaster, except the one to yahoo. This one should expire after 200sec and sent back to sender. According to queue, the sender is amar.tlk@abc.in. If neither the sender is a local account, it will bounced after another 200sec to postmaster.
The fact is that your postmaster account is not correct (postmaster@mail). You should edit /var/qmail/alias/.qmail-postmaster and put in there your userid
BTW what's in your /var/qmail/control/locals file?
Hi
in /var/qmail/control/locals file contain mail.abc.in abc.in is my local domain
what is purpose of editing my id in /var/qmail/alias/.qmail-postmaster
in /var/qmail/control/locals file contain mail.abc.in abc.in is my local domain
They should be both in there, if you want to accept mail for amar.tlk@abc.in
Quote:
what is purpose of editing my id in /var/qmail/alias/.qmail-postmaster
postmater should be aliased to an existing account, if you want to be informed when there is some problem with your mailserver. If you are the administrator, it should contain your userid (eg. amar.tlk)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.