LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-30-2008, 09:08 AM   #1
markdjones82
LQ Newbie
 
Registered: Nov 2004
Location: Dallas
Distribution: Suse 9.1
Posts: 15

Rep: Reputation: 0
Setup sendmail to send outgoing mail to relay server


All,
I am trying to setup sendmail on my redhat box to send all outgoing mail to an existing server. That server will then forward it on to the address. I know I need to configure the .mc file and recompile, but not exactly sure what lines to edit. Any help?

-Mark
 
Old 01-31-2008, 01:43 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
i use postfix in our RHEL4 boxes relaying to an AIX machine
that is using sendmail.

in case you are interested to switch to postfix, i edit

/etc/postfix/transport

and added this line:

* :[a.b.c.d]

# a.b.c.d is the address of my aix machine

and in /etc/postfix/main.cf:

transport_maps = hash:/etc/postfix/transport
relayhost =

of course, in the AIX machine, my RHEL4 boxes are allowed to
relay.

but in my other aix systems, i've set in their /etc/mail/sendmail.cf
files the ff:

DSmachine_where_i_can_relay

and has cron job running with this command:

export NSORDER=local
/usr/sbin/sendmail -q


(since sendmail in my aix systems are not using
DNS for name lookups).

also, in machine_where_i_can_relay, the aix "clients" are
allowed to relay. i have /etc/mail/relay-domains with the following:

machine1.yourdomain.com
machine2.yourdomain.com


hth.
 
Old 01-31-2008, 02:46 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
You need to add this line (or uncomment it if it there already):

define(`SMART_HOST',`smtp.someserver.com')

Then build the .cf
 
  


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
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 03:00 PM
Mail Relay Server by using Sendmail raymond117 Linux - Security 2 05-11-2005 10:25 AM
How do I tell sendmail to use my ISP's outgoing mail server which needs name & psswrd Wolfy Linux - Networking 1 09-02-2004 03:16 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
SENDMAIL as an SMTP RELAY SERVER that can send email to internet. how? kublador Linux - Software 7 10-25-2003 08:43 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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