postfix realyhost question

Discussion in 'Server Operation' started by gabrix, Jul 29, 2008.

  1. gabrix

    gabrix New Member

    Hi!
    I have my local postfix using smtp.gmail.com as relayhost.
    I have also a list of senders from different domains i want to use my local postfix.
    While for local users in $myorigin i want postfix to use gmail , for users in the list i want my postfix to send straight to the recipent not using gmail.com.
    I hope i was clear thanks !
     
  2. topdog

    topdog Active Member

    you may be able to use the sender_dependent_relayhost_maps feature of postfix, am not so sure if it will work with your setup but it works if you want users to use different relayhosts, am guessing if you leave relayhost blank and the lookup does not find the address in the file it will deliver directly but YMMV

    Sample lookup file will look like this

    Code:
    [email protected]           [mail.example.com]
    [email protected]           [mail.example.net]
     

Share This Page