The U.S. Department of Justice announced Friday that the Atlanta-based company would also "take steps" to block illicit online drug dealers from using their delivery service.
The DOJ says the fine amount is the money UPS collected from suspect online pharmacies.
UPS won't be charged with any crimes. Its biggest rival, FedEx Corp., has also been a target of the federal investigation.
The investigation of the two companies stems from a global campaign to shutter illicit online pharmacies launched in 2005. Since then, dozens of arrests have been made and thousands of websites closed worldwide as investigators continue to broaden the probe beyond the operators.
MORE HBJ HEADLINES
Homegrown appliance retailer Judd & Black marks 75 years Watchdog: Too few air traffic controllers where needed most A $32B tally, but Boeing's 787 costs don't bother Wall Street Czech airline to buy 16 Boeing 737 Max jets Lockheed Martin separating unit, combining it with Leidos Apple forecasts rare sales drop