The Gills will begin their Carabao Cup campaign at home.
Gillingham will play Newport County at MEMS Priestfield Stadium in the first round of the Carabao Cup.
Steve Evans and his team will welcome the Welsh club to Kent, who reached the play-off semi-finals last season in Sky Bet League 2 under the management of former Gills midfielder Michael Flynn.
The tie is due to take place a few days after the club’s opening home league fixture of the season, which will take place against Burton Albion at Priestfield on Saturday August 10.
All EFL fixtures were announced at 9am on Thursday, with Gills facing an opening day trip to Doncaster who were beaten in the League 1 play-off semi finals by Charlton last month, who then went on to beat Sunderland in the final at Wembley.
The date of the fixture, along with ticket information, will be announced in due course.
Tranmere Rovers v Hull City
Grimsby Town v Doncaster Rovers
Wigan Athletic v Stoke City
Port Vale v Burton Albion
Nottingham Forest v Fleetwood Town
Bradford City v Preston North End
Blackpool v Macclesfield Town
Blackburn Rovers v Oldham Athletic
Mansfield Town v Morecambe
Accrington Stanley v Sunderland
Scunthorpe United v Derby County
Rochdale v Bolton Wanderers
Huddersfield Town v Lincoln City
Middlesbrough v Crewe Alexandra
Shrewsbury Town v Rotherham United
Sheffield Wednesday v Bury
Salford City v Leeds United
Barnsley v Carlisle United
Colchester United v Swindon Town
AFC Wimbledon v Milton Keynes Dons
Oxford United v Peterborough United
Queens Park Rangers v Bristol City
Plymouth Argyle v Leyton Orient
Wycombe Wanderers v Reading
Charlton Athletic v Forest Green Rovers
Gillingham v Newport County
Luton v Ipswich Town
Stevenage v Southend
Walsall v Crawley Town
Bristol Rovers v Cheltenham Town
Brentford v Cambridge United
Coventry City v Exeter City
Swansea City v Northampton Town
West Brom v Millwall
Portsmouth v Birmingham City
Ties are due to be played week commencing August 12.