This is the configuration I use:
veto files = /._*/.DS_Store/.Trashes/.TemporaryItems/
delete veto files = yes
The second line allows vetoed files to be deleted. Otherwise, already existing vetoed files would be stuck on the drive.(Note that "._*" prevents HFS+/APFS extended attributes from being stored on the SMB drive.)