LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-11-2007, 09:01 AM   #1
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Question Domain / mail server integration !!


Dear Friends,

sorry for this lengthy post. I hope you'll manage. I've two servers in different locations having public IPs running centOS 4.4. My domain/DNS in on first server, say example.com. I need to setup mail server for it (exim) on second server which has hostname as host1.anotherdomain.com.

I updated '/etc/named.conf' on first server to point mail server:
- - -
host1.anotherdomain.com. IN A w.x.y.z
example.com. IN MX 10 host1.anotherdomain.com.
mail IN CNAME example.com.
- - -
I've also installed exim (latest) in second server and updated first few lines of exim.conf:
- - -
#domainlist local_domains = @
domainlist local_domains = example.com
domainlist relay_to_domains = example.com
hostlist relay_from_hosts = 127.0.0.1
- - -
Also installed dovecot (latest) for imap access without applying any modification to its config.

Created a test user on mail server (testuser) for testing.

when running squirrmail from domain server, I'm able to login using testuser. But I'm not able to send or receive any mail. when trying to send its showing 'Server replied: 111 Can't open SMTP stream.', its may be due to that no smtp is there yet.

what should I install to provide smtp service?
Is domain and exim (mail server) integration good or needs changes?

guide me plz what to do next to have a fully working mail server...

thanks in advance for every word in reply

Jai
- - -
ek chota mota hindustani
 
Old 05-12-2007, 02:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah that really was the long way round... so basically squirrelmail can't connect to an smtp server? what have you the local smtp server to? squirellmail won't care about mx records and things, it just needs to connect to a consistent local smtp server, which will then shift the mail on from there. that error normally means there's no smtp server running locally, e.g. postfix, exim, sendmail, or squirrelmail hasn't been told to go to a suitable smtp service nearby.
 
Old 05-14-2007, 12:20 AM   #3
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
squirrelmail hasn't been told to go to a suitable smtp service nearby.
yeh! I also think so and dont know how... basically what I need:
1) after inserting mx record in dns, is it enough to connect my domain server to mail server? plz tell me.
2) what software should I install to provide smtp service in mail server?
3) run squirremail on domain server to access/send mails.. what next I should do?

plz help me out!

thanks

Jai
- - - -
ek chota mota hindustani
 
Old 05-14-2007, 02:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) depends what you really mean by "connect", but ostensibly, if you want to send email for bob@yourdomain.com then a normal smtp server will look up the mx entry for yourdomain.com and send it there.
2) well that's exim, you've already done that..?
3) check the squirrelmail docs. by default i *assume* it's looking for an smtp server on localhost, which there often is. a default installation of exim / postfix should be fine in most cases. alternatively you should be able to configure squirrelmail to explicitly point at a different box.
 
  


Reply

Tags
dovecot, exim, server, two



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
Postfix as a mail server for domain LJ151 Linux - Software 3 10-31-2017 04:54 PM
sending mail to another server using virtual domain shipon_97 Linux - Networking 1 11-30-2006 05:26 AM
mail server - no domain name jaymare Debian 2 04-02-2006 06:40 AM
Mail server without domain learn25 Red Hat 0 02-25-2004 03:52 AM
mail server doesn't know it's domain name!! clu94555 Linux - Software 17 09-05-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:43 AM.

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
Open Source Consulting | Domain Registration