<?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: Restrict sendmail recipients in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268593#M178221</link>
    <description>FYI, based on your last posting, it sounds like you have shutdown the sendmail daemon. Note that this will NOT dis-allow sending mail; only receiving it on that host.</description>
    <pubDate>Wed, 05 May 2004 14:07:48 GMT</pubDate>
    <dc:creator>Tom Danzig</dc:creator>
    <dc:date>2004-05-05T14:07:48Z</dc:date>
    <item>
      <title>Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268589#M178217</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;Does anyone know of a way to restrict who is authorized to use sendmail/mailx and who is authorized to receive emails from an HPUX 11.11 system? (sendmail version: 8.9.3)&lt;BR /&gt;&lt;BR /&gt;Scenerio:&lt;BR /&gt;On a development server, I want the developers to only send emails to themselves, regardless of the "To:" addressee they specify.&lt;BR /&gt;&lt;BR /&gt;Perhaps, is there a script I can create?&lt;BR /&gt;&lt;BR /&gt;Dwyane</description>
      <pubDate>Wed, 05 May 2004 12:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268589#M178217</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2004-05-05T12:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268590#M178218</link>
      <description>Nothing simple comes to mind but few ideas to toy with:&lt;BR /&gt;&lt;BR /&gt;Part of your question was to prevent developers to send mails to anyone else to themselves and I believe you can do this by not configuring a smart relay server in the sendmail.cf file. So the mail sent by sendmail should stay inside the system. Developers should login to their accounts on the server to read them. But I believe this is not what you want. you want them to send mail to themselves on your organization's, for instance, exchange server to be read by their outlook client. If this is the case, sorry I do not know how to relay messages selectively to some addresses but with the complexite of sendmail.cf, I would not be surprised to see a macro in it to facilitate this functionality.&lt;BR /&gt;&lt;BR /&gt;The other part of your question is to decide who can use mailx/sendmail or any other mail sender to send mails out I believe. Well, there is a very draconian approach that I can think of. Force all users of the system to use a restricted shell. Shell we mention here should be able to use all commands but the mail related ones that you pick out. And let the developers, who I think you would allow to send mails out, use unrestricted shells, or enhance their restricted shell capabilities by the mail sending commands that you can let them use. &lt;BR /&gt;&lt;BR /&gt;Sorry, no simple solutions from my end.</description>
      <pubDate>Wed, 05 May 2004 12:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268590#M178218</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-05T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268591#M178219</link>
      <description>You can block certain repipients pretty easily:&lt;BR /&gt;&lt;BR /&gt;Add them to the /etc/mail/access file and there will be no inbound or outbound mail for all users on the list. You would need to run the gen_cf utility to implement these setting.&lt;BR /&gt;&lt;BR /&gt;You could shut down the accounts themsleves totally. If leroy should not send mail, then leroy in the access file will get reject on anything he sends.&lt;BR /&gt;&lt;BR /&gt;Sendmail is a pretty open tool which is designed to let you send to any recipient anywhere, any legal name.&lt;BR /&gt;&lt;BR /&gt;If there are specific people you don't want the system sending mail to, then /etc/mail/access will work.&lt;BR /&gt;&lt;BR /&gt;To implement this you might need a sendmail macro script. Here is a location: &lt;A href="http://www.hpux.ws/buildmail.hpux.txt" target="_blank"&gt;http://www.hpux.ws/buildmail.hpux.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The link is currently down due to a DSL outage. It should be up shortly.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 12:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268591#M178219</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-05T12:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268592#M178220</link>
      <description>Thanks for the input, and quick responses!&lt;BR /&gt;&lt;BR /&gt;As I suspected, since trusting a programmer is not an option :), and the options will require time I don't have; I have disabled sendmail completely on the development server.&lt;BR /&gt;&lt;BR /&gt;That'll teach'm to write ugly code! :)&lt;BR /&gt;&lt;BR /&gt;Thanks again!!&lt;BR /&gt;D</description>
      <pubDate>Wed, 05 May 2004 13:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268592#M178220</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2004-05-05T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268593#M178221</link>
      <description>FYI, based on your last posting, it sounds like you have shutdown the sendmail daemon. Note that this will NOT dis-allow sending mail; only receiving it on that host.</description>
      <pubDate>Wed, 05 May 2004 14:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268593#M178221</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2004-05-05T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268594#M178222</link>
      <description>You need to change permissions on the the sendmail file as follows to prevent execution:&lt;BR /&gt;&lt;BR /&gt;#for sure...&lt;BR /&gt;chmod o-x /usr/sbin/sendmail&lt;BR /&gt;&lt;BR /&gt;#maybe...&lt;BR /&gt;chmod g-x /usr/sbin/sendmail&lt;BR /&gt;&lt;BR /&gt;If you disabled the daemon in the /etc/rc.config.d/sendmail file by changing the first variable from 1 to zero, sendmail will be invoked with mailx calls.&lt;BR /&gt;&lt;BR /&gt;Too bad you can't trust your developers.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 05 May 2004 14:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268594#M178222</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-05T14:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict sendmail recipients</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268595#M178223</link>
      <description>THANKS for pointing that out.  I renamed sendmail to sendmail.old. :)&lt;BR /&gt;&lt;BR /&gt;D</description>
      <pubDate>Wed, 05 May 2004 14:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-sendmail-recipients/m-p/3268595#M178223</guid>
      <dc:creator>Dwyane Everts_1</dc:creator>
      <dc:date>2004-05-05T14:30:58Z</dc:date>
    </item>
  </channel>
</rss>

