Skip to content
Snippets Groups Projects
Select Git revision
  • 400c87f665aeb1f86309bb305b13c966e3f895a7
  • develop default
  • master protected
  • unicaen_authentification
  • 5.x
  • 4.x
  • release_4.0.0
  • bootstrap4_migration
  • laminas_migration
  • zf-3.x
  • 7.1.0
  • 7.0.0
  • 6.1.0
  • 6.0.1
  • 6.0.0
  • 5.0.1
  • 5.0.0
  • 4.0.2
  • 4.0.1
  • 4.0.0
  • 3.0.0
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
27 results

composer.phar

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    test_postfix_virtual.aug 1.04 KiB
    (*
    Module: Test_Postfix_Virtual
      Provides unit tests and examples for the <Postfix_Virtual> lens.
    *)
    
    module Test_Postfix_Virtual =
    
    (* View: conf *)
    let conf = "# a comment
    virtual-alias.domain     anything
    postmaster@virtual-alias.domain  postmaster
    user1@virtual-alias.domain       address1
    user2@virtual-alias.domain   
        address2,
        address3
    root    robert.oot@domain.com
    @example.net  root,postmaster
    "
    
    (* Test: Postfix_Virtual.lns *)
    test Postfix_Virtual.lns get conf =
      { "#comment" = "a comment" }
      { "pattern" = "virtual-alias.domain"
        { "destination" = "anything" }
      }
      { "pattern" = "postmaster@virtual-alias.domain"
        { "destination" = "postmaster" }
      }
      { "pattern" = "user1@virtual-alias.domain"
        { "destination" = "address1" }
      }
      { "pattern" = "user2@virtual-alias.domain"
        { "destination" = "address2" }
        { "destination" = "address3" }
      }
      { "pattern" = "root"
        { "destination" = "robert.oot@domain.com" }
      }
      { "pattern" = "@example.net"
        { "destination" = "root" }
        { "destination" = "postmaster" }
      }