check that your SMTP server setting under options/sending mail is “localhost” or 127.0.0.1

While you at it makes sure the same for your incoming server (POP3) is also set at “localhost”