• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Running squirrelmail as localhost (works great!) ... Now I want it working for domain

dalearyous

Senior member
ok i am currently running CentOS 6 and i have everything working where i can send and receive email back and forth from the users on the domain localhost just fine. i am running postfix SMTP server and a dovecot IMAP/POP3 server with squirrelmail as my webmail.

what do i need to change in the machine so that i can setup this email to work for an actual domain i have. currently i have a virtualhost created for the domain i have in mind (i plan on hosting multiple domains).

i am guessing i would probably have to edit the following files?:
/etc/sysconfig/network
&
/etc/hosts
and probably go into squirrelmail and change the domain? /usr/share/squirrelmail/config/conf.pl

is there a guide anywhere? am i completely off? thanks!
 
Squirrelmail is just web front-end to a real mail server, so you need to configure Postfix and Dovecot for the new domains and SquirrelMail should "just work".
 
That's a pretty open-ended question and there's already numerous guides available for configuring Postfix and Dovecot, so is there something in particular you need help with?
 
It's been a while since I've set it up, so I can't help with any specifics, but pretty sure these links should help you:

http://www.postfix.org/VIRTUAL_README.html
http://wiki.dovecot.org/VirtualUsers

Those two have to be setup in conjunction with each other. Simply put, the postfix side of things will enable to accept mail from multiple domains and users setup at those domains, while the dovecot side will allow the users to login to said mail accounts to see the mail. Each email address will essentially be a virtual user.

On my main server I have a folder setup with a folder for each domain then each domain has a folder for each prefix of that domain for the mailbox.

It's a pain to setup at first when you are not sure, but once you have it setup, it's very easy to backup or reproduce on another server.
 
so everything works great now. i am using postfix.admin to create and manage all mailboxes for my domains.

one slight problem: squirrelmail interface is slow now! ... like if i am on the actual server and i launch firefox and try and login to any of the mailboxes i can count to five before the page finishes loading. used to not be this way. any ideas?

typical maillog entry for login:
Code:
Sep 22 00:46:26 localhost dovecot: auth: mysql: Connected to localhost (postfix)
Sep 22 00:46:29 localhost dovecot: imap-login: Login: user=<user@domain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25816, secured
Sep 22 00:46:29 localhost dovecot: imap(user@domain.com): Disconnected: Logged out bytes=44/697
Sep 22 00:46:31 localhost dovecot: imap-login: Login: user=<user@domain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25819, secured
Sep 22 00:46:31 localhost dovecot: imap(user@domain.com): Disconnected: Logged out bytes=400/5392
Sep 22 00:46:33 localhost dovecot: imap-login: Login: user=<user@domain.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25821, secured
Sep 22 00:46:33 localhost dovecot: imap(user@domain.com): Disconnected: Logged out bytes=251/1209

also,
is my /etc/hosts file incorrect? all it has in it is this:
127.0.0.1 localhost.localdomain localhost

and my network file in /etc/sysconfig? has this:
NETWORKING=yes
HOSTNAME="localhost.localdomain"

i feel like localhost.localdomain shouldn't be anywhere at this point?
 
Back
Top