OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Nebbe, Joelle (Joelle.Nebberim.co.uk)
Date: Tue Sep 11 2001 - 03:26:37 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Here's the way i would do it
     
     
    The postfix virtual file:
     
    -------------
    # domain 1
     
    domain1.com enabled
     
    bobdomain1.com <mailto:bobdomain1.com> bob
     
     
    # domain2
     
    domain2.com enabled
     
    foodomain2.com <mailto:foodomain2.com> foo
     
    ----------------
     
    then you remove domain1.com and domain2.com from your main.conf
    "mydestination" and the system will use the virtual entries to decide what
    gets delivered and what does not.
     
    (don't forget you need to run 'postmap')
     
    If you have lots of domains you'll end up creating lots of users and
    mailboxes. Another option is to have local mailboxes for users without
    giving them a "real" system username. That requires a pop server which can
    handle that kind of setup, but there are a few :)
     
    Joelle Nebbe
     

     -----Original Message-----
    From: Philip Murray [mailto:mephilth.net.nz]
    Sent: 11 September 2001 08:22
    To: postfix-userspostfix.org
    Subject:

    Hi,

    I've look at the archives of this mailing list, but I still can't figure out
    how to do this.

    I collect mail for multiple domains, at the moment I'm doing it with just
    Virtual domains in /usr/local/etc/postfix/virtual. This is how I want it to
    work

    Mail sent to:
    bobdomain1.com <mailto:bobdomain1.com> Gets delivered to localuser bob
    foodomain2.com <mailto:foodomain2.com> Gets delivered to local user foo
    bobdomain2.com <mailto:bobdomain2.com> Gets rejected, no such user

    Likewise,

    foodomain1.com <mailto:foodomain1.com> Gets rejected, no such user

    At the moment, I'm using virtual domains, but foodomain1.com
    <mailto:foodomain1.com> doesn't get
    rejected because foo is a local user (assuming domain1.com is in
    mydestination)

    How can I make it work as described above?

    Cheers

    --
    

    Philip Murray mephilth.net.nz <mailto:mephilth.net.nz>

    _______________________________________________________________________ Any opinions expressed in the email are those of the individual and not necessarily the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient.

    If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.

    If you have received this email in error please notify the IT manager by telephone on 0113 243 2701 _______________________________________________________________________

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users