Postfix relay domains, transports and virtual maps....

Discussion in 'Server Operation' started by veggieryan, Jul 15, 2007.

  1. veggieryan

    veggieryan New Member

    here is one for the postfix guru's
    I am trying to get a perl script working that accepts emails from list via a transport.
    When I add the following lines to main.cf relay_domains=domain.of.emaillist.com
    transport_maps = hash:/etc/postfix/transport

    /etc/postfix/transport contains
    Code:
    domain.of.emaillist.com drupal:
    
    and drupal is defined in master.cf

    i do the required
    postmap /etc/postfix/transport
    and check it with
    postconf transport_maps

    then restart postfix
    and do postfix reload for good measure...

    the problem is this:
    postfix gives error 550 "Recipient address rejected: User unknown in virtual alias table"
    and the mail to the list is not delivered.

    However, if I comment out the following line in main.cf
    #virtual_maps = hash:/etc/postfix/virtusertable

    then the email to the list goes to the proper relay "drupal" and all is well, EXCEPT that ALL regular email is lost because virtual_maps is not defined.

    So, my question is, how do I send email from a certain subdomain to the proper relay and still have all other regular mail delivered via the local relay?
    in other words, why is postfix looking in virtual_maps for email that I defined in relay_domains and transport_maps...

    what is the trick to this?
    could
    mailbox_transport = cyrus have anything to do with it?

    thanks gurus!
    ryan.
     
  2. veggieryan

    veggieryan New Member

    is this the wrong place to ask?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    No, but I don't know a solution...
     
  4. veggieryan

    veggieryan New Member

    where do the gods of postfix hang out?

    ;)
     

Share This Page