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

As title says i wanna full email support on my Debian 6.0 VPS.

  1. It can send/Receive emails thround roudcube or something
  2. I cann add more email accounts to my domain

I used Google and didn't find nothing that worked. I tried about five different tutorials and none worked.

Please help. All maills set to my mail comes to dead.letter file in my www root directory.

I have Apache, PHP5, SQL servers installed + Webmin CP. I host my website on that.

share|improve this question
    
What errors are you receiving? Did you check your log files to see why it isn't working? –  cole Dec 24 '12 at 15:55
    
Which log files? Where are these files located? –  xZero Dec 24 '12 at 17:18
    
That depends on which mail server you are using. Is it postfix/dovecot/exim? Should be in /var/log/ –  MitziMeow Dec 24 '12 at 23:09
    
I do not have any of these email servers. I have debian 6 32-bit with LAMP and sendmail server. I don't known how to configure any of these email servers you mentioned. I have no experience with that. :( –  xZero Dec 25 '12 at 0:18

1 Answer 1

up vote 2 down vote accepted

(1) Switch sendmail to postfix.

Default sendmail config is for local delivery only. That means mail root, mail local-username will work. Sending anything with a domain name will not work. It will NOT send to external email address. It will NOT receive any email from external.

sendmail is a solid email server package. However, due to its cryptic configuration format, less people are using/learning it. postfix, courier or exim are the norm now.

(2) Install Dovecot

postfix is for sending and receiving email. To pick up email remotely with pop3/imap4, you need dovecot or courier.

(3) Advice for Webmin

DO NOT MIX WEBMIN WITH MANUAL CONFIGURATION. <-- Repeat that 3 times!!

Webmin save all your settings in its own database, then write them to configuration files of different packages(eg. postfix, dovecot, etc). Every time you make a change with webmain and hit save/apply, it rewrite the configuration file.

For example, look at the following sequence

  1. use webmin to config postfix
  2. edit postfix configuration file by hand
  3. use webmin to change postfix settings

All changes in step 2 are lost.

If you are going to use webmin, configure everything with webmin, do the webmin way. No mixing!

share|improve this answer
    
Which is just one reason why you shouldn't use webmin. –  Michael Hampton Dec 25 '12 at 16:36
    
Thatnks. Thats really helps. Okay i installed everything from begining. Now how to use webmin to configure my server to have roundcube to send and recive emails? My domain mail.domain.com is already pointing to my server. –  xZero Dec 26 '12 at 15:27
1  
Install roundcube from command line. then configure from webmin. roundcube maybe a little tricky to configure. Post here or another question if you get stuck. –  John Siu Dec 26 '12 at 17:10
    
I configured my roundcube and now it says: Connection failed: Failed to connect socket: Connection refused) Something wrong with SMTP an IMAP When i configured it in roundcube i didn't typed username and password because i don't known. EDIT: –  xZero Dec 26 '12 at 21:54
    
Open a new question, then post a comment here, I will post comment over there, otherwise there will be too many comment here and we will be kick off this post. Happen to me before already, lol. –  John Siu Dec 26 '12 at 21:57

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.