Question

Setting up a mail server and configuring email accounts under Linux / CentOS 5

Asked by: egoselfaxis

I recently set up my own linux dedicated server, and managed to get one of my websites up and running on it.  I now need to set up some kind of mail server and configure email accounts for the domain, however, .. and have no idea how to go about it.

I believe I have something called either "Cyrus Mail Server" or "Dovecot IMAP/POP3 Server" installed on my server (perhaps these are one and the same?).  Regardless, I suspect that it's all command line-driven, and I really have no idea what I'm doing.

Is there some kind of web-based interface that I can install and access in order to simplify the configuring of email addresses for my domains?  Or does it all have to be done at the command line?  Please let me me know where to begin.  

Thanks in advance,
- Yvan

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-09-24 at 06:14:35ID23758474
Tags

Linux

,

PHP

,

MySQL

,

CentOS

,

Apache

Topics

Email Servers

,

Linux

Participating Experts
3
Points
504
Comments
66

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Cyrus-Sasl
    I recently upgraded Cyrus-Sasl on my mailserver, and suddenly I can't use SMTP AUTH anymore. This is what I get from my maillog that involves sasl: Sep 5 20:26:16 [postfix/smtpd] smtpd_sasl_initialize: SASL config file is smtpd.conf Sep 5 20:26:16 [postfix/smtpd] sql_selec...
  2. Cyrus Imap on CentOs4 (RPM)
    Hi I thought I had this settled, but alas, SMTP auth with the supplied rpms of cyrus-imapd, sasl2 and sendmail on CentOs 4 does not work "out of the box". I've read many forums and had alot of advice, but I'm stuck. I've already got a CentOs box running with said...
  3. Webmail for Cyrus
    I thought that Cyrus IMAP incorporated its own webmail (where all I have to do is configure an Apache virtual host) but it looks like I need to install another program :( I want to avoid squirrelmail since I didn't like the interface and it has its own IMAP capability. I'm ru...
  4. Cyrus-IMAP server cannot be reached by user cyrus Eithe…
    Fresh install of Centos 5.2 I have installed webmin and have installed Cyrus-imap i keep getting the error: Cyrus-IMAP server cannot be reached by user cyrus Either it's not installed, it's stopped, or the module configuration is incorrect. I have gone in to SSH and tried: ...
  5. Ubuntu or CentOS for dedicated server?
    I'm in the process of ordering a dedicated server and not sure which OS to go with out of Ubuntu or CentOS?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: fosiul01Posted on 2008-09-24 at 06:17:53ID: 22559324

hahaha i was going to tell you, u didnot configure mailserver

ok for mail server you need to install sendmail

from comand prompt : yum install sendmail

let me send you  more instruction

 

by: fosiul01Posted on 2008-09-24 at 06:19:38ID: 22559337

if you dont have sendmail install then you need to install sendmail

but you have already installed then you dont need.

jsut need to configure.

if you type this command :  pgrep sendmail

if it return number that mean sendmail is running.

or try : service sendmail restart

see what happended

 

by: fosiul01Posted on 2008-09-24 at 06:27:22ID: 22559417

Ok just read fully your question again :

dovecot is for pop3 -> if you want to check email from your computer with outlook then dovecot would be helpfull

and Sendmail -> it will work as a mailserver.

Follow this instruction : http://www.howtoforge.com/howto_sendmail_smtp_auth_tls

it will show you , how to configure sendmail with SSl Certificatate for securing your sendmail

Follow everything Except : Now we can compile sendmail  , You dont need to install or compile sendmail.

let me know first if you have sendmail install or not , then we can carry on

 

by: egoselfaxisPosted on 2008-09-24 at 06:30:40ID: 22559449

Ok -- I had to log in as a super user in order to issue those commandsl.  Sendmail was not running, .. but typing "service sendmail restart" seems to have started the service.  

What now?  Is there some kind of web mail interface that I could install to simplify the setting up of email addresses?  

Thanks,
- Yvan

 

by: egoselfaxisPosted on 2008-09-24 at 06:32:13ID: 22559470

>> it will show you , how to configure sendmail with SSl Certificatate for securing your sendmail

If possible, I would prefer to set up sendmail WITHOUT an SSL Certificate. I don't have any SSL certificates for any of my domains, and would prefer to not have to purchase any if I can help it.

- Yvan

 

by: fosiul01Posted on 2008-09-24 at 06:36:12ID: 22559513

no you dont need to purchase, its open ssl, it will create a self certificate  for your server

you port 25 is closed, you need open port 25

iptables -A INPUT  -p tcp --dport 25 -j ACCEPT

and when you do  pgrep sendmail
you see some number is not it ??

 

by: fosiul01Posted on 2008-09-24 at 06:41:56ID: 22559564

you can use webmin , for configuring sendmail and to check email ( its actually sever configuration tool , not webmail) but you would be able to check emaiil from their

or you need to install webmail software

we will come to this lateron

 

by: Rance_HallPosted on 2008-09-24 at 07:18:24ID: 22559962

email users is a tricky subject.  all you should have to do is give the user a shell account on the box and he/she will have an email address.  But there is a way to add a "virtual user" to the email system without the need to give out shell accounts like candy.

There are three basic email setups you should look at.

1) sendmail is a tool that send messages to the internet and you can call it from web site scripts, etc to get messages OUT, but what about IN?

2) postfix  can be installed and updated with rpm packages and can handle virtual users

3) qmail -- qmail is a compiled from source mail server that is very compartmental in nature its hard to understand at first, but once you get it, its very powerful and very flexible.

 

by: ridPosted on 2008-09-24 at 07:50:29ID: 22560297

Postfix is mentioned above and I strongly recommend that for a beginner on mail servers. It takes care of incoming/outgoing mail. For POP3 and IMAP services, there are usually daemons installed and running that takes care of the requests from mail clients that come in on ports 110 or 143(?), you may have to check your current setup for this.

Postfix is controlled by a main configuration file and it's fairly comprehensible even for a non-expert on the subject. There is also a lot of good info on the postfix web site.

Unless your have large amounts of users, you can simplify things and just make ordinary users, it's not clear if this is a professional setup or a more relaxed environment.

Webmin is a very interesting web-based configuraion tool that can be installed on your server and allows remote control via a web interface (it's a GUI, not command line).
/RID

 

by: egoselfaxisPosted on 2008-09-24 at 14:13:37ID: 22564096

Ok -- I have access to webmin on my dedicated server, and just used it to install the postfix mail server.  What's the next step?  

Also -- fosiul01 --- I've typed the following at the command line while logged in as a super user:

iptables -A INPUT  -p tcp --dport 25 -j ACCEPT

I didn't see anything displayed at  the command line after I typed this in and hit enter, .. but I didn't get any error messages or anything either.  

And yes -- when I type "pgrep sendmail" at the command line, .. I see numbers (668 & 677).

What now?

- Yvan






 

by: fosiul01Posted on 2008-09-24 at 17:08:27ID: 22565215

u have send mail installed.u dont need to instal postfix. Stick with send mail. Tomorow i wil send u configuration 4r sendmail and how to use it with webmin and outlook.

 

by: egoselfaxisPosted on 2008-09-24 at 19:21:10ID: 22565834

I don't use outlook .. I use Thunderbird.  Not sure if that makes any difference, but thought I should mention it.  

Thanks,  though.  I'll wait to hear back from you tomorrow.

- yg

 

by: fosiul01Posted on 2008-09-25 at 00:49:26ID: 22566984

Hi, your Port 25 is closed.

Try this : telnet 25 localhost

Result : you will be connected to mailserver. ( let me know the result)

 lsof -n -i:25
(Past the result here)

Iptables -L
(past result here)

 

by: fosiul01Posted on 2008-09-25 at 01:01:24ID: 22567038

and do one more thing :

iptables --flush

it will flush all your iptables rule for time being,

let me know then i will check your port again

 

by: egoselfaxisPosted on 2008-09-25 at 06:31:31ID: 22568854

Here's what's returned when I type "telnet 25 localhost" at the command line:

25/localhost: Servname not supported for ai_socktype


When I type " lsof -n -i:25", I get the following:

COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 668 root    4u  IPv4 360426       TCP 127.0.0.1:smtp (LISTEN)
 

.. and when I type "iptables -L" I get the following:

Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere            tcp flags:ACK/ACK
ACCEPT     all  --  anywhere             anywhere            state ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            state RELATED
ACCEPT     udp  --  anywhere             anywhere            udp spt:domain dpts:1024:65535
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:terabase:samsung-unidex
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap
ACCEPT     udp  --  anywhere             anywhere            udp dpt:imap
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ndmp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:dnp
LOG        all  --  anywhere             anywhere            LOG level debug prefix `DROPPED = '
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


I've also typed "iptables --flush" at the command line (nothing happened - I just got returned to a prompt).

What's next?

- yg



 

by: egoselfaxisPosted on 2008-09-25 at 06:33:20ID: 22568870

Err, ... that just crashed my server dude.  Now I can't get in via SSH, .. nor is my website coming up. What am I supposed to do now?

- yg

 

by: fosiul01Posted on 2008-09-25 at 06:35:44ID: 22568897

yap, i knew this will happended!!!!

who told you to block all the incoming request to your server

Chain INPUT (policy DROP)   ??

You are blocking all the incomming request

so when you flushed your iptables, its now blocking all the incomming request to your server

can you access your server from control panel ???

 

by: fosiul01Posted on 2008-09-25 at 06:38:53ID: 22568929

if you can access your server from control panel, which you should be able to

use this :

iptables -P INPUT ALLOW
# iptables -P OUTPUT ALLOW
# iptables -P FORWARD ALLOW

then Service iptables save
then
service iptables restart

then past here again : iptables -L

 

by: egoselfaxisPosted on 2008-09-25 at 06:44:02ID: 22568994

No, I can not get in via the control panel (the webmin interface is on the same box).  Will a server restart remedy this?  

- yg

 

by: fosiul01Posted on 2008-09-25 at 06:44:41ID: 22569002

Sorry it was my fault, i should of check your iptables before telling you to flush your iptables

i am sorry for that,

like my vps server, i can access control pantel and frm control panel there is a ssh which will allow you to connect always


do you have something like this ??

 

by: egoselfaxisPosted on 2008-09-25 at 06:46:03ID: 22569011

No.  Will a server restart remedy this?

 

by: fosiul01Posted on 2008-09-25 at 06:47:01ID: 22569023

yes, server reboot would clear iptables again, it will take the default iptables .

do a reboot of whole server

 

by: fosiul01Posted on 2008-09-25 at 06:53:50ID: 22569083

any luck ??

is this your vps server ??

 

by: fosiul01Posted on 2008-09-25 at 06:54:57ID: 22569098

hold on, if its vps. then your vps provider should of provide you a control pantel.

what about that ?

 

by: fosiul01Posted on 2008-09-25 at 07:02:26ID: 22569198

its allwright isnot it??

 

by: egoselfaxisPosted on 2008-09-25 at 07:02:40ID: 22569203

No, it's not a VPS.

The server is now back up (I had the co-lo facility reboot the machine).

What's next?

- yg

 

by: fosiul01Posted on 2008-09-25 at 07:05:50ID: 22569248

ok

do

iptables -P INPUT ALLOW  

its should allow all trafiq to your server now,

problem is , we need to open your 25 port

Can you telnet like this : telnet localhost 25 ?? ( yes or not)

 

by: fosiul01Posted on 2008-09-25 at 07:16:37ID: 22569384

Ohh onee more thing

in /etc/mail/sendmail.mc

you need to delete  this oine :

from here :
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

to here

DAEMON_OPTIONS(`Port=smtp, Name=MTA')

then type :
make

then service sendmail restart

let me know when you are done

 

by: fosiul01Posted on 2008-09-25 at 07:28:56ID: 22569538

Ok you can do 2 things:

1.  iptables -A INPUT  -p tcp --dport 25 -j ACCEPT

and

in /etc/mail/sendmail.mc

you need to delete  this oine :

from here :
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

to here

DAEMON_OPTIONS(`Port=smtp, Name=MTA')

then type :
make

then service sendmail restart


Or

iptables -P INPUT ALLOW  
then
in /etc/mail/sendmail.mc

you need to delete  this oine :

from here :
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

to here

DAEMON_OPTIONS(`Port=smtp, Name=MTA')

then type :
make

then service sendmail restart


try the first one . if it workes then let me know, then will have to save the rule in iptables

 

by: egoselfaxisPosted on 2008-09-25 at 11:14:18ID: 22572292

I'm kind of nervous about running the following command:

iptables -P INPUT ALLOW

Please explain to me what this command will do, and if there are any risks associated with it.

Can you telnet like this : telnet localhost 25 ?? ( yes or not)

I already answered that question for you the other day. When I type that at the command line, I get the following:

25/localhost: Servname not supported for ai_socktype

- yg

 

by: fosiul01Posted on 2008-09-25 at 13:53:21ID: 22573757

if u dont want to allow al input trafiq then u just need to open port 25 as i said b4r. But why ur server saying it does nt suppot aisoket. I wil have to see tomorow as its night here.

 

by: fosiul01Posted on 2008-09-26 at 00:47:31ID: 22577381

Ok have installed cyrus ??

i guess yes, then shutdown cyrus

i think its by this : /etc/init.d/cyrus restart
or /etc/init.d/cyrus2.2 restart

then try to telnet localhost again

let me know the outcome

 

by: fosiul01Posted on 2008-09-26 at 00:48:07ID: 22577384

Sorry its stop , not restart

 

by: fosiul01Posted on 2008-09-26 at 01:03:39ID: 22577456

Also : I need some log file

when you will restart sendmail, try to get last few line of log from /var/log/messages

 

by: fosiul01Posted on 2008-09-26 at 01:06:36ID: 22577472

And also :
 I need the full error message here

you just said " 25/localhost: Servname not supported for ai_socktype"

is this the full error you are getting or is there any other line was there

sent me the full error message

 

by: egoselfaxisPosted on 2008-09-26 at 05:20:38ID: 22578642

When I try to stop the Cyrus service using either of the commands/paths you've indicated, .. I get a "no such file or directory" error message.  

I've checked the /etc/init.d folder on the server, and all I see in there that looks like it might be the cyrus server is a file called "cyrus-imapd".  

Should I try to stop that particular service?

Also -- The "25/localhost: Servname not supported for ai_socktype" error message is the only error message that I get when I try to telnet (there are NO other lines).

Lastly -- below are the entire contents of my messages log file:

Thanks,
- yg

----------------------------------------------------------------------------

Sep 21 04:03:03 DEDi163 syslogd 1.4.1: restart.
Sep 21 04:03:14 DEDi163 clamd[2170]: Database correctly reloaded (428240 signatures)
Sep 21 11:43:04 DEDi163 named[8420]: lame server resolving 'mirrors.arsc.edu' (in 'arsc.edu'?): 137.229.129.251#53
Sep 21 12:42:58 DEDi163 named[8420]: lame server resolving 'mirrors.arsc.edu' (in 'arsc.edu'?): 137.229.129.251#53
Sep 21 18:42:59 DEDi163 named[8420]: lame server resolving 'mirrors.arsc.edu' (in 'arsc.edu'?): 137.229.4.136#53
Sep 21 20:42:58 DEDi163 named[8420]: lame server resolving 'mirrors.arsc.edu' (in 'arsc.edu'?): 137.229.129.251#53
Sep 21 21:42:58 DEDi163 named[8420]: lame server resolving 'mirrors.arsc.edu' (in 'arsc.edu'?): 137.229.4.136#53
Sep 21 22:20:08 DEDi163 named[8420]: loading configuration from '/etc/named.conf'
Sep 21 22:20:08 DEDi163 named[8420]: atzilut.com.zone:22: file does not end with newline
Sep 21 22:20:08 DEDi163 named[8420]: zone atzilut.com/IN: zone serial unchanged
Sep 21 22:20:08 DEDi163 named[8420]: zone atzilut.com/IN: loaded serial 2004042601
Sep 21 22:20:08 DEDi163 named[8420]: zone atzilut.com/IN: sending notifies (serial 2004042601)
@
"messages" 650L, 57829C

 

by: egoselfaxisPosted on 2008-09-26 at 05:31:31ID: 22578750

By the way -- I've applied the updates to the sendmail.mc file.

When I typed "make" at the command line, .. I got the following warning message:

WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration.

... but the sendmail service seemed to restart without any problems.

- yg

 

by: fosiul01Posted on 2008-09-26 at 06:23:09ID: 22579181

ok u need to instal sendmail-cf package. Then do make then restart sendmail. Try stop cyrus-imapd as u said be4r. Like this service cyrus-imapd stop. Check speling pls as i m texing 4rm moblie. Let me know.

 

by: egoselfaxisPosted on 2008-09-26 at 06:26:12ID: 22579208

yum install sendmail-cf

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base

 

by: fosiul01Posted on 2008-09-26 at 06:36:36ID: 22579308

install these 2 repo

wget -c  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

then

rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Same again

wget -c http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm

rpm -Uvh rpm.....


then try again

let me know

 

by: egoselfaxisPosted on 2008-09-26 at 06:54:41ID: 22579487

http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Resolving apt.sw.be... failed: Temporary failure in name resolution.

 

by: fosiul01Posted on 2008-09-26 at 06:58:59ID: 22579535

 

by: fosiul01Posted on 2008-09-26 at 07:01:22ID: 22579554

this one
wget -c http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
wil tell you to install GCC or something, just do yum file name install

 

by: egoselfaxisPosted on 2008-09-26 at 07:14:07ID: 22579678

Resolving download.fedora.redhat.com... failed: Temporary failure in name resolution.

I think some other kind of problem has been introduced by the edits I've recently applied.  It looks like my server is not able to see any resources outside of it's own network.  Is there any for me to confirm that somehow?

 

by: fosiul01Posted on 2008-09-26 at 07:15:27ID: 22579694

yes, you are having problem

what edit did you do ??

 

by: egoselfaxisPosted on 2008-09-26 at 07:27:40ID: 22579822

I've done everything you've suggested in this thread.

 

by: fosiul01Posted on 2008-09-26 at 07:30:55ID: 22579855

ommm NO,

you server cant resolve any outside address
can you ping any host

like ping www.yahoo.com ??

what Ip tables rules did you apply ??

can you past here again your IPtables ?? iptables -L

and also you have change , sendmail config, which is nothing to do with resolving Ip.

 

by: fosiul01Posted on 2008-09-26 at 07:33:46ID: 22579893

and als0

have you checked that name server information is right in

/etc/resolv.conf ??

 

by: egoselfaxisPosted on 2008-09-26 at 07:48:50ID: 22580058

no, I can't ping any domains.  The only IP tables rule that I applied was the one to open up port #25.   Here is the output of iptables -L :


Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere            tcp flags:ACK/ACK
ACCEPT     all  --  anywhere             anywhere            state ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            state RELATED
ACCEPT     udp  --  anywhere             anywhere            udp spt:domain dpts:1024:65535
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:terabase:samsung-unidex
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap
ACCEPT     udp  --  anywhere             anywhere            udp dpt:imap
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ndmp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:dnp
LOG        all  --  anywhere             anywhere            LOG level debug prefix `DROPPED = '
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

 

by: fosiul01Posted on 2008-09-26 at 07:57:57ID: 22580157

if you try to ping what it say ??

and have you checked your resolv.conf ?? is your nameserver address alright ??

try to restart your server one more time, if your iptables give any problem it will fix it.

 

by: fosiul01Posted on 2008-09-26 at 08:09:45ID: 22580305

Or if you dont want to restart , then do service iptables restart

its till put your iptables same as before

then try again

 

by: egoselfaxisPosted on 2008-09-26 at 08:12:41ID: 22580338

ping: unknown host yahoo.com

My resolv.conf file contains the following:

nameserver 63.134.253.164
nameserver 127.0.0.1



 

by: egoselfaxisPosted on 2008-09-26 at 08:15:11ID: 22580366

I typed service iptables restart .. but I'm still not able to ping anything

 

by: fosiul01Posted on 2008-09-26 at 08:18:41ID: 22580414

can you ping 63.134.253.164 ??

 

by: fosiul01Posted on 2008-09-26 at 08:20:59ID: 22580437

hold on 63.134.253.164  is your IP address
how can it be your nameserver addres ??

name server address would your ISP Dns server address!!!

 

by: egoselfaxisPosted on 2008-09-26 at 08:24:33ID: 22580484

Because I'm running my own nameserver. .. You were the one who talked me through setting up DNS in another thread the other day, .. remember?

- yg

 

by: fosiul01Posted on 2008-09-26 at 08:31:33ID: 22580565

you are running your own Dns server

nameserever is different!!!!

nameserver IP would be your ISP dns server address. and your clients would your Gateway as nameserver.

find out what ip of your ISP dns server , and put that one in /etc/resolv.conf

then try to ping.



 

by: fosiul01Posted on 2008-09-26 at 08:35:20ID: 22580606

by the way

have you ever install any thing by yum ??

like this, yum program installed ??

 

by: ridPosted on 2008-09-28 at 11:21:31ID: 22592055

In your position I would now probably just wipe the machine and start over. Unless you're doing this for money or else on a professional basis, just install an Ubuntu version, possibly a server edition. Make sure you have enabled the web and mail servers. Configure postfix by its config file, seeking assistance on the postfix web site. Apache seems to have been up already, so copy that config (and your files, of course). Use your router for access control, it's much simpler. Just do NAT and port forwarding for the externally accessible services (mail and web server; ports 25, 110 + 80) to the server you're setting up. Don't let the server sit on a public IP! A router saves you many headaches, including configuring a Linux firewall. Use your ISP to hold DNS records, often it's part of your bargain or anyway not expensive.
/RID

 

by: fosiul01Posted on 2008-09-29 at 00:49:57ID: 22594476

Hi rid

I dont understand, why your suggestion is to reinstall whole OS and install debain for the problem he is facing!!!

i dont see any problem of Centos,

Reinstaling OS should be the last and last option , in linux i must say its realy rare. for windows it might be , but linux always there is solution I believe




 

by: egoselfaxisPosted on 2008-10-01 at 06:35:47ID: 22614025

Ok -- here's the deal ...

I got the tech support department at my colocation facility involved, and I am now able to ping domains at the command line again.  This means that I can connect to repositories and download RPMs.  However, I suspect that those steps may no longer be necessary.

I've recently learned that I can use my dedicated server's Webmin interface to do all sorts of things, .. which I'm learning is a lot easier (and safer) than using the command line interface.  So, .. that's what I'd like to do from here on in: use Webmin to configure my email server(s).

I have the Sendmail service running, and have verified that I am able to send email.  

I also have Postfix, Dovecot, and QMail servers installed (though none of these 3 services are currently configured or running).  

Ideally, I'd like to set up a mailserver that allows for the configuring of both POP email accounts, as well as forwarding email aliases. It might also be worth mentioning that I'll need to set up multiple email addresses for the multiple domains/websites that I intend to host on the same box (all using a single IP address).

Can anyone here talk me through the setting up of either of these 3 mail servers  (preferably whichver one is the easiest to configure -- like Postfix, perhaps)  using the Webmin console?  My goal is ..

1) To configure my Thunderbird email client with profile information that allows me to both SEND and RETRIEVE email for a single POP account for my atzilut.com domain

2) To set up a forwarding email alias for my atzilut.com domain that forwards to my gmail account

Thanks!
- Yvan


 

 

by: Rance_HallPosted on 2008-10-01 at 07:15:25ID: 22614472

There isnt a webmin modue for qmail, so if you want to use that I suggest you read the web page http://qmail.jms1.net

I am a contributor to that page and there is a TON of qmail related stuff there.

(word of caution, if you do try to go there, DO NOT use IE, the owner of that domain HATES IE, and will block your IE from viewing web sites.

postfix has plenty of documentation, and most of it is quite good, but Ive never used it.

postfix has the advantage of having a license that allows distro developers to compile it and distribute it as a package.

qmail has to be downloaded from source and compiled yourself to be legal.

sendmail is only 1/2 of an MTA meaning that it can only SEND mail, not receive it.

both postfix and qmail have sendmail replacement binaries that allow scripts that look for sendmail to actually find it and work.

I would uninstall sendmail, and install either postfix, or qmail  you dont need both.

Now, your postfix mailer needs a pop3 and or imap server to be able to connect your thunderbird directly to it.

depending on your ISP you cant send mail unless you use their outbound mail system.

so the way I get around that is to setup pop3ssl or imapssl and smtpssl

isp's usually dont block these ports.

 

by: egoselfaxisPosted on 2008-10-08 at 06:27:32ID: 22668738

Let me try this one last time ...

Can anyone here talk me through the setting up of POP email accounts and fwding email alias via the Webmin console? I have Postfix and Dovecot servers already installed and ready to be configured.  I just have no idea what I'm doing, and am hoping that someone can either talk me through it, or steer me to some kind of online step-by-step set of instructions on how to do so.  My goal is ...

1) To configure my Thunderbird email client with profile information that allows me to both SEND and RETRIEVE email for a single POP account for my atzilut.com domain

2) To set up a forwarding email alias for my atzilut.com domain that forwards to my gmail account

Thanks!
- Yvan

 

by: fosiul01Posted on 2008-10-08 at 06:33:11ID: 22668787

HI yah i didnot  read your last post , actually i thought why you are silent for long time!!

I never used postfix,

but could you just take a screen shot of webmin postfix configuration menu and attach here

i belive its same of sendmail.

 

by: ridPosted on 2008-10-08 at 06:43:25ID: 22668907

Webmin can handle new users thorugh System >> Users link. For just one or a few mail users, create ordinary accounts, seems simpler and I see no drawbacks.

To have any sort of mail traffic for Postfix to handle, you need to have a domain name, a proper DNS record somewhere (perhaps your ISP handles this?), including an MX record that points to your mail server (or firewall/router) external IP address. The router must do port forwarding of the incoming port 25 calls (SMTP traffic) to your server's internal IP. Postfix will handle it from there, delivering incoming messages to the mailboxes you have created (when you create the users, they will be created too...).

Configuration of Postfix is done through the main config file, see Postfix web site for good info.

I assume Dovecot does your POP3 daemon job and unless it's much more complicated than other daemons, you don't need to do much more than make sure it has started properly.

To get messages in Thunderbird, you set up a new e-mail account using the wizard, making sure you fill in proper address of your POP3 and SMTP server (if internal LAN connection, use the IP (e.g. 192.168.1.8); for external access you use the FQDN (e.g. mail.mydomain.com).

Forwarding will be a Postfix function and I must refer you to the Postfix documentation.

To be able to send mail out into the internet, your DNS record must have a reverse-lookup function or you will quickly be blacklisted as spammer. Make sure you set up Postfix correctly (it's pretty well restricted by default, but do check!) so it's not an open relay.

/RID

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...