I think SwiftMailer DiskKeyCache is unable to create the cache directory recursively. Please check your SwiftMailer spool directory in config.yml and make sure this path exists.
mkdir() doesn't create directories recursivey by default and DiskKeyCache doesn't force this behaviour.
Maybe the spool directory exists in your windows environment, but not in your linux env?