LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-10-2009, 02:50 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Rep: Reputation: 16
mails


is it possible that without configuring sendmail in rhel 5 can we send mail to gmail or any other domain.

the secnario is what...i have written a script of disk space and the output will automatically send mail to client.

Thanks
 
Old 09-10-2009, 02:52 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

You could setup something like postfix to relay all your mail to Gmail. It worked for me. Have a look at the postfix website.

Kind regards,

Eric
 
Old 09-10-2009, 02:58 PM   #3
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
Thanks...You want to say configure postfix...any another way...
 
Old 09-10-2009, 03:00 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Sure there are other ways, postfix is just one of them, it's the one I used so I mentioned it here. It only took me like 6 lines of configuration if I recall correctly to set it up. I'm sure that if you Google for MTA or relay mail to Gmail, you come up with a lot of hits.

Kind regards,

Eric
 
Old 09-10-2009, 03:34 PM   #5
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
hi eric...just know what happen without configuring any mta in my server it sends a mail to gmail...is possible that i can track from which mta and smtp is used....
 
Old 09-10-2009, 03:45 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Sorry but I don't quite understand what you're saying. Did your server send out a mail to Gmail without you having configured anything? Is that what you want to say with your last post?

Kind regards,

Eric
 
Old 09-10-2009, 03:52 PM   #7
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
yes eric...how is it possible????

can i trace which mta my server used...
 
Old 09-10-2009, 04:11 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
I don't know how it's possible from this info. Do you have the mail that was send out? Are you sure nothing is running on your server that sends out mails? Do you have a relay server setup in your network, perhaps on another server? If you have the mail, could you post the header? That would show at least some more information.

Kind regards,

Eric
 
Old 09-10-2009, 04:29 PM   #9
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
yes there is some relay server that are used in our network..we are using exchange server..thats one of the reason...
 
Old 09-10-2009, 04:40 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by abhijeetdutta View Post
yes there is some relay server that are used in our network..we are using exchange server..thats one of the reason...
If you want to send mail out, you're going to have to configure SOMETHING. The computer isn't going to 'just know' where you want the mail to go, no matter who relays it further upstream.

Configure your postfix/sendmail/whatever to send emails to your internal relay then, and let it go from there.
 
Old 09-10-2009, 04:43 PM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Of course I don't know your setup but most likely your exchange server is setup to relay all mails from your lan. Since the server you mentioned is in your lan it might be that some process is sending mail via the exchange server. Were you able to find the mail and can you post the header here?

Kind regards,

Eric
 
Old 09-10-2009, 04:48 PM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by TB0ne View Post
If you want to send mail out, you're going to have to configure SOMETHING. The computer isn't going to 'just know' where you want the mail to go, no matter who relays it further upstream.

Configure your postfix/sendmail/whatever to send emails to your internal relay then, and let it go from there.
Hi TB0ne,

I might be mistaking but I think the OP has a problem with a server that apparently is sending out mail without having anything configured on it. At first I also thought that he wanted to configure something like postfix or sendmail, so I asked, believe in #6 for some clarification.
So in order to see where the mail originated from I asked OP to post the header.

Kind regards,

Eric
 
Old 09-10-2009, 04:49 PM   #13
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
ya thats right but i dont how the mail goes out..it surprised me..right now i am configuring send mail but i am getting some issue in .mc file...what is masquerade in mc file what are the changes needed in that..
 
Old 09-10-2009, 04:57 PM   #14
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
sorry guys i cant post header due to some security...some of the ip mention in header cant be out in any blog..its some thing mentioned in our client SLA..you can have any query in the header file or want to know some details i can asset you..
after going through THE header then i have post that may be exchange server is relaying..
 
Old 09-10-2009, 05:00 PM   #15
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Understandable that you cannot post the header entirely but you can go through it yourself step by step and retrace where it originated from.

Most likely your exchange is relaying but like TB0ne stated a server that has nothing configure to send out mails doesn't send them out, so you'll have to check your server in order to find out what process is mailing and via what agent.

Kind regards,

Eric
 
  


Reply



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
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
STRANGE:mailserver receives mails but is not able to send mails outside nics Linux - Server 1 05-04-2007 12:44 AM
Allow only local domain mails reject other mails sikkalgopal Linux - Server 0 04-03-2007 12:51 AM
Sendmai can send mails but unable to receive mails satimis Linux - Server 2 02-15-2007 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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