Sheriffs, when sued in their official capacity, may accept service, and when so sued with others may serve their codefendants and receive the fees allowed by law, except no fees shall be allowed for acceptance of service.