<?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: Limiting who sendmail Relays TO in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934564#M577072</link>
    <description>I do understand that I can reject individual senders, what I???m looking to do is reject any attempt, no matter who the mail is from, to relay e-mail to any receiver outside of my domain. This will prevent spammers from using my SMTP relay as a device to send out spam (also called an open relay)</description>
    <pubDate>Tue, 25 Mar 2003 14:47:28 GMT</pubDate>
    <dc:creator>Richard Taft</dc:creator>
    <dc:date>2003-03-25T14:47:28Z</dc:date>
    <item>
      <title>Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934561#M577069</link>
      <description>I have two SMTP gateways set up outside my firewall.  I want to configure them so that they accept mail FROM: anyone, but who the mail is TO: is limited to a couple of IP addresses.  If an attempt is made to relay to any other host, then the relay is rejected.  I have tried many configurations with sendmail.cf and have used the M4 compiler to try and create the sendmail.cf.  Here is the input to the compile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;divert(0)dnl&lt;BR /&gt;VERSIONID(`$Id: generic-hpux10.mc,v 8.11 1999/02/07 07:26:02 gshapiro Exp $')&lt;BR /&gt;OSTYPE(hpux11)dnl&lt;BR /&gt;DOMAIN(generic)dnl&lt;BR /&gt;define(`_X400_UUCP_')dnl&lt;BR /&gt;define(`_MASQUERADE_ENVELOPE_')dnl&lt;BR /&gt;define(`confTRY_NULL_MX_LIST',`T')dnl&lt;BR /&gt;define(`LUSER_RELAY',`name_of_luser_relay')dnl&lt;BR /&gt;define(`DATABASE_MAP_TYPE',`dbm')dnl&lt;BR /&gt;define(`_CLASS_U_')dnl&lt;BR /&gt;define(`confLOG_LEVEL',`10')dnl&lt;BR /&gt;define(`confDOMAIN_NAME',`$w.mydomain)dnl&lt;BR /&gt;define(`SMART_HOST',`internalgateway.com')dnl&lt;BR /&gt;define(`MAIL_HUB',` internalgateway.com')dnl&lt;BR /&gt;define(`MASQUERADE_NAME',` internalgateway.com')dnl&lt;BR /&gt;define(`confMAILER_NAME',`smtp@mydomain.com')&lt;BR /&gt;FEATURE(accept_unresolvable_domains)&lt;BR /&gt;FEATURE(always_add_domain)dnl&lt;BR /&gt;FEATURE(access_db)dnl&lt;BR /&gt;FEATURE(`delay_checks')dnl&lt;BR /&gt;MAILER(local)dnl&lt;BR /&gt;MAILER(smtp)dnl&lt;BR /&gt;&lt;BR /&gt;Here are the contents of the access DB&lt;BR /&gt;&lt;BR /&gt;to:mydomain.com        relay&lt;BR /&gt;connect:smtphost.com     relay&lt;BR /&gt;to:anotherdomain.com         relay&lt;BR /&gt;connect:anotherdomain.com    relay&lt;BR /&gt;&lt;BR /&gt;Everything is working fine with the exception of relay attempts to addresses outside of  mydomain.com.  It just relays them too.  What I am attempting to set up is a closed or private relay hub.&lt;BR /&gt;&lt;BR /&gt;Rich Taft&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Mar 2003 22:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934561#M577069</guid>
      <dc:creator>Richard Taft</dc:creator>
      <dc:date>2003-03-24T22:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934562#M577070</link>
      <description>Have you tried:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sendmail.org/~ca/email/chk-dbg.html#ACCESS" target="_blank"&gt;http://www.sendmail.org/~ca/email/chk-dbg.html#ACCESS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also just for security;s sake you should be running 8.12.8&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sendmail.org" target="_blank"&gt;http://www.sendmail.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Mar 2003 23:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934562#M577070</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-03-24T23:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934563#M577071</link>
      <description>from my /etc/mail/access file&lt;BR /&gt;&lt;BR /&gt;localhost                       RELAY&lt;BR /&gt;Sabra2564i86@yahoo.com          550 Spam reject. We charge $500/spam message.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can reject mail from any domain you wish.  Then you have to rebuild the hash databases, start and stop sendmail and you're good to go.&lt;BR /&gt;&lt;BR /&gt;Here is a linux script that rebuilds the hash databases and start and stops the server.  You'll need to adapt it for hp-ux.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 25 Mar 2003 02:30:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934563#M577071</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-25T02:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934564#M577072</link>
      <description>I do understand that I can reject individual senders, what I???m looking to do is reject any attempt, no matter who the mail is from, to relay e-mail to any receiver outside of my domain. This will prevent spammers from using my SMTP relay as a device to send out spam (also called an open relay)</description>
      <pubDate>Tue, 25 Mar 2003 14:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934564#M577072</guid>
      <dc:creator>Richard Taft</dc:creator>
      <dc:date>2003-03-25T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934565#M577073</link>
      <description>Rich,&lt;BR /&gt;&lt;BR /&gt;Steven pointed out something: check to make sure your access.db file is more recent than your access file.  If it's not, the map being used by sendmail may not be the same as what's in the /etc/mail/access file.&lt;BR /&gt;&lt;BR /&gt;In our config, I just added the names or addresses of all the internal computers that would need to send out messages through the server.  The access file just has a list of those hosts with the RELAY option at the end.  Everything else should be dropped by default (according to the docs).&lt;BR /&gt;&lt;BR /&gt;localhost.localdomain       RELAY&lt;BR /&gt;localhost                   RELAY&lt;BR /&gt;127.0.0.1                   RELAY&lt;BR /&gt;internal.mail.server       RELAY&lt;BR /&gt;internal.mail.server2         RELAY&lt;BR /&gt;192.168.1.40                RELAY&lt;BR /&gt;192.168.1.160               RELAY&lt;BR /&gt;&lt;BR /&gt;I've got a question: why do you have the smart host pointing to your internal gateway?  If these servers are outside the firewall, aren't they the smart hosts?&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Tue, 25 Mar 2003 17:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934565#M577073</guid>
      <dc:creator>Seth Parker</dc:creator>
      <dc:date>2003-03-25T17:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934566#M577074</link>
      <description>This is an inbound only mail relay.  Our internal servers handle MX resolution on outbound mail.&lt;BR /&gt;&lt;BR /&gt;These servers have two purposes. 1) To act as buffers to out internal mail system and 2) to hide the E-mail conduit through the firewall.  So what I need to do is configure these servers to only relay mail that is TO: someone@ourdomain.com and reject everything else.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 14:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934566#M577074</guid>
      <dc:creator>Richard Taft</dc:creator>
      <dc:date>2003-03-26T14:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting who sendmail Relays TO</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934567#M577075</link>
      <description>Rich,&lt;BR /&gt;&lt;BR /&gt;If it's incoming only, you shouldn't need a smart host, just a mail hub.  Do you have the server's FQDN set in the /etc/hosts file in addition to the short name?&lt;BR /&gt;&lt;BR /&gt;Something else to try would be to put the mail hub's short and FQDN names in sendmail.cw (if you're using it).  That seems like a long-shot though...&lt;BR /&gt;&lt;BR /&gt;What version of sendmail is this?  If it's before 8.9 (which it doesn't look like it is), it'll relay by default.&lt;BR /&gt;&lt;BR /&gt;Sorry, but I'm running out of idea.&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Wed, 26 Mar 2003 15:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limiting-who-sendmail-relays-to/m-p/2934567#M577075</guid>
      <dc:creator>Seth Parker</dc:creator>
      <dc:date>2003-03-26T15:56:05Z</dc:date>
    </item>
  </channel>
</rss>

