<?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:  make some users local only in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997643#M749306</link>
    <description>As you should already know you will want to do the following first.&lt;BR /&gt;&lt;BR /&gt;cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak&lt;BR /&gt;&lt;BR /&gt;then vi the file. Go to the section labeled&lt;BR /&gt;&lt;BR /&gt;################&lt;BR /&gt;#  local info  #&lt;BR /&gt;################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;add the line&lt;BR /&gt;&lt;BR /&gt;F{Internal}/etc/mail/intern.only&lt;BR /&gt;&lt;BR /&gt;around there.&lt;BR /&gt;&lt;BR /&gt;Then search for&lt;BR /&gt;&lt;BR /&gt;SLocal_check_rcpt&lt;BR /&gt;&lt;BR /&gt;add the ruleset lines there. Save the file, restart sendmail, then test it out.</description>
    <pubDate>Thu, 10 May 2007 19:11:38 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2007-05-10T19:11:38Z</dc:date>
    <item>
      <title>sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997637#M749298</link>
      <description>We have one internal mail server (HPUX: sendmail).&lt;BR /&gt;&lt;BR /&gt;It currently has our anti-spam gateway as the relay host.  All non-local email is sent on to the anti-spam gateway via sendmail.&lt;BR /&gt;&lt;BR /&gt;We have a company policy here - only certain users are permiited to use "internet" (non-local) email.&lt;BR /&gt;&lt;BR /&gt;I need to find some method of preventing these users from sending email to domains other than ours.&lt;BR /&gt;&lt;BR /&gt;I already have the list of users permitted to send outside email.  They are in the sendmail user db:&lt;BR /&gt;&lt;BR /&gt;/etc/mail/userdb.db&lt;BR /&gt;&lt;BR /&gt;This was orginally set up for another reason, to give them "pretty" email addresses and to mask their ugly login ID, such as:&lt;BR /&gt;&lt;BR /&gt; aem:mailname   emiller@applicatorssales.com&lt;BR /&gt; emiller:maildrop   aem&lt;BR /&gt;&lt;BR /&gt;So the list of allowed users is already in there.  Anyone without a userdb entry should be only be using email locally.&lt;BR /&gt;&lt;BR /&gt;Anyway perhaps that's not useful but does anyone know of a good method for accomplishing this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 10 May 2007 10:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997637#M749298</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-10T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997638#M749300</link>
      <description>Shalom Fred,&lt;BR /&gt;&lt;BR /&gt;You are using a standard sendmail function to do the job. There is nothing wrong with it.&lt;BR /&gt;&lt;BR /&gt;Other options to let users go to the gateway.&lt;BR /&gt;&lt;BR /&gt;/etc/aliases&lt;BR /&gt;&lt;BR /&gt;local outside@yahoo.com:&lt;BR /&gt;&lt;BR /&gt;This will push the mail to an outside user which can be on your network.&lt;BR /&gt;&lt;BR /&gt;virtusertables genericstables entries do the same thing, tell the system to look for a domain on outside accounts (genericstable) same basic system as aliases without the colon on the end.&lt;BR /&gt;&lt;BR /&gt;However all methods are equally ugly and yours works. If its not broken why are you trying to fix it? What are we trying to prove?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 May 2007 11:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997638#M749300</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-10T11:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997639#M749302</link>
      <description>You can try this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sendmail.org/~ca/email/restrict.html" target="_blank"&gt;http://www.sendmail.org/~ca/email/restrict.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 May 2007 11:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997639#M749302</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-05-10T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997640#M749303</link>
      <description>Steven, sorry I wasn't clear.  The userdb works in that it does replace the user's name with the prety version (i.e. fmartin instead of xfm).&lt;BR /&gt;&lt;BR /&gt;What I'm trying to do is to prevent users that are -not- in the userdb, from sending external mail at all, only local email.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 10 May 2007 12:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997640#M749303</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-10T12:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997641#M749304</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Then redirect them to local accounts with genericstables. That should be the default anyway. I like the link you bunnied thats where I learned this stuff.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 May 2007 12:41:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997641#M749304</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-10T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997642#M749305</link>
      <description>Court,&lt;BR /&gt;&lt;BR /&gt;The rule described in that link looks like it would do the trick.  I can easily come up with a script to create an intern.only list based on local users that are not already in my userdb.&lt;BR /&gt;&lt;BR /&gt;I'm not sure where to insert the ruleset into the cf file though.&lt;BR /&gt;&lt;BR /&gt;Is the F command as shown to be taken literally or is {Internal} a parameter that I replace with something meaningful?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 10 May 2007 16:10:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997642#M749305</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-10T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997643#M749306</link>
      <description>As you should already know you will want to do the following first.&lt;BR /&gt;&lt;BR /&gt;cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak&lt;BR /&gt;&lt;BR /&gt;then vi the file. Go to the section labeled&lt;BR /&gt;&lt;BR /&gt;################&lt;BR /&gt;#  local info  #&lt;BR /&gt;################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;add the line&lt;BR /&gt;&lt;BR /&gt;F{Internal}/etc/mail/intern.only&lt;BR /&gt;&lt;BR /&gt;around there.&lt;BR /&gt;&lt;BR /&gt;Then search for&lt;BR /&gt;&lt;BR /&gt;SLocal_check_rcpt&lt;BR /&gt;&lt;BR /&gt;add the ruleset lines there. Save the file, restart sendmail, then test it out.</description>
      <pubDate>Thu, 10 May 2007 19:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997643#M749306</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-05-10T19:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997644#M749307</link>
      <description>I get no errors from sendmail when restarting but the additions don't seem to have any effect.&lt;BR /&gt;&lt;BR /&gt;Wasn't sure of the format of the intern.only file, but I put a local user name (xfm) in there by itself on a line.&lt;BR /&gt;&lt;BR /&gt;I also ran sendmail -bt and test things like:&lt;BR /&gt;&amp;gt; Check_local_rcpt xfm&lt;BR /&gt;&lt;BR /&gt;I've attached the "check RCPT TO:" section of my sendmail.cf file, without the new rules, hoping someone can recommend where the lines should be placed.&lt;BR /&gt;&lt;BR /&gt;I tried putting them in several spots in the attached section without any luck.&lt;BR /&gt;&lt;BR /&gt;I think the trouble is, I've only a vague understanding of how the rules section works.  I've been browsing the sendmail manual but still don't understand the general program flow.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for help.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 08:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997644#M749307</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-11T08:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997645#M749308</link>
      <description>I inserted the code directly below the SLocal_check_rcpt line.  To verify that it was being read, I changed the occurances of "OK" in the new rules to "oK" and ran sendmail -bt.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Local_check_rcpt xfm&lt;BR /&gt;Local_check_rcpt   input: xfm&lt;BR /&gt;canonify           input:&lt;BR /&gt;canonify         returns: &amp;lt; @ &amp;gt;&lt;BR /&gt;Local_check_rcpt returns: oK&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;So - the new rules certainly are being read.&lt;BR /&gt;&lt;BR /&gt;Still, it isn't working.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 09:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997645#M749308</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-11T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997646#M749309</link>
      <description>I think I have some idea now but I'm not there yet.&lt;BR /&gt;&lt;BR /&gt;If you look at the rules, it checks the sender first, then the recipient.&lt;BR /&gt;&lt;BR /&gt;It returns an "OK" on the "someone else" line every time.&lt;BR /&gt;&lt;BR /&gt;So, it thinks the sender xfm is not a local user.  Therefore it quits, assuming that I am not a user that needs to be restricted.&lt;BR /&gt;&lt;BR /&gt;When in -bt, I tested the contents of my intern.only file with this:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $={Internal}&lt;BR /&gt;xfm&lt;BR /&gt;&lt;BR /&gt;So, that works.&lt;BR /&gt;&lt;BR /&gt;I'm guessing this has something to do with the "w" in the tests for $=w.&lt;BR /&gt;&lt;BR /&gt;Not sure how to read that, other than $= should list the members of w.&lt;BR /&gt;&lt;BR /&gt;Can someone help explain what this rule is doing exactly?&lt;BR /&gt;&lt;BR /&gt; R$* $| $={Internal} &amp;lt;@$=w.&amp;gt;  $: $1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 12:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997646#M749309</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-11T12:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997647#M749310</link>
      <description>Well I'm not sure what to make of this.  I've been testing this all weekend.&lt;BR /&gt;&lt;BR /&gt;Referring to the link provided by Court:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sendmail.org/~ca/email/restrict.html" target="_blank"&gt;http://www.sendmail.org/~ca/email/restrict.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I placed the rules directly below the line:&lt;BR /&gt;&lt;BR /&gt;SLocal_check_rcpt&lt;BR /&gt;&lt;BR /&gt;In my sendmail.cf file, it looked like this before inserting the rules:&lt;BR /&gt;&lt;BR /&gt;  SLocal_check_rcpt                                      &lt;BR /&gt;  Scheck_rcpt                                            &lt;BR /&gt;  ...etc...&lt;BR /&gt;&lt;BR /&gt;So I placed them right between the two 'S' lines, above.&lt;BR /&gt;&lt;BR /&gt;I created the file 'intern.only' and put the required 'F' line in the .cf file.  In -bt mode, I tested that, it properly reads and displays the contents of the file.&lt;BR /&gt;&lt;BR /&gt;I've learned quite a bit about rule writing, the operators, and LHS/RHS by reading in the O'Reilly Sendmail book, and by reading tutorials online.&lt;BR /&gt;&lt;BR /&gt;It appears that this should work, yet it seems to be completely ignored.&lt;BR /&gt;&lt;BR /&gt;Any advise?&lt;BR /&gt;</description>
      <pubDate>Sun, 13 May 2007 14:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997647#M749310</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-13T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail:  make some users local only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997648#M749311</link>
      <description>I began to suspect that this rule is not being called at all.  So I wrote this:&lt;BR /&gt;&lt;BR /&gt;SLocal_check_rcpt&lt;BR /&gt;R$*      $#error $@ 5.1.8 $: "Error"&lt;BR /&gt;&lt;BR /&gt;Then using -bt I tried it:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Local_check_rcpt xfm&lt;BR /&gt;&amp;gt; Local_check_rcpt xfm                                    &lt;BR /&gt;Local_check_rcpt   input: xfm                             &lt;BR /&gt;Local_check_rcpt returns: $# error $@ 5 . 1 . 8 $: "error"&lt;BR /&gt;&lt;BR /&gt;So that's good.  Then I did this:&lt;BR /&gt;&lt;BR /&gt;$ echo hey | sendmail xfm&lt;BR /&gt;&lt;BR /&gt;The mail was delivered, no errors, no bounce.&lt;BR /&gt;&lt;BR /&gt;Can I assume that Local_check_rcpt is not being called at all?&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 07:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-make-some-users-local-only/m-p/3997648#M749311</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2007-05-14T07:44:38Z</dc:date>
    </item>
  </channel>
</rss>

