LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mails (https://www.linuxquestions.org/questions/linux-server-73/mails-754239/)

abhijeetdutta 09-10-2009 02:50 PM

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

EricTRA 09-10-2009 02:52 PM

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

abhijeetdutta 09-10-2009 02:58 PM

Thanks...You want to say configure postfix...any another way...

EricTRA 09-10-2009 03:00 PM

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

abhijeetdutta 09-10-2009 03:34 PM

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....

EricTRA 09-10-2009 03:45 PM

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

abhijeetdutta 09-10-2009 03:52 PM

yes eric...how is it possible????

can i trace which mta my server used...

EricTRA 09-10-2009 04:11 PM

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

abhijeetdutta 09-10-2009 04:29 PM

yes there is some relay server that are used in our network..we are using exchange server..thats one of the reason...

TB0ne 09-10-2009 04:40 PM

Quote:

Originally Posted by abhijeetdutta (Post 3677908)
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.

EricTRA 09-10-2009 04:43 PM

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

EricTRA 09-10-2009 04:48 PM

Quote:

Originally Posted by TB0ne (Post 3677921)
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

abhijeetdutta 09-10-2009 04:49 PM

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..

abhijeetdutta 09-10-2009 04:57 PM

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..

EricTRA 09-10-2009 05:00 PM

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


All times are GMT -5. The time now is 10:28 PM.