LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2003, 03:13 AM   #16
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15

Hi Joseph, i followed the above steps and after doing Cw, m4... now iam able to send email from linux box to external world but it was giving name@localhost.localdomain so i changed to abc.com in my /etc/hosts , after doing this aim getting user@abc.com. but when i give this linux ip in my outlook express smtp it is not able to send email and gives error messg as The connection to the server has failed. and gives the following messg :- ( i enabled ssl in outlook, without ssl also giving similar error).

Account: 'abc.com', Server: '192.168.1.5', Protocol: SMTP, Port: 25, Secure(SSL): Yes, Socket Error: 10061, Error Number: 0x800CCC0E.

and if i send any mail to user@abc.com from yahoo iam not able to receive so do i need to do something to chk the emails? and also if i send email to user1 locally and try to download from outlook iam able to download... what next
 
Old 09-05-2003, 03:31 AM   #17
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
in your windows machine try do telnet 192.168.1.5 25 and see the response (can connect or not)

off course you cannot receive email from outside such as yahoo, coz your mai server IP is not a public IP so no one will recognise your IP, you need a real IP in order to receive email from aoutside.

in /etc/hosts should contain like :
127.0.0.1 localhost localhost.localdomain
192.168.1.5 abc.com

then edit /etc/mail/access file and put your network IP like:
127.0.0.1 RELAY
192.168.1.0 RELAY

save it, restart your sendmail
 
Old 09-05-2003, 03:54 AM   #18
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
From my windows machine if i give telnet 192.168.1.5 25 it is refusing the connection and i will update access file and let u know, so i need to have real ip meaning the ip which they have created for my domain (abc.com), shd i use that ip by configuring one more ethernet card in this redhat box?....
 
Old 09-05-2003, 04:41 AM   #19
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Joseph, what i need to do to accept from windows machine if i give telnet 192.168.1.5 25?? and regarding public ip, i have one and i can use it without name i mean user1@ip, user2@ip .... so how do i go about now for this? to automatically receive emails when i give user@ip... thanks
 
Old 09-05-2003, 05:08 AM   #20
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
that not so simple if you wanna receive from outside you must have a little bit knowlegde of DNS, coz not only just giving the real IP you will receive mail from outside.

It is easy to configure email server inside intranet, but will be different if you want to configure it as public server.

OK let's go to the issue, check your sendmail.cf and find whether it contains 127.0.0.1 or 0.0.0.0, if contains 127.0.0.1 then u must change it to 0.0.0.0.

somethings too, please do telnet 192.168.1.5 110 fom your windows machine and see whether it show good response or not?
 
Old 09-05-2003, 05:54 AM   #21
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
now after changing it to 0.0.0.0 iam getting good response from telnet ip 25, and when i try to send emails to yahoo from redhat it is going but if i send it from outlook it gives error messg :-

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'pranesh18@yahoo.com'. Subject 'test', Account: 'mail.globytes.com', Server: '192.168.1.5', Protocol: SMTP, Server Response: '550 5.7.1 <pranesh18@yahoo.com>... Relaying denied. IP name lookup failed [192.168.1.103]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
 
Old 09-07-2003, 11:03 PM   #22
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Did you make relay in sendmail?
 
Old 09-07-2003, 11:04 PM   #23
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
you should create a neaw file call relay-domains
here the example:
vi /etc/mail/relay-domains
192.168.1.0 RELAY
yourdomain.com RELAY

try it
 
Old 09-09-2003, 03:27 PM   #24
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks joseph, it is working now... i want to setup a public mail server how do i go about..
 
Old 09-09-2003, 09:25 PM   #25
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Ok let do it.
I just figure out some simple way for, but first tell me how you make your connection to internet?
I mean by what? maybe with dial up or etc.
 
Old 09-09-2003, 10:20 PM   #26
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks joseph, i have a dedicated 512k internet connection ( leased line) with modem and router, can u plz guide me with the steps which u have found out. also presently in my current recently configured mail server iam using fetchmail to fetch all emails from my other domain i mean by putting a .fetchmailrc file in all users home dir something like this :-

set postmaster "user1"
set bouncemail

poll pop.domain.com proto pop3
user 'user1' there with password 'secret' is user1 here

but we have to put the password , it is not secured, is there any otherway to fetch mail without mentioning the passwd in readable mode something like it shd take the passwd from /etc/passwd or shadow so that nobody can see the passwd by editing .fetchmailrc.... thanks, now iam going out by tomm i will chk your reply and follow the instruction thanks again
 
Old 09-09-2003, 10:38 PM   #27
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
ok, let do it without messing up with complicated DNS:

1) Assign a real IP to your mail server.

2) Ask your ISP to forward your SMTP and POP port to your real IP ( your mail server IP). Maybe will take at least 6 hours or more for your IP to be recognize in Internet.

3) Remember to put your gateway's IP in your access and relay-domains.

Can you tell me did you have the right to access the other domain, i mean the domain which you using fetchmail to collect the mail, not on your working one?

Last edited by joseph; 09-09-2003 at 10:39 PM.
 
Old 09-10-2003, 09:26 PM   #28
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Hi Joseph thanks, i will ask my ISP to forward smtp and pop ports to the real ip in a day or two and update u, also i will foloww ur above given instructions. when i tried with fetchmail i was able to connect to other domain to collect email but as i told u in my previous thread i hv to mention user, passwd in the .fetchmailrc file so is there any otherway to fetch mail without giving the passwd visible ... thanks
 
Old 09-10-2003, 10:51 PM   #29
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Actually i don't quite familiar with fetchmail coz i never use this

before, but there is something i know that fetchmail have authentication for sending the passwd, it will try to fetch the mail without require passwd, then mask your passwd and attempt to send your passwd in the clear to aunthenticated to the server.

How about if you add some line like this:

set postmaster "user1"
set bouncemail

poll pop.domain.com auth password proto pop3
user 'user1' there with password 'secret' is user1 h

Or you can change the auth password to auth ssh.
Try it, but i am not sure it will works coz i never use this before.

But if you afraid this is not secure, you can use my method that i

use right now. I will add a forwarder list in the other domain mail server.

For Ex:
my server with domain xxxx.com and i have user called joseph, so my

email address is joseph@xxxx.com, joseph also have another account

in other doman called yyyy.com so when every time pranesh@hitech.com

mail to joseph@yyyy.com, the yyyy.com mail server will forward it to

my xxxx.com mail server so joseph@xxxx.com will receive the mail

from pranesh@hitech.com.

So you don't need to give any password to that server, you just

collect your mail from your mail server and the other mail server

will do the job to forward the mail to your mail server.
 
Old 09-17-2003, 08:18 AM   #30
Pranesh
Member
 
Registered: Jun 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Hi Joseph,

Now i have registered a domain say xyz.coma nd will take another 48 hrs to get activated also i hv asked those domain created ppl to set MX record. Now i have assigned my router ip ( public ip) to this domain xyz.com . so when i ping xyz.com it is pinging by showing my router ip. now in my redhat machine sendmail.cf i hv given Cw name as xyz.com and is it possible to give a link to the router ip i mean when i send an email to xyz.com it shd push it to my redhat machine, in redhat i hv created users redhat ip is diffeent from jy router i mean redhat ip is not a public ip). or in the router shd i do something to redirect mails to redhat box... plz advice thanks
 
  


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
Email Server Setup gmalleus Linux - General 1 08-11-2005 03:33 PM
Email Server Setup RHrulz Linux - Networking 2 11-19-2004 03:06 PM
want to setup an email server Finlay Linux - Networking 2 03-16-2003 03:59 AM
Help with email server setup..?? dalk Linux - Newbie 0 09-20-2001 11:45 AM
Email server setup hideo Linux - Networking 2 11-29-2000 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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