Recently relegated Huddersfield Town will take on Lincoln in the first round of the Carabao Cup.
The draw, which took place on Thursday, was split into two regions - north and south.
Other standout fixtures include newly-promoted Salford City and Leeds United, as well as AFC Wimbledon taking on MK Dons.
Cardiff and Fulham - who finished 18th and 19th in the Premier League last season, will enter the competition in round two, alongside Premier League clubs not involved in European competitions.
Full draw for Carabao Cup First Round
North Draw
Grimsby Town v Doncaster Rovers
Nottingham Forest v Fleetwood Town
Bradford City v Preston North End
Blackburn Rovers v Oldham Athletic
Mansfield Town v Morecambe
Accrington Stanley v Sunderland
Scunthorpe United v Derby County
Huddersfield Town v Lincoln City
Middlesbrough v Crewe Alexandra
Shrewsbury Town v Rotherham United
Salford City v Leeds United
South Draw
Colchester United v Swindon Town
AFC Wimbledon v MK Dons
Oxford United v Peterborough United
Queens Park Rangers v Bristol City
Plymouth Argyle v Leyton Orient
Charlton Athletic v Forest Green Rovers
Gillingham v Newport County
Bristol Rovers v Cheltenham Town
Swansea City v Northampton Town