Inverurie Loco Works will make their Scottish Cup debut in the second round against Airdrie United after being given a first-round bye.
The Highland League outfit will entertain Second Division Airdrie on 20 December and will be one of six non-Scottish League sides in the Second Round.
East of Scotland amateur side Spartans entertain Highland League Buckie Thistle for the right to travel to face Second Division Alloa Athletic.
There is also a Highland derby between Third Division sides Elgin City and Peterhead in the first round.
Scottish Cup draw:
First round
Forfar Athletic v East Fife
Elgin City v Peterhead
Gretna v Dumbarton
Montrose v Albion Rovers
Stirling Albion v Queen's Park
Spartans v Buckie Thistle
Cowdenbeath v Edinburgh City
Clachnacuddin v Stranraer
Ties to be played on Saturday 22 November
Second Round
Inverurie Loco Works v Airdrie United
Montrose or Albion Rovers v Threave Rovers
Elgin City or Peterhead v Forfar Athletic or East Fife
East Stirlingshire v Cowdenbeath or Edinburgh City
Greenock Morton v Vale of Leithen
Clachnacuddin or Stranraer v Hamilton Academical
Alloa Athletic v Spartans or Buckie Thistle
Gretna or Dumbarton v Stenhousemuir
Stirling Albion or Queen's Park v Arbroath
Berwick Rangers v Huntly
Ties to be played on Saturday 20 December.