<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to configure sendmail relay server in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623444#M40592</link>
    <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I need your help to configure a sendmail relay server on linux. My requirement is,&lt;BR /&gt;&lt;BR /&gt;I have few linux servers say serverA, serverB and serverC ( where sendmail was installed). Now, I would like to make serverC as a relay server so all the emails sent  from serverA, serverB ( or all the servers in this subnet) would send / direct emails to serverC and from where it would send emails to the exchange server and then will receive those emials to our outlook mailbox.&lt;BR /&gt;&lt;BR /&gt;Could someone explain how to make this configuration on serverC?&lt;BR /&gt;&lt;BR /&gt;I found some information on Google that I will need to go into /etc/mail/access on serverC and then edit as &lt;BR /&gt;serverA   RELAY&lt;BR /&gt;serverB   RELAY&lt;BR /&gt;10.8.16.  RELAY&lt;BR /&gt;&lt;BR /&gt;Is this ok? how does serverA, serverB knows that serverC is a relay or sent emails?&lt;BR /&gt;&lt;BR /&gt;Appreciate your help on this&lt;BR /&gt;&lt;BR /&gt;thanks</description>
    <pubDate>Sun, 25 Apr 2010 10:57:19 GMT</pubDate>
    <dc:creator>shankar!</dc:creator>
    <dc:date>2010-04-25T10:57:19Z</dc:date>
    <item>
      <title>How to configure sendmail relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623444#M40592</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I need your help to configure a sendmail relay server on linux. My requirement is,&lt;BR /&gt;&lt;BR /&gt;I have few linux servers say serverA, serverB and serverC ( where sendmail was installed). Now, I would like to make serverC as a relay server so all the emails sent  from serverA, serverB ( or all the servers in this subnet) would send / direct emails to serverC and from where it would send emails to the exchange server and then will receive those emials to our outlook mailbox.&lt;BR /&gt;&lt;BR /&gt;Could someone explain how to make this configuration on serverC?&lt;BR /&gt;&lt;BR /&gt;I found some information on Google that I will need to go into /etc/mail/access on serverC and then edit as &lt;BR /&gt;serverA   RELAY&lt;BR /&gt;serverB   RELAY&lt;BR /&gt;10.8.16.  RELAY&lt;BR /&gt;&lt;BR /&gt;Is this ok? how does serverA, serverB knows that serverC is a relay or sent emails?&lt;BR /&gt;&lt;BR /&gt;Appreciate your help on this&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 25 Apr 2010 10:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623444#M40592</guid>
      <dc:creator>shankar!</dc:creator>
      <dc:date>2010-04-25T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure sendmail relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623445#M40593</link>
      <description>Your /etc/mail/access configuration looks OK to me. But remember that usually you'll have to translate the human-readable /etc/mail/access file into a machine-readable /etc/mail/access.db (or something similar) to make the changes take effect. &lt;BR /&gt;&lt;BR /&gt;Depending on the Linux distribution, this might happen automatically when you restart sendmail, or you might have to do it yourself. If there is a file named "Makefile" in the /etc/mail directory, this might be as simple as:&lt;BR /&gt;&lt;BR /&gt;cd /etc/mail&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;If there is no /etc/mail/Makefile, you may have to learn how to use the "makemap" command; see "man makemap". Also search through your distribution documentation using keywords "sendmail" and "makemap".&lt;BR /&gt;&lt;BR /&gt;To make serverA and serverB send everything to serverC instead of trying to deliver them directly to destination, you need to set a "smarthost" on serverA and serverB.&lt;BR /&gt;&lt;BR /&gt;In /etc/mail/sendmail.cf file, there is a line that normally contains only the letters "DS" like this:&lt;BR /&gt;&lt;BR /&gt;DS&lt;BR /&gt;&lt;BR /&gt;To make serverC the smarthost for this server, you change this line to:&lt;BR /&gt;&lt;BR /&gt;DSserverC.full.name.example&lt;BR /&gt;&lt;BR /&gt;(i.e. "serverC.full.name.example" is supposed to be the fully-qualified domain name for serverC.)&lt;BR /&gt;&lt;BR /&gt;In some Linux distributions, you are not supposed to edit /etc/mail/sendmail.cf directly: in those distributions, sendmail.cf is automatically rewritten each time Sendmail is patched or updated. In that case, there should be a sendmail.mc file that is used to generate the sendmail.cf. To add a smarthost configuration through sendmail.mc, add a line like this to sendmail.mc:&lt;BR /&gt;&lt;BR /&gt;define(`SMART_HOST',`[serverC.full.name.example]')dnl&lt;BR /&gt;&lt;BR /&gt;Note the special single quotes used with the parameters: the sendmail.mc processing is extremely strict about proper syntax.&lt;BR /&gt;&lt;BR /&gt;Then find the command that regenerates the sendmail.cf based on sendmail.mc. It depends on distribution: it might be as simple as running "make" in the directory that contains the sendmail.mc, or it might be something like "m4 &amp;lt; sendmail.mc".&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sun, 25 Apr 2010 12:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623445#M40593</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-04-25T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure sendmail relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623446#M40594</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;sendmail.mc has a smart relay option which is pretty much self documented but requires m4 macro generation to generate a new sendmail.cf file.&lt;BR /&gt;&lt;BR /&gt;Simple DS relay is possible by un-commenting the DS section of sendmail.cf and merely restarting the sendmail daemon.&lt;BR /&gt;&lt;BR /&gt;For more see &lt;A href="http://sendmail.org" target="_blank"&gt;http://sendmail.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Apr 2010 01:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-sendmail-relay-server/m-p/4623446#M40594</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-04-26T01:27:51Z</dc:date>
    </item>
  </channel>
</rss>

