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 01-29-2002, 12:29 AM   #1
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Rep: Reputation: 30
mail.mydomain.com does not work


Hi,
I have created a POP account for my Linux machine(registered domain server having net connection).I am able to send and receive mails but when i acess pop through mail.mydomain.com it gives me 425 HTTP not found error .Can anyone help me to solve this problem

Regards
Saravanan
 
Old 01-29-2002, 11:46 PM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Angry not again!!!!

sarvanan .

i think u have been posting under differant subject the same matter for some time now.

tell me a few things :
1. ru hosting ur own domain ? or is it located at some other server and ur remotely accessing it ?
2. ur hosting it on ur own machine at ur site and have configured linux . if this is the case please give more tech details.

it helps other if u can provide more tech details at one go so as to avoid frustration of replying 6 to 8 times for a simple problem that could have solved in one email if the right information was provided.

regards,
xanthium.

 
Old 01-30-2002, 12:49 AM   #3
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
rE

Dear Vipul
I will clearly tell you my problem.
I am working in a s/w company as a PHP programmer,we are to shortly to launch a site devloped using PHP.In this site we plan to give free email ids to the registerd users of our site and hence an inbox facility for then.For this purpose i have written POP3 aceess type of inbox using PHP.Know i am able to acess mails from other sites by giving their pop addres.But i am not able to do so for my server,as it does not have a pop address.To do this i need POP acess for my server.Know i have opend my pop3s and ipop files and configured the pop and restarted the xinetd.Know if
use telnet localhost 110 i am able to get reply.But i am anot able to acess the pop using mail.mydomain.com.This is the adress i need to use in my program to obtain the mails from the server.

Regards
Saravanan
 
Old 01-30-2002, 02:23 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
This may be way off, but are you sure that the zone info in your DNS record knows that the canonical domain name of your mail server is actually: mail.mydomain.com

By default I think the MX record is built to point to mydomain.com...

Sorry if I'm off topic.

Cheers,

Finegan
 
Old 01-30-2002, 10:20 PM   #5
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Talking got ur point

Hi sarvanan ,

Look i will give u a small littel advice.
Procure a copy of RedHat Linux 7.x. Do FULL installation to ensure that popd ( if u need tcp wrapper based pop) is installed.
Now start pop service from /etc/xinetd/pop3 file.

Until now u should not have any problem. Now configure DNS on your machine for mail.mydomain.com. later configure sendmail for the same purpose. Restart appropriate service ( inetd, sendmail) etc.

so the important thing to know is that ur DNS should be configured properly .... specially MX records. For test purpose edit the /etc/hosts and /etc/host.conf ,/etc/resolv.conf, etc/nsswitch.conf appropriately and then try telnetting to ur pop server.... if done properly it will work .... so u can later or do name lookup thru BIND and not thru hosts file.

/etc/hosts ---- > will map host names to ip address.
/etc/nsswitch.conf ---> will set the if BIND should be consulted or hosts file for name resolution.... set it so that hosts file should be consulted first.
/etc/resolv.conf ---> set ur name server ie; ur own machine is the DNS server . u can put in a line like
nameserver 192.168.1.1

here iam assumin the ip address of ur linux box to be 192.168.....



/etc/host.conf --->This file specifies how names are resolved. similar to nsswitch.conf. u can put in a line here like
order hosts,bind

if ur not comfortable with setting up DNS then i suggest u read the DNS howto at www.linuxdoc.org ..... its the best.

NOTE : If i can suggest i would suggest u take a look at webmail and squirrelmail software ..... both provide the same functionality as that ur trying to achive. squirellmail is based on php or phython i guess. there are lots of other web based email as well.
try searching with keyword "webmail" on www.freshmeat.net .

hope this helps out for u.

regards,
Xanthium.

 
Old 01-31-2002, 12:09 AM   #6
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
thanks and stattus update

Dear Vipul
First my whole hearted thanks fr ur help.Know my curerent status is I am able to connect to the popserver
by giving the POP account as www.shipstaff.com instead of mail.mydomain.com,i am able to acess the mails of the users in the server.I am also able to send mails to the users in the site with address user@www.mydomain.com.Also the mails are send from the server as user@www.domainname.com.The domain account has been got from lanline.com and the domain does not reside in our server
Regards
Saravanan
 
Old 01-31-2002, 04:06 AM   #7
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Red face hi

Hi ,

>by giving the POP account as www.shipstaff.com instead of >mail.mydomain.com,

You mean to say ur able to the POP service on the domain shipstaff.com ?

>iam I am also able to send mails to the users in the site with >address user@www.mydomain.com.

well i will admitt this is the first time i have ever seen email id with the @www thing ....... funny ! ( but possible)

well so the domain is hosted at a remote end and u will be fetching mails from that end to ur linux box ... isnt it ?


now that ur able to send and receive emails , whats the problem ?

regards,
Xanthium.
 
Old 02-01-2002, 03:50 AM   #8
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
Re

Dear Vipul and Finegan
The problem was
1. the MX pointer pointed to domain.com
2.Know it has been changed to point to mail.domain.com
3.But still i am able to send and recieve mail in the form
of user@www.mydomain.com instead of user@domain.com.
Will adding a line in Cw mydomain.com in Sendmail.cf
solve this problem

Regards
Saravanan
 
Old 02-01-2002, 10:39 PM   #9
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
yeh

Re
Dear Vipul and Finegan
The problem was
1. the MX pointer pointed to domain.com
2.Know it has been changed to point to mail.domain.com
3.But still i am able to send and recieve mail in the form
of user@www.mydomain.com instead of user@domain.com.
Will adding a line in Cw mydomain.com in Sendmail.cf
solve this problem

Regards
Saravanan

__________________


Hi Sarvanan .

What u need is to use is the masquerade feature of sendmail.
Yeh the Cw feature should work ..... if ur using m4 util for generating ur config file then use

MASQUERADE_AS(mydomain.com)
FEATURE(masquerade_envelope)


in ur mc script.


Small Suggestion : Although sendmail is good enuf but quite intidimating for newbies...... other MTA's like postfix and qmail are much better than sendmail as far as security and speed is concerned but unlike sendmail they dont allow u to view and modify rulesets or add ur own processing capabiities so unixguruz prefer sendmail ...... i would ask u to consider postfix for ur site ! and pls dont bother with qmail .... its quite nasty to setup on RedHat !!!


regards,
Xanthium
 
  


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: stat=Deferred: Connection timed out with email.mydomain.com intranet_man Linux - Software 1 07-19-2005 11:04 AM
How to make PHPBB not show a directory listining www.mydomain.com/phpBB2/ fur Linux - Networking 3 04-26-2004 07:17 PM
Ping mydomain.com bulzbb Linux - Networking 7 03-16-2004 05:42 AM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 09:33 AM
POSTFIX - user@host.mydomain.com - why? bryman55 Linux - Software 1 08-17-2003 12:52 PM

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

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration