As rightly mentioned below
Add the domain in badmailfrom file locate in /var/qmail/control/ Secondly , I am sorry but I really hate customers who instead of taking action at their end and push other parties to get things done for them. As an service provider you should block their mail server and force them to take necessary action on their exchange mail server. From: Amit Dalia [mailto:[email protected]] Sent: 21 September 2010 12:36 To: [email protected] Subject: Re: [qmailtoaster] Block Mail Thanks Dhaval, Actually my server is QMT box is used as a filtering and relaying server for my client exchange server. Now problem is their exchange server is compromised and its relaying 1000s of spam mails to my QMT server. I don't have access to exchange server but client wants my QMT server to block all incoming as well as outgoing spam mails.Right now I have 5000 spam mails in my queue because of which delivery to genuine mail is getting delayed. How can I prevent and optimize my server. All from address is someting like mentioned below: asd...@*.hinet.net where * is any subdomain name. So how do I restrict *.hinet.net to enter my server. Regards, Amit At Tuesday, 21-09-2010 on 11:39 dhaval thakar wrote: On Tue, Sep 21, 2010 at 10:37 AM, Amit Dalia <[email protected]> wrote: Hi, Is there any way to reject the mail if anywhere in the headers there is a specific domain. I want to reject the mail for incoming as well as for outgoing to that domain. I don't care if the mail is coming from authenticated user account. Amit for incoming you can try qmail/control/badmailfrom -- Regards Dhaval Thakar http://www.linuxreaders.com/ http://www.ipguide.info/
