Server Fault is a question and answer site for system and network administrators. 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

i followed the instruction here:

i have a domain name name with hostnames www and @ pointing to my IP address. so how can i have emails sent to come to the server?

ideally i'd like to pipe them into some scripts and process them from there.

share|improve this question

closed as too broad by masegaloeh, HopelessN00b Jan 30 '15 at 7:45

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Thank you for sharing, but what is your question ? – Lucas Kauffman Jan 21 '12 at 21:42
how can i have emails sent to come to the server? – tipu Jan 21 '12 at 21:43

So normally you have an MX record pointing to your IP.

Postfix : You can do this by configuring your virtual domains and by using a vmail or maildir format.

One has many options to configure this either with mysql or simple textfiles.

Since this is too much to summarize in one post I suggest you take a look at this tutorial. Even though it is for Debian, it should work the same with ubuntu.

share|improve this answer
i just learned my server is technically working.. my attempt to email it was rejected: User unknown in local recipient table;. i guess that's another issue altogether, however – tipu Jan 21 '12 at 21:50
actually it's not, if you follow the tutorial you will come across all of these problems. It is because postfix can not find the user because you have not configured a database. – Lucas Kauffman Jan 21 '12 at 21:53

The first thing you will need to do is set up an MX record on your DNS for your domain, so other servers know what server handles the mail for that domain

Use this to check if you currently have an MX record:

And the BIND docs on Ubuntu will tell you about the different DNS record types if you need to add it:

Once you've got that set up you should see stuff in mail.log when you send emails to the domain

share|improve this answer

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