Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For testing emails I don't want to actually send an email out (and can't anyway as ISP blocks port 25).

I have installed Sendmail, and what I want to do is install a mail server on the same pc that is sending the email which I can simply send the emails to, and receive them on my pc.

so I am looking for a couple of guides.

  1. install and configure sendmail correctly for this.
  2. install and configure a mail server correctly for this.
  3. setup mail client (evolution) to connect to the mail server

Can anyone help with this?

share|improve this question
Is there a reason why you chose Sendmail over Exim, Postfix or others? – qbi Sep 6 '11 at 14:22
up vote 2 down vote accepted

Take a look here.

Forget about sendmail, it's just too complicated for testing purpuses. You'll need a program to receive emails (that would be postfix) and a mail delivery agent to get the mails to your client via POP3 or IMAP. This could be dovecot - to use with postfix just use the dovecot-postfix package. The guide mentioned above explains what you have to do.

share|improve this answer

Its actually pretty easy to enable sendmail to send mail out from localhost. Its just a single change in the default sendmail.cnf file , then start the sendmail service. I do this all the time with cron scheduled jobs that send emails. I don't remember the exact line number to edit but I know that its easy to spot if you just read through the config file.

share|improve this answer
see – aland Dec 2 '12 at 23:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.