Liverpool will face either FK Renova or FC Gomel in the Europa League third qualifying round.
FK Renova from Macedonia and FC Gomel from Belarus will meet in the second qualifying round this month, with the winners to face the Reds.
Dundee United face a tough trip to Russia after being paired with Dinamo Moscow.
St.Johnstone will get a glamour tie against Marseille if they can overturn a two-goal first-leg deficit against Turkish side Eskihesirspor.
The third qualifying round is a two-legged tie due to be played on August 2 and 9 respectively.