Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i followed the instruction here:

https://help.ubuntu.com/community/Postfix

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

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

share|improve this 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 name@my-domain.com come to the server? –  tipu Jan 21 '12 at 21:43

2 Answers 2

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:

http://www.mxtoolbox.com/

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

https://help.ubuntu.com/community/BIND9ServerHowto

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

Your Answer

 
discard

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.