email server

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: email server

Postby bigfoot65 » Sat Sep 05, 2009 8:51 pm

Hello,

If you want a viable email solution, try this tutorial http://www.howtoforge.com/virtual-users ... -fedora-10.

I have already built and compiled the needed RPMs, so I can make them available to you if you like. I have tried this and it works pretty good. It does take some time to complete and may require some slight modification to work with your system.

If I can be of any help, please let me know.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: email server

Postby rgmhtt » Sun Sep 06, 2009 6:01 am

If you want a viable email solution, try this tutorial http://www.howtoforge.com/virtual-users ... -fedora-10.

I have already built and compiled the needed RPMs, so I can make them available to you if you like. I have tried this and it works pretty good. It does take some time to complete and may require some slight modification to work with your system.
THANKS!

It does not seem like a good idea to run this on an AMAHI server. At least at this point. There will be at least mysql 'issues' to address.

But this looks like it would be reasonable to script and add to AMAHI by someone that understands AMAHI. Add FETCHMAIL to it, and you would have a winning offering to AMAHI users. With examples for fetching from gmail, yahoo, google, etc.

Probably in a week I will be interested in those rpms from you, but I am concerned that the QUOTA patch will be needed to do every time there is a new postfix build. Anyway to get the postfix people to do this in a better way?

Also the tutorial is unclear of what to do when you have more than one domain. It does seem that there is no domain specific items other than in the domain table, but I am just a worrier.

for disk allocation, it seems like all mail is stored under /home/vmail so that might be on a LVM partition by itself. The MySQL database requirements are small, you are not storing the mail in MySQL (as some mail systems do).

This really looks like a app for AMAHI.

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

Re: email server

Postby marcel » Sun Sep 06, 2009 7:50 am

Hmmm, maybe i also try this tutorial and test this with my own domain name. Bigfoot65 if you have the RPMs for me i will try this...
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: email server

Postby bigfoot65 » Sun Sep 06, 2009 10:00 am

A month ago or so, I had converted the tutorial into scripts (attached). I have tested this on an Amahi VM, but not a live box yet.

To begin, make a web app called 'webmail'. Then put the 3 scripts in that apps HTML directory. CHMOD 755 the scripts and run them from there as root. Execute the host-update-virtual-mail script first before the actual install. What this one will do is update the install-virtual-mail-1.0 script with your host settings.

Now, with that being said I recommend you double check the settings were updated before running the install script. I have also included an uninstall script which will remove everything as well.

In my tests, I did have a problem with 64-bit. There are some depends missing, however it did work fine with 32-bit. Hope this works for you. Please let me know if it does and if there is anything that might need tweaked in the script. I would like to get this working correctly with 64-bit, just haven't had the time to mess with it.

I hope one day that this can be made into an Amahi one-click install. Although not possible at this point due to permission requirements, I foresee this being reality in the near future.
Attachments
virtual-mail-1.1.tar.gz
(3.93 KiB) Downloaded 296 times
Last edited by bigfoot65 on Mon Sep 07, 2009 7:11 am, edited 4 times in total.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: email server

Postby bigfoot65 » Sun Sep 06, 2009 10:19 am

** This has been corrected in the attachment of the post above **

Sorry, forgot to make one minor change to the scripts.

In host-update-virtual-mail script, add these 2 lines right after the last comment line in the beginning of the script:

wget -q
http://files.getdropbox.com/u/1380867/v ... 1.1.tar.gz
tar xzvf virtual-mail-patch-1.1.tar.gz


Then in the install-virtual-mail-1.0 script, find those 2 lines and comment them out. The install script was designed to run without the first script, so that is why they are there. If you run the host-update-virtual-mail script, then the patch file is needed before the install script needs it.

Hope that makes sense. If you need any help, please let me know. I will post a revised script once I get the 64-bit sorted out.
Last edited by bigfoot65 on Mon Sep 07, 2009 6:39 am, edited 4 times in total.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

Re: email server

Postby marcel » Sun Sep 06, 2009 1:45 pm

Tomorrow evening when i'am home from work i'll give it a try... thanks for your explanation.
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: email server

Postby bigfoot65 » Mon Sep 07, 2009 5:32 am

I updated the attachment in the post above. Corrected a few mistakes. If you have any problems, please let me know.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: email server

Postby bigfoot65 » Mon Sep 07, 2009 11:27 am

I have been playing around a bit more with the virtual mail server scripts. I now have a single package that you can download (includes rpms and patch files) from here http://dl.getdropbox.com/u/1380867/virt ... 1.2.tar.gz (4.7MB).

Here's the sequence of events to get the virtual email server up and running:
  • 1. Create a web app in Amahi named webmail.
    2. Open a terminal window, become root, and navigate to the webmail directory.
    3. Download the file to this directory and extract it into the html directory of webmail.
    4. Run the host-update-virtual-mail-1.2.sh script.
    5. Once it completes, run the install-virtual-mail-1.2.sh script. The dependencies will be first and you must answer the prompt to continue.
    6. Watch the script for errors. At 2 points, you will have to provide responses for the script to finish successfully.
    7. At the first prompt for testing the pop3 server, just type quit.
    8. The second prompt you need to type ehlo localhost, then if everything appears ok then type quit.
    9. Once the script is complete, note the user name and password.
    10. Navigate to http://webmail and enter your login credentials.
You should now be in your account via webmail. There will be 2 messages, one is a welcome and the other is a SPAM test to show it's working. I forgot to mention that you can access the mail server from any email client as well within your network. Unfortunately, there is currently no front-end for administering accounts, so you will have to modify the database via phpMyAdmin or Adminer. This was tested on Amahi Fedora 10, 32-bit image.

I hope this works for you and if there are any suggestions or problems, please let me know. I want to make this an Amahi one-click app at some point, but it's going to require some revision. Users will still have to run the scripts manually of course.

NOTE: These scripts were adapted from a tutorial authored by Falko Timme at http://howtoforge.net/virtual-users-dom ... -fedora-10.

DISCLAIMER: Although this has been tested, use at your own risk. I cannot guarantee that it will work for your system or not cause any serious problems.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

Re: email server

Postby marcel » Mon Sep 07, 2009 12:21 pm

I installed the scripts. First the version numbers of the scripts are still 1.1 while the tar package is 1.2. My problem i can't logon to SquirrelMail. I used the password and username named in the script. Any idea?



ERROR
Unknown user or password incorrect.
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

User avatar
marcel
Posts: 160
Joined: Sat May 16, 2009 12:46 am
Location: Netherlands

Re: email server

Postby marcel » Mon Sep 07, 2009 12:45 pm

I found a password in the script. I used it and now i can logon but i'll get this error:

ERROR:
ERROR: Connection dropped by IMAP server.
My HDA cpu: E1400 2Ghz; motherboard: Gigabyte GA-G33M-S2H; memory: Team 2Gb DDR2; 200GB OS HDD, 2x western digital GP 1TB storage HDDs; case: Antec P182

Who is online

Users browsing this forum: No registered users and 17 guests