LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-04-2011, 08:41 AM   #1
Mouglou
LQ Newbie
 
Registered: Apr 2011
Posts: 10

Rep: Reputation: 0
Send mail from already exist SMTP server


Dear all,

I come back to everybody cause I don't find an explicit how to do this!

In our internal network, I've created an email server with Postfix and
Dovecot. (Just for internal domain, no needed to go outside)

But I've some server which use linux too. All are on CentOS 5.5.

I would like to configure these servers to use my internal mail server for send email, and not configure sendmail or postfix on each server.

What I've to do exactly on each servers to use it?

I search on the web but I don't find something very explicit…

Thanks in advance

Mouglou
 
Old 04-04-2011, 08:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well sendmail should already be configured fine on the boxes to send mail out. you can configure it to use that server as a smart host if you wish, but you should already be able to send email to the domain that that supports given a suitable mx record being available. Note that you say you don't want to run sendmail etc, but the configuration you'd do IS to use sendmail or an equivalent. SMTP servers can be very flexible in terms of their remit, and running sendmail doesn't mean it's a big scary thing. Have a look on your servers, is sendmail not already there and running?
 
Old 04-04-2011, 09:01 AM   #3
Mouglou
LQ Newbie
 
Registered: Apr 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your fast answear!
Yes I configured my SMTP server with POSTFIX but other linux server could be configure with Sendmail, its not a problem.

So I look on a server and sendmail is on, but the line SMART_HOST is not configure with my internal domain.
If I change this with my internal domain, it will works?
What I've to type as command to register the news settings?

I use a howto from linuxmail.org to configure my SMTP server with Postfix/Dovecot and the SMTP Authentication.
Others settings need to be change?

Thanks,
Mouglou
 
Old 04-04-2011, 09:41 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
so if you wan tto shift mail off a server to a smart relay and do fine control there, then it's the SMART_HOST directive as you are aware. I would set that to a suitable hostname (which I would configure as a CNAME in my internal DNS (assuming there IS an internal DNS...) e.g.

Code:
define(`SMART_HOST',`[smtp.domain.com]')dnl
in the sendmail.mc and restart it.
 
  


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
Send secret copy of sent mail - SMTP - postfix froxxiieee Linux - Server 4 07-02-2010 11:15 AM
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 05:38 PM
Help needed to send mail using a remote smtp server with php s1mpl1c1ty Programming 4 09-19-2005 01:53 AM
smtp problems, can't send mail to other accounts servnov Linux - General 3 09-26-2004 09:17 PM

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

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