Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-04-2005, 11:44 AM
|
#1
|
Member
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525
Rep:
|
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
|
|
|
12-06-2005, 08:52 PM
|
#2
|
Member
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525
Original Poster
Rep:
|
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 address: 192.168.19.199
Default Gateway : 192.168.19.195
Primary Nameserver :192.168.19.195
Question:2= We 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
|
|
|
12-07-2005, 12:12 AM
|
#3
|
Member
Registered: Nov 2003
Location: Bangladesh
Posts: 101
Rep:
|
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.
|
|
|
12-07-2005, 07:21 AM
|
#4
|
Member
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525
Original Poster
Rep:
|
Hi Tahmeed,
Thanks for taking your time.
Just as I thought but you cleared my confusions on those, so thanks.
BR
-Tanveer
|
|
|
All times are GMT -5. The time now is 04:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|