LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2005, 11:44 AM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
send and receive mail using sendmail


Hello all,
Recently I got the task to setup sendmail so that users can send and receive mails both locally and also globally.
Say, my address is tanveer@xyz.com.bd
Using this address I should be able to send/receive mails to all local users(user@xyz.com.bd) and can also be able to send/receive mails from outer domains like tanveer@yahoo.com.
I am now following this link
http://www.linuxjournal.com/article/5507

My confusion is, as I have no DNS server so should I tell my ISP to set the MX record in their DNS?

.
Thanks in advance.

-Tanveer
 
Old 12-06-2005, 08:52 PM   #2
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Hi all,
I am following these steps and have some confusions.
PHP Code:
1.First lets say your machines IP is 192.168.19.17 and your DNS servers IP is 192.168.19.191
Question
:1= As we have no DNS so should I use ISP's DNS server's address?

2.Your Domain name is .com.bd 

[tanveer@loalhost root]# netconfig
Just put your machines IP in IP address192.168.19.199
Default Gateway 192.168.19.195
Primary Nameserver 
:192.168.19.195
Question
:2We are using another machine with proxy server so here should I put that machines IP as GW or the ISP's?

To make effect of the change now without rebooting just do following:
[tanveer@loalhost root]# service network restart

To change hostname to mail.xyz.com.bd just gave
[tanveer@loalhost root]# hostname mail.xyz.com.bd

[tanveer@loalhost root]#  vi /etc/hosts
Add this line
192.168.19.101      mail   mail.xyz.com.bd    xyz.com.bd

[tanveer@loalhost root]# vi /etc/sysconfig/network
Change the line with HOSTNAME from HOSTNAME=localhost.localdomain to HOSTNAME=mail.xyz.com.bd
GATEWAY=DNS_servers_IP

[tanveer@loalhost root]# vi /etc/resolv.conf
nameserver 192.168.19.195
search xyz.com.bd

[tanveer@loalhost root]# vi /etc/mail/access
Add the line  192.168.19.    RELAY

[tanveer@loalhost root]# vi /etc/mail/local-host-names
Add these two lines here
mail
mail.xyz.com.bd
or only the IP address of your machine which is
192.168.19.17

[tanveer@loalhost root]# makemap hash /etc/mail/access.db < /etc/mail/access

[tanveer@loalhost root]#  vi /etc/mail/sendmail.mc
just comment the line by typing dnl in front of that line, starting with DAEMON_OPTIONS and says something about loopback address(127.0.0.1).

[tanveer@loalhost root]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
[tanveer@loalhost root]# service sendmail restart
[tanveer@loalhost root]# vi /etc/services

uncomment the lines with imap and ipop3.
[tanveer@loalhost root]# vi /etc/xinetd.d/imap
Change the line with disable=yes to disable=no

[tanveer@loalhost root]# vi /etc/xinetd.d/ipop3
Change the line with disable=yes to disable=no

[tanveer@loalhost root]# service xinetd restart 
Can anyone help me answering the questions?
I think DNS address will be ISP's and GW address will be the machines IP which we configured as proxy server.
Thanks in advance.
BR
-t@nveer
 
Old 12-07-2005, 12:12 AM   #3
qs_tahmeed
Member
 
Registered: Nov 2003
Location: Bangladesh
Posts: 101

Rep: Reputation: 15
Hello!

Am also from BD. For going online with your mail server you have to first register your domain name.
Then you can either set up your DNS by your own or ask your ISP to redirect mail to your mail server,
that is to set up the MX records in their DNS Servers.

And if you are keeping your Mail Servers behind Proxy or if you are using private IP in your
mail server you need to do some NATTING that can be handled by your Proxy server so that your.
This was your gateway address for the Mail server will be the IP address of the PROXY server.

Bye...

In either way, if you are not using your own DNS servers, you have to use their DNS servers IP for
your local network.

Also you dont need both IMAP & IPOP3 at the same time - any one can serve your purpose.

Last edited by qs_tahmeed; 12-07-2005 at 12:21 AM.
 
Old 12-07-2005, 07:21 AM   #4
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Original Poster
Rep: Reputation: 39
Hi Tahmeed,
Thanks for taking your time.
Just as I thought but you cleared my confusions on those, so thanks.

BR
-Tanveer
 
  


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
Sendmail can send not receive abettertomorrow Slackware 6 01-22-2005 02:54 PM
Sendmail: Can receive but can't send. Hendon Linux - Networking 3 12-30-2004 10:41 AM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 08:31 PM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 05:45 AM
SENDMAIL: I can receive mail but timeouts when trying to send. mailq show deferred. adamrau Linux - Software 0 10-01-2001 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:30 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