niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Qmail
reject all, but 10 mail accounts
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Narada-Center Tux-Group
*nix forums beginner


Joined: 21 Mar 2006
Posts: 8

PostPosted: Sun Jul 16, 2006 5:57 pm    Post subject: reject all, but 10 mail accounts Reply with quote

My senario is like this

metta.lk accept mail for a subdomain col7.metta.lk
and put all the mail into a seperate folder
for col7.metta.lk to collect at a later time using serial mail.

The number of accounts on this server is very small (10)

I would like to setup metta.lk to accept mail to
"these-10-accounts@col7.metta.lk"
and reject all other mails to "all-others@col7.metta.lk"

How do I do that ?

regards
Mettavihari
Back to top
Roman Levitskiy
*nix forums beginner


Joined: 08 Jul 2005
Posts: 32

PostPosted: Mon Jul 17, 2006 5:58 am    Post subject: Re: reject all, but 10 mail accounts Reply with quote

Quote:
I would like to setup metta.lk to accept mail to
"these-10-accounts@col7.metta.lk"
and reject all other mails to "all-others@col7.metta.lk"

Try RECIPIENTS extension from Erwin Hoffmann SPAMCONTROL patchset.
It is working fine for me, several domains and several hundred
adressee.

--
Roman.
Back to top
Russell Nelson
*nix forums beginner


Joined: 15 Mar 2005
Posts: 38

PostPosted: Mon Jul 17, 2006 8:58 pm    Post subject: Re: reject all, but 10 mail accounts Reply with quote

Narada-Center Tux-Group writes:
Quote:
metta.lk accept mail for a subdomain col7.metta.lk
and put all the mail into a seperate folder
for col7.metta.lk to collect at a later time using serial mail.

The number of accounts on this server is very small (10)

I would like to setup metta.lk to accept mail to
"these-10-accounts@col7.metta.lk"
and reject all other mails to "all-others@col7.metta.lk"

Assuming you set up the MX record appropriately, do this:

echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-0-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-1-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-2-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-3-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-4-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-5-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-6-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-7-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-8-account
echo ./Maildir-col7.metta.lk/ >~alias/.qmail-col7:metta:lk-this-9-account

echo col7.metta.lk:alias-col7.metta.lk >>/var/qmail/control/virtualdomains
echo col7.metta.lk >>/var/qmail/control/rcpthosts

svc -h /service/qmail

--
--my blog is at http://blog.russnelson.com | When immigration is
Crynwr sells support for free software | PGPok | outlawed, only criminals
521 Pleasant Valley Rd. | +1 315-323-1241 | will immigrate. Illegal
Potsdam, NY 13676-3213 | Sheepdog | immigration causes crime.
Back to top
Adam McKenna
*nix forums addict


Joined: 15 Mar 2005
Posts: 68

PostPosted: Mon Jul 17, 2006 9:11 pm    Post subject: Re: reject all, but 10 mail accounts Reply with quote

On Sun, Jul 16, 2006 at 05:57:46PM +0000, Narada-Center Tux-Group wrote:
Quote:
I would like to setup metta.lk to accept mail to
"these-10-accounts@col7.metta.lk"
and reject all other mails to "all-others@col7.metta.lk"

How do I do that ?

Use mailfront.

--Adam
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 10:34 pm | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Restricting postfix mail incoming only from Barracuda firewa gnewak Postfix 0 Thu Jul 03, 2008 12:57 am
No new posts Filtering internal mail and forwarding to another domain fmaa1 Postfix 0 Wed Apr 30, 2008 12:50 pm
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm
No new posts mail forwarding loop killersushi Postfix 0 Tue Jan 23, 2007 3:43 am

Credit Cards | Remortgages | McDonalds | Refinance | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2573s ][ Queries: 16 (0.1703s) ][ GZIP on - Debug on ]