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 |
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. |
You need to add this line (or uncomment it if it there already):
define(`SMART_HOST',`smtp.someserver.com') Then build the .cf |
All times are GMT -5. The time now is 07:40 AM. |