in reply to Re^2: add text to each line of a file
in thread add text to each line of a file

And to complete the sed:
ypcat passwd |sed 's/:.*/@domain.local/'