<?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: send mail out connection refused as normal user in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230028#M10860</link>
    <description>mailq is a root program.&lt;BR /&gt;&lt;BR /&gt;Users normally should not be able to use it.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;stat=Deferred: Connection refused by smtp_server.mts.mb.ca&lt;BR /&gt;&lt;BR /&gt;You have a DS directive in sendmail.cf&lt;BR /&gt;&lt;BR /&gt;The server smtp_server.mts.mb.ca is refusing to relay mail.&lt;BR /&gt;&lt;BR /&gt;If its one of your servers, check the file /etc/mail/access&lt;BR /&gt;&lt;BR /&gt;Make sure the server you are sending the mail from is listed as a valid relay server:&lt;BR /&gt;&lt;BR /&gt;yourserver RELAY&lt;BR /&gt;&lt;BR /&gt;rebuild your hast databases(see attachment for a model)&lt;BR /&gt;&lt;BR /&gt;service sendmail restart&lt;BR /&gt;&lt;BR /&gt;If someone else is responsible for that smtp relay server have them make sure it allows mail relay from your server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 25 Mar 2004 12:40:25 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-03-25T12:40:25Z</dc:date>
    <item>
      <title>send mail out connection refused as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230027#M10859</link>
      <description>I have a RedHat ES 3.0 server that I set up. I copied over the /etc/passwd, /etc/group, and shadow passwd from a previous RedHat 7.3 server that I built. I did find that I was missing the user...&lt;BR /&gt;smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin&lt;BR /&gt;so I added that to the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;Here is what I want to do...&lt;BR /&gt;I only have this server sending out bound mail on our network. So I do not need sendmail running, I shut down that service.&lt;BR /&gt;/etc/rc.d/init.d/sendmail stop&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have been able to get the outgoing mail to work ALL UNDER ROOT!&lt;BR /&gt;This is what I added to submit.cf&lt;BR /&gt;# "Smart" relay host (may be null)&lt;BR /&gt;DSsmtp_server.mts.mb.ca&lt;BR /&gt;&lt;BR /&gt;And the mail goes thru correctly...&lt;BR /&gt;Mar 25 10:55:02 myserver sendmail[997]: i2PGt2ti000997: from=root, size=43, class=0, nrcpts=1, msgid=&amp;lt;200403251655.i2PGt2ti000997@myserver.mts.mb.ca&amp;gt;, relay=root@localhost&lt;BR /&gt;Mar 25 10:55:02 myserver sendmail[997]: i2PGt2ti000997: to=lhradowy@mts.ca, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30043, relay=smtp_server.mts.mb.ca. [192.168.2.1], dsn=2.0.0, stat=Sent (Message accepted for delivery)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BUT IF I LOG IN AS A REGULAR USER... I get a connection refused&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mar 25 10:55:44 myserver sendmail[1031]: i2PGtifY001031: from=lhradowy, size=26, class=0, nrcpts=1, msgid=&amp;lt;200403251655.i2PGtifY001031@myserver.mts.mb.ca&amp;gt;, relay=lhradowy@localhost&lt;BR /&gt;Mar 25 10:55:44 opsftp sendmail[1031]: i2PGtifY001031: to=lhradowy@mts.ca, ctladdr=lhradowy (520/50), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30026, relay=smtp_server.mts.mb.ca. [192.168.2.1], dsn=4.0.0, stat=Deferred: Connection refused by smtp_server.mts.mb.ca.&lt;BR /&gt;&lt;BR /&gt;I also get an error if I run mailq as a regular user...&lt;BR /&gt;lhradowy@myserver ~$ mailq&lt;BR /&gt;can not chdir(/var/spool/mqueue/): Permission denied&lt;BR /&gt;Program mode requires special privileges, e.g., root or TrustedUser.&lt;BR /&gt;&lt;BR /&gt;Mar 25 10:46:58 myserver sendmail[937]: NOQUEUE: SYSERR(lhradowy): can not chdir(/var/spool/mqueue/): Permission denied&lt;BR /&gt;&lt;BR /&gt;Anyone can help?</description>
      <pubDate>Thu, 25 Mar 2004 12:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230027#M10859</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-03-25T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: send mail out connection refused as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230028#M10860</link>
      <description>mailq is a root program.&lt;BR /&gt;&lt;BR /&gt;Users normally should not be able to use it.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;stat=Deferred: Connection refused by smtp_server.mts.mb.ca&lt;BR /&gt;&lt;BR /&gt;You have a DS directive in sendmail.cf&lt;BR /&gt;&lt;BR /&gt;The server smtp_server.mts.mb.ca is refusing to relay mail.&lt;BR /&gt;&lt;BR /&gt;If its one of your servers, check the file /etc/mail/access&lt;BR /&gt;&lt;BR /&gt;Make sure the server you are sending the mail from is listed as a valid relay server:&lt;BR /&gt;&lt;BR /&gt;yourserver RELAY&lt;BR /&gt;&lt;BR /&gt;rebuild your hast databases(see attachment for a model)&lt;BR /&gt;&lt;BR /&gt;service sendmail restart&lt;BR /&gt;&lt;BR /&gt;If someone else is responsible for that smtp relay server have them make sure it allows mail relay from your server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Mar 2004 12:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230028#M10860</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-25T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: send mail out connection refused as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230029#M10861</link>
      <description>GOT IT WORKING...&lt;BR /&gt;&lt;BR /&gt;needed to add my relay server to the sendmail.cf file as well!&lt;BR /&gt;&lt;BR /&gt;I still do not have sendmail running, nor do I want to.</description>
      <pubDate>Thu, 25 Mar 2004 12:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/send-mail-out-connection-refused-as-normal-user/m-p/3230029#M10861</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-03-25T12:56:01Z</dc:date>
    </item>
  </channel>
</rss>

