<?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 Re: Sendmail configuration in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-configuration/m-p/3692366#M247432</link>
    <description>Did you re-compile sendmail?  by default, HP doesn't have mailertable builtin...best to download sendmail from sendmail.org...&lt;BR /&gt;&lt;BR /&gt;Setting up 'mailertable'&lt;BR /&gt;&lt;BR /&gt;To set up 'mailertable', you need to edit your sendmail .mc file and add the following line:&lt;BR /&gt;&lt;BR /&gt;FEATURE(`mailertable')&lt;BR /&gt;&lt;BR /&gt;After doing this, you need to using the script supplied with the Sendmail source to rebuild your configuration file.&lt;BR /&gt;&lt;BR /&gt;Now, open your new Sendmail configuration file and look for this (it should be in the first couple hundred lines of the file):&lt;BR /&gt;&lt;BR /&gt;Kmailertable hash /etc/mail/mailertable&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This defines where the 'mailertable' file should be, and in this case it is in /etc/mail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that, you need to add to /etc/mail/mailertable :&lt;BR /&gt;&lt;BR /&gt;example-domain.com esmtp940:[mx-blocked.example-domain.com]&lt;BR /&gt;&lt;BR /&gt;After editing this file, you must create a database map of this file for Sendmail to read. Do this by running:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/makemap hash /etc/mail/mailertable.db &amp;lt; /etc/mail/mailertable&lt;BR /&gt;&lt;BR /&gt;Stop/start sendmail...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Dec 2005 14:50:56 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2005-12-15T14:50:56Z</dc:date>
    <item>
      <title>Sendmail configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-configuration/m-p/3692365#M247431</link>
      <description>Gurus - &lt;BR /&gt;I set up the following in sendmail.cf:&lt;BR /&gt;&lt;BR /&gt;A way to use mailertable to route mail to the specified host on a different port.&lt;BR /&gt;&lt;BR /&gt;NOTE: Any occurence of '940' in this document can be changed to whatever port you want to use.&lt;BR /&gt;&lt;BR /&gt;1. First, you need to specify another listening port in your sendmail.cf on the blocked host. You can do this by adding the &lt;BR /&gt;following line:&lt;BR /&gt;&lt;BR /&gt;OOPort=940&lt;BR /&gt;&lt;BR /&gt;This will make sendmail listen on port 940 in addition to port 25.&lt;BR /&gt;&lt;BR /&gt;2. Specify a new 'relay mail header masquerading recipient rewriting' line in the sendmail.cf on the host that will be forwarding &lt;BR /&gt;the mail to your blocked host.&lt;BR /&gt;&lt;BR /&gt;This can be done by first copying the Mesmtp rewriter that looks like this:&lt;BR /&gt;&lt;BR /&gt;Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,&lt;BR /&gt;T=DNS/RFC822/SMTP,&lt;BR /&gt;A=TCP $h&lt;BR /&gt;&lt;BR /&gt;Next, modify it to look like this:&lt;BR /&gt;&lt;BR /&gt;Mesmtp940, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,&lt;BR /&gt;T=DNS/RFC822/SMTP,&lt;BR /&gt;A=TCP $h 940&lt;BR /&gt;&lt;BR /&gt;3. Now, you need to add your entry to your mailertable and indicate that you want to use 'esmtp940' instead of just 'esmtp'.&lt;BR /&gt;&lt;BR /&gt;example-domain.com esmtp940:[mx-blocked.example-domain.com]&lt;BR /&gt;&lt;BR /&gt;4. Make sure example-domain.com has been added to your relay-domains file, otherwise the host that will receive mail on port&lt;BR /&gt; 25 will not accept any mail for that domain.&lt;BR /&gt;&lt;BR /&gt;5. Restart sendmail. Try sendmail some mail and see if your unblocked host will forward mail it receives for the domain to the &lt;BR /&gt;blocked host on port 940.&lt;BR /&gt;&lt;BR /&gt;How do I complete step 3?  Where/what flags are used with this change?  Steps 1,2,4 and 5 were completed.  &lt;BR /&gt;Thanks,&lt;BR /&gt;Joan</description>
      <pubDate>Thu, 15 Dec 2005 14:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-configuration/m-p/3692365#M247431</guid>
      <dc:creator>Joan Blais</dc:creator>
      <dc:date>2005-12-15T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-configuration/m-p/3692366#M247432</link>
      <description>Did you re-compile sendmail?  by default, HP doesn't have mailertable builtin...best to download sendmail from sendmail.org...&lt;BR /&gt;&lt;BR /&gt;Setting up 'mailertable'&lt;BR /&gt;&lt;BR /&gt;To set up 'mailertable', you need to edit your sendmail .mc file and add the following line:&lt;BR /&gt;&lt;BR /&gt;FEATURE(`mailertable')&lt;BR /&gt;&lt;BR /&gt;After doing this, you need to using the script supplied with the Sendmail source to rebuild your configuration file.&lt;BR /&gt;&lt;BR /&gt;Now, open your new Sendmail configuration file and look for this (it should be in the first couple hundred lines of the file):&lt;BR /&gt;&lt;BR /&gt;Kmailertable hash /etc/mail/mailertable&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This defines where the 'mailertable' file should be, and in this case it is in /etc/mail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that, you need to add to /etc/mail/mailertable :&lt;BR /&gt;&lt;BR /&gt;example-domain.com esmtp940:[mx-blocked.example-domain.com]&lt;BR /&gt;&lt;BR /&gt;After editing this file, you must create a database map of this file for Sendmail to read. Do this by running:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/makemap hash /etc/mail/mailertable.db &amp;lt; /etc/mail/mailertable&lt;BR /&gt;&lt;BR /&gt;Stop/start sendmail...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2005 14:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-configuration/m-p/3692366#M247432</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-12-15T14:50:56Z</dc:date>
    </item>
  </channel>
</rss>

