Blackhole e-mail address in Virtual Users setup in postfix

Discussion in 'Server Operation' started by knakka, Apr 24, 2008.

  1. knakka

    knakka New Member

    Hi,
    I followed http://www.howtoforge.com/virtual-users-and-domains-with-postfix-ubuntu-7.10 this how to create a mail server (without amavisd-new, SpamAssassin, and ClamAV) and it works great! What I'd like to do is, to add the functionality to REJECT mail from specific e-mail adddresses.
    Is there an easy way to add a table to existing mysql database with e-mail addresses so that postfix rejects as soon as it see it?

    Thanks much!
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. knakka

    knakka New Member

    Actually, the functionality that I'm looking for is:

    Current setup:
    I have setup virtual mail system for the domain example.com following your guide. I have also registered domain1.com, domain2.com and aliased all the users on domain.com to domain1.com, domain2.com etc using the forwarding table:

    source destination
    ------- ----------
    @domain1.com @domain.com
    @domain2.com @domain.com
    @domain3.com @domain.com

    so if I send a mail to user1@domain1.com it is delivered to user1@domain.com and so on.

    The functionality I'm looking for is, if any one sends an e-mail to user1@domain1.com, I'd like to REJECT the e-mail but accept user1@domain3.com to be delivered.

    How can I accomplish this...

    Thanks much
     
  4. falko

    falko Super Moderator ISPConfig Developer

Share This Page