i think you just lost the last char of the toml file extension: "L"
cargo run --release --features ”mainnet“ --example permanode $CONFIGPATH/config.toml
and ensure that the path to your config file is correct.
I don't really have much experience in permanodes nowadays, but I would expect that you set up your own Hornet node first, and connect your permanode to its MQTT port instead of connecting it to some "random" IOTA node from mqtt.iota.org. Perhaps you want to try that route if nobody has a better idea.