email server

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

Re: email server

Postby marcel » Tue Sep 08, 2009 9:40 am

Thats it is not working is no problem. I try to learn something from this. I try to understand Linux. :D Anyway i did a fresh install of fedora 10 32 bits. I ran the install scripts but still the same error. I think i found some error when i excute the host-update-virtual-mail-1.2.sh i'll get this output:

Code: Select all

Hostname: localhost.localdomain Host: localhost Domain: localdomain.
I think this is wrong. Hostname is correct but i thought host must be localhost.home.com and domain home.com. Do i have this right? How to check this manually?
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 » Tue Sep 08, 2009 4:28 pm

Well, I see what the problem is now. I need to add something for the hostname not being set. I will not work with localhost.localdomain unfortunately. It needs a fully qualified domain name (FQDN) to function correctly.

So, what you can do is skip the host-update-virtual-mail-1.2.sh script and only run install-virtual-mail-1.2.sh script. It will default to hda.home.com, but should work just fine. You will need to download the scripts and start over or you can delete the install-virtual-mail-1.2.sh and rename install-virtual-mail-1.2.sh.orig to install-virtual-mail-1.2.sh.

Also, you could set the hostname before running the scripts too. Using the desktop, go to system, administration, followed by network. When you select this, you will be prompted to enter your root password. Once the network panel opens, look for the DNS tab and change your hostname to hda. The DNS search path should be set to home.com. Ensure you select file and then save to make your settings permanent. You will need to reboot now. Once it is back up, you can now run the scripts.

I didn't realize you had the default hostname. I overlooked that part and I apologize. :oops: I will add something to the next release in the script to address this problem. Either way, it should work now. I would recommend you do the option you are most comfortable with doing. I hope this solves your problem. If not, please let me know.

Thanks for your patience and helping me test the scripts!
ßî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 » Fri Sep 11, 2009 2:24 pm

Well, I see what the problem is now. I need to add something for the hostname not being set. I will not work with localhost.localdomain unfortunately. It needs a fully qualified domain name (FQDN) to function correctly.

.
.
.

I didn't realize you had the default hostname. I overlooked that part and I apologize. :oops: I will add something to the next release in the script to address this problem. Either way, it should work now. I would recommend you do the option you are most comfortable with doing. I hope this solves your problem. If not, please let me know.

Thanks for your patience and helping me test the scripts!

Heh, heh, heh...

Look into my thread on the Installation forum about problems with installing AMAHI with a host name of hda.home.com...

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

Re: email server

Postby rgmhtt » Thu Sep 17, 2009 8:14 pm

I have just built my AMAHI server that will be my email server.

What are the current install instructions?

Though I don't know if I will have the time tomorrow, or if this will be a monday project.

BTW, it takes me a whole day to build a server.

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

Re: email server

Postby rgmhtt » Fri Sep 18, 2009 6:11 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.
I got this far and stopped, as the host script acted wrong.

The script determined:

Hostname: localhost.localdomain
Host: localhost
Domain: localdomain

This is all wrong. Per /etc/sysconfig/network:

HOSTNAME=klovia.htt-consult.com

Per /etc/hosts:

127.0.0.1 localhost.localdomain localhost klovia.htt-consult.com klovia

So can you help me out here before I proceed?

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

Re: email server

Postby rgmhtt » Fri Sep 18, 2009 6:16 am

10. Navigate to http://webmail and enter your login credentials.[/list]
I have implemented the password control for AMAHI per:

http://wiki.amahi.org/index.php/Passwor ... etup_pages

Obviously, I would only want email users to only access webmail.

How do I setup controls so that app access is properly controlled separate from AMAHI admin?

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

Re: email server

Postby rgmhtt » Fri Sep 18, 2009 7:43 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.
I got this far and stopped, as the host script acted wrong.

The script determined:

Hostname: localhost.localdomain
Host: localhost
Domain: localdomain

This is all wrong. Per /etc/sysconfig/network:

HOSTNAME=klovia.htt-consult.com

Per /etc/hosts:

127.0.0.1 localhost.localdomain localhost klovia.htt-consult.com klovia

So can you help me out here before I proceed?
I did some more testing. If I run 'hostname -fv' I get:

gethostname()=`klovia.htt-consult.com'
Resolving `klovia.htt-consult.com' ...
Result: h_name=`localhost.localdomain'
Result: h_aliases=`localhost'
Result: h_aliases=`klovia.htt-consult.com'
Result: h_aliases=`klovia'
Result: h_addr_list=`127.0.0.1'
localhost.localdomain

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

Re: email server

Postby bigfoot65 » Fri Sep 18, 2009 2:58 pm

I will need to update the host update script. What you can do manually to continue with install is to change all occurrences in the install script to match your hostname. The files listed in the host update script need to be updated as well.

Not sure if I will get it done today, but I will try. Thanks for the update and now maybe I can get it working right for everyone.
ßî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 » Mon Sep 21, 2009 2:01 pm

I will need to update the host update script. What you can do manually to continue with install is to change all occurrences in the install script to match your hostname. The files listed in the host update script need to be updated as well.

Not sure if I will get it done today, but I will try. Thanks for the update and now maybe I can get it working right for everyone.
Well I started looking into updating install-virtual-mail-1.2.sh

And I notice occurrences of home.com in it. In fact:

INSERT INTO `domains` (`domain`) VALUES ('home.com');
INSERT INTO `users` (`email`, `password`, `quota`) VALUES ('myhda@home.com', ENCRYPT('amahi'), 10485760);
INSERT INTO `forwardings` (`source`, `destination`) VALUES ('info@home.com', 'myhda@home.com');
INSERT INTO `transport` (`domain`, `transport`) VALUES ('home.com', ':');

should these be replaced with my REAL domain?

If you have the fixed stuff, I really won't be getting to this until late tonight.

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

Re: email server

Postby bigfoot65 » Mon Sep 21, 2009 2:11 pm

I have not had time to do a fix. You are correct, those insert statements are for the domain. They are updated by the host-update script normally. What I may do is prompt then user to verify if the hostname is correct in the script. If the user says no, then prompt them to enter it manually. This will then eliminate the problem.

I will try to get to it tonight. Hope that helps clarify things.
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 19 guests