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 |
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.
|
|
|
09-05-2003, 03:13 AM
|
#16
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
09-05-2003, 03:31 AM
|
#17
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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
|
|
|
09-05-2003, 03:54 AM
|
#18
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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?....
|
|
|
09-05-2003, 04:41 AM
|
#19
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
09-05-2003, 05:08 AM
|
#20
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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?
|
|
|
09-05-2003, 05:54 AM
|
#21
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
09-07-2003, 11:03 PM
|
#22
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
Did you make relay in sendmail?
|
|
|
09-07-2003, 11:04 PM
|
#23
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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
|
|
|
09-09-2003, 03:27 PM
|
#24
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
Thanks joseph, it is working now... i want to setup a public mail server how do i go about..
|
|
|
09-09-2003, 09:25 PM
|
#25
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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.
|
|
|
09-09-2003, 10:20 PM
|
#26
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
09-09-2003, 10:38 PM
|
#27
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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.
|
|
|
09-10-2003, 09:26 PM
|
#28
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
09-10-2003, 10:51 PM
|
#29
|
Member
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414
Rep:
|
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.
|
|
|
09-17-2003, 08:18 AM
|
#30
|
Member
Registered: Jun 2003
Posts: 46
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:32 PM.
|
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
|
|