I'm currently trying to figure out how to configure sendmail.postfix in Red Hat 6 to work with exchange 2010 relay. I've already configured our exchange server to allow our web server to relay. What are the commands to do so?
How to configure sendmail.postfix to relay on exchange 2010?
postfix;sendmail;smtp
To use the postfix relay function, modify your /etc/postfix/main.cf file to include the following configuration:queue_directory = /var/spool/postfixcommand_directory = /usr/sbindaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixmail_owner = postfixmydomain = domain.commyorigin = $myhostnameinet_interfaces = localhostinet_protocols = allmydestination = $myhostname, localhost.$mydomain, localhostunknown_local_recipient_reject_code = 550relayhost = exchange2010.domain.comalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesdebug_peer_level = 2debugger_command =         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin         ddd $daemon_directory/$process_name $process_id & sleep 5sendmail_path = /usr/sbin/sendmail.postfixnewaliases_path = /usr/bin/newaliases.postfixmailq_path = /usr/bin/mailq.postfixsetgid_group = postdrophtml_directory = nomanpage_directory = /usr/share/mansample_directory = /usr/share/doc/postfix-2.6.6/samplesreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILESWhere the key entires that will need modifying to suit your local settings are:mydomain = domain.comSet this to your local domain.  myorigin = $myhostnameIf you want the mail to originate from the hostname of the client.  relayhost = exchange2010.domain.comThis is the FQDN of your exchange server.  Then reload / restart your postfix service:service postfix reload / restart