Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to configure a Postfix mail server for the following scenario,

Assuming there are 200 users with user ids 20001 to 20200.

  1. Incoming emails of the Users having user ids from 20001 to 20100 should only be accepted when the sender domain is "aol.com", "rediff.com". Else the emails should be rejected.

  2. Incoming emails of the Users having user ids from 20101 to 20200 should only be accepted if their age is between 40 and 50 and the total number of emails in their maildir doesn't exceed 2000.

    • The birthday of the users will be stored in the MySQL db but not the age.

Please do suggest me with the suitable steps. I'm using Postfix MTA and MySQL db.

Thanks in advance.

share|improve this question
add comment

1 Answer 1

For both purposes the cleanest solution would be to create a policy service as described in SMTPD_POLICY_README.

share|improve this answer
    
Thanks for the reply. I have gone through the link which you have provided. I'm a newbie to postfix MTA configuration. Can you please provide me with any other referral links for ease of understanding ? Thanks ! –  user47064 Jun 29 '10 at 9:58
    
I'd suggest you to buy the book "Book of postfix". It's a must for anyone has to configure postfix –  Pier Jun 29 '10 at 10:00
    
@Pier Sure :) I'll get one soon. –  user47064 Jun 29 '10 at 10:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.