LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2011, 02:35 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
Red face simple mail server issue postfix/dovecot


Hi all,

i just installed postfix and dovecot, did simple configuration edits to .conf files, insalled squirrelmail aswell. it's opening but not sending and receiving mails. in outlook it says log on to incomming mail server pop3 failed. Please help me, i need to build a simple mail sever so that clients can use it either using squirrel mail or in outlook.

please help me how to build. i was wasting lot of time without sleep but i couldn't do. need a mail server on rhel 5 or 6, i'm using rhel 6

thanks in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-24-2011, 04:30 PM   #2
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
I am forgetting some steps of configuring the squirrel mail. But I can suggest one thing.
If you can- install webmin on your machine. Then login by browser
Here username is
Quote:
root
and password will be root's password.
Its a graphical frontend for many Administrative tasks.
I will get back to you once I recall my squirrel mail configuration
 
Old 09-24-2011, 11:59 PM   #3
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Rep: Reputation: 3
Although I haven't used postfix, I could help you with basic mailserver troubleshooting.

From the terminal of the mail server, post the outputs of (while logged in as root)

Code:
netstat -tnlp | grep :25

netstat -tnlp | grep :110

netstat -tnlp | grep :143

telnet localhost 25
If the connection above takes place, please try sending an email via telnet, as shown on this site.
You could try by sending yourself an email first, and seeing the result of that, try sending to outside domains.

Also while doing this, look at the /var/log/maillog file. Post the results of that as well.

And finally, post the outputs of the postfix and dovecot config files. Even if I can't help, it'll be useful for someone else who might be able to help you.

Last edited by ShanxT; 09-25-2011 at 12:01 AM.
 
Old 09-26-2011, 04:14 PM   #4
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
rahul and shan thanks for your response, it's working throug telnet or smtp, but i need to configure it using outlook or squirrel mail for clients, so please tel me what should i do to use mail clients like outlook with linux mail server

thanks
subbu
 
Old 09-28-2011, 12:25 PM   #5
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Rep: Reputation: 3
Configuring in Outlook is really simple.. You simple enter the relevant hostname (or IP address) and ports, and it should start working. It would be no different as compared to connecting to a Windows mail server. If you can't connect via outlook, see if it connects from that client to the server via telnet. Else, post the outlook error.

For squirrelmail, try following this page. Although it's outdated, the essence is still the same. You just have to download squirrelmail, untar it in /var/www/html, rename the folder to something like 'webmail', and then run ./conf.pl. After filling in the appropriate values (server name, imap settings, etc), edit httpd.conf, and voila! Squirrelmail works!
 
Old 09-29-2011, 06:30 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
To install squirrel mail you will need to download the tar file.
here is a link where you can find one

http://squirrelmail.org/download.php

make a directory inside /var/www/
Code:
#mkdir /var/www/mail
and unzip the file tar file inside this directory. You can use this command for that

Code:
#tar -tjvf squirrelmail.x.x.x.tar.bz2
you might also need php and php-imap to install PHP supports for Apache/IMAP.
Code:
#yum -y install php php-imap
Code:
#cd /var/www/mail
Now make one symlink for the squirrelmail.x.x.x

Code:
#ln -s squirrelmail.x.x.x/ mail
Now you can check the symlinks

Code:
#ls -l

Now just edit your apache configuration file with the virtual host entry

Code:
#vi /etc/httpd.conf
(at the end of the file)
Code:
<virtualHost 192.x.x.x:80>
   ServerAdmin mail@server.example.com
   DocumentRoot /var/www/mail/
   <Directory /var/www/mail>
   Options FollowSymlinks
   Order allow,deny
   Allow from all
</Directory>
</VirtualHost>
Here server is the name of your machine and example.com is the domain name so change as per your namchine hostname and domain name.
IP used is your machine's IP.
Restart the apache server
Code:
#service httpd restart
Now configure the squirrel mail server

Code:
#cd /var/www/mail/mail/config/

#./config.pl
Now follow the instructions to edit your squirrelmail as per your requirements.

You also might need to Create 'attach' and 'data' directories for SquirrelMail: /var/local/squirrelmail/{data,attach}
(if you go for default settings)

Change the ownership of both these files to apache
Code:
#chown -R apche:apache /var/local/squirrelmail/
Go to the browser and mention the ip of your machine
http://192.168.x.x/mail

you will get the login page

try logging with one of your self created user

*********************************************************************

If you are unable to send or receive mails

you will require to install dovecot for Imap server and smtp sendmail server

Last edited by deep27ak; 11-26-2011 at 03:35 AM.
 
2 members found this post helpful.
Old 09-29-2011, 07:31 AM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
For Outlook to access POP mail you have to configure Dovecot,
but all that and maybe more iredmail can do it for you, so you just need to install it and provide some configuration info through the setup process.

Don't hesitate to try it, it has a very good Webmail (Roundcube) and administration (Postfixadmin)

good luck
 
Old 09-29-2011, 05:54 PM   #8
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
Thank you for you all ShanxT,deep27ak and lithos. I tried all your steps installed configured postfix admin also. But i have small issue, i tried all in rhel5. But In rhel6 there is no squirrel mail. I want installed rhel6 on main server, can anyone of you tel me how to install it on rhel6 or any webmail client like squirrel mail.
Thanks for your time.
 
Old 09-30-2011, 03:26 AM   #9
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
maybe you can try roundcube
or somehow iredmail installation guide
with some minor differences between versions in the guide and iredmail available version
 
Old 09-30-2011, 05:02 PM   #10
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
hi, lithos thank you very much. you given me a great link, i'll try. but it's included with my sql, anyways i gave me a chnace to work with my sql aswell. but one small doubt isnt any web mail comes with rhel6 like squirrelmail with rhel5. ??

Thanks for your great link .
 
Old 11-25-2011, 01:48 PM   #11
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
deep27ak, really you are great man, it worked like that. thank you very much. I'm replying after quiet a long, but it was due to some reasons. Thank you very much. But only one mistake i did is, when i type my ip http://192.168.85.111, directly squireel mail opening. but i want as you written http://192.168.85.111/mail. Please tel me where did i do mistake.

thank you.

Last edited by Gil@LQ; 11-26-2011 at 01:49 AM.
 
Old 11-26-2011, 03:33 AM   #12
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by subbarao_ganeshna View Post
deep27ak, really you are great man, it worked like that. thank you very much. I'm replying after quiet a long, but it was due to some reasons. Thank you very much. But only one mistake i did is, when i type my ip http://192.168.85.111, directly squireel mail opening. but i want as you written http://192.168.85.111/mail. Please tel me where did i do mistake.

thank you.
What I did earlier was made an extra mail directory inside /var/www/mail and created a symlink for that additional mail directory so that when I type

Code:
192.168.0.100/mail---------->squirrelmail opens up
But you can create an alias entry at the bottom of httpd.conf like this

Code:
Alias /mail  /var/www/mail
<Directory /var/www/mail/>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>
and then try
Code:
192.168.0.xxx/mail
 
2 members found this post helpful.
Old 12-03-2011, 07:08 AM   #13
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
hi deep,

it's working fine now, but samll doubt, we can install squirrel mail in centos6 using yum command before that we need to configure EPEL repo on our server. but it's not possible on rhel6 due to RHN license, So in rhel6 one should install as you said. download squirrel mail , untar it, keep it in /var/www/mail and confure virtual host in httpd.conf. right? but if instal squirrelmail using yum install , it's working with any changes to httpd.conf how come it works and difference between it .. please

thank you.

one more is no php-imap in my rhel6 dvd repo. how could i do it?
 
Old 12-04-2011, 11:32 PM   #14
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I have not tried in RHEL6 with yum actually and am also not sure if that package is available by default in repo

but to clarify your doubts you can do this

Code:
#rpm -qa | grep squirrelmail
squirrelmail-x.x.x.x.el6.rpm
Code:
#rpm -ql | grep squirrelmail-x.x.x.x.el6.rpm
check out for the configuration files for the package and the files which are installed by this rpm

and for php-imap (it might affect performance)
this is one link which I found

http://squirrelmail.org/docs/admin/admin-10.html
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dovecot/Postfix server - some mail not arriving technomeister Linux - General 4 12-28-2012 03:05 PM
Is My Postfix-Dovecot Mail Server Secure Enough? bper Linux - Security 4 09-19-2010 07:19 AM
Postfix/Dovecot Mail Server Redundancy haariseshu Linux - Server 2 05-29-2009 06:55 AM
Postfix / Dovecot Mail Issue carlosinfl Linux - Server 2 05-06-2009 11:03 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 11:50 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration