Liverpool will face Hearts in the playoff round of the Europa League qualifiers, while Newcastle United are up against Greek side Atromitos.
Liverpool will travel to Scotland for the first leg on August 23, while the return leg is exactly a week later at Anfield.
The other Scottish side in the draw, Motherwell, will face Levante of Spain and play at home first.
Full draw:
Anzhi Makhachkala (RUS) vs. AZ Alkmaar (NED)
APOEL (CYP) vs. Neftci PFK (AZE)
Atromitos (GRE) vs. Newcastle United (ENG)
Tromso (NOR) vs. Partizan Belgrade (SRB)
Vaslui (ROU) vs. Inter Milan (ITA)
Hearts (SCO) vs. Liverpool (ENG)
Athletic Bilbao (ESP) vs. HJK Helsinki (FIN)
Maritimo (POR) vs. Dila Gori (GEO) or Anorthosis Famagusta (CYP)
Molde (NOR) vs. Heerenveen (NED)
Debreceni (HUN) vs. Club Brugge (BEL)
Sheriff (MDA) vs. Marseille (FRA)
Trabzonspor (TUR) vs. Videoton (HUN)
Midtjylland (DEN) vs. Young Boys (SUI)
Slask Wroclaw (POL) vs. Hannover 96 (GER)
Dinamo Bucharest (ROU) vs. Metalist Kharkiv (UKR)
Horsens (DEN) vs. Sporting Club (POR)
Hapoel Tel-Aviv (ISR) vs. Dudelange (LUX)
Feyenoord (NED) vs. Sparta Prague (CZE)
Motherwell (SCO) vs. Levante (ESP)
Crvena Zvezda (SRB) vs. Bordeaux (FRA)
Lokeren (BEL) vs. Viktoria (CZE)
Lazio (ITA) vs. Mura 05 (SVN)
AIK Athens (GRE) vs. CSKA Moscow (RUS)
Legia Warsaw (POL) vs. Rosenborg (NOR)
Bursaspor (TUR) vs. FC Twente (NED)
Steaua Bucharest (ROU) vs. Ekranas (LTU)
Slovan Liberec (CZE) vs. Dnipro Dnipropetrovsk (UKR)
VfB Stuttgart (GER) vs. Dinamo Moscow (RUS)
PAOK (GRE) vs. Rapid Vienna (AUT)
Luzern (SUI) vs. Genk (BEL)
Zeta (MNE) vs. PSV Eindhoven (NED)