3 Replies Latest reply: Dec 11, 2012 6:01 AM by muvvas RSS

    [sendmail] unable to relay

    974927
      Hi Experts,

      I have a problem which I can't send email from my solaris box
      here is the condition :

      - I have 1 solaris box with ip address x.x.x.x and hostname ABC.com
      - I have 1 email server with ip address y.y.y.y and hostname DEF.com, i have account on this server test@DEF.com

      this is my sendmail.cf :
      =====================================
      Cwlocalhost
      # file containing names of hosts for which we receive email
      Fw/etc/mail/local-host-names

      # my official domain name
      # ... define this only if sendmail cannot automatically determine your domain
      #Dj$DEF.com

      # host/domain names ending with a token in class P are canonical
      CP.

      # "Smart" relay host (may be null)
      DS[y.y.y.y]
      ====================================

      when i want to send email by using "/usr/bin/mailx -v test@DEF.com" --> appears some error notification :

      550 5.7.1 Unable to relay
      503 5.5.2 Need rcpt command

      I tried to capture the log from /var/log/syslog
      ========================================================================================
      ABC.com sendmail[10336]: [ID 702911 mail.error] dangerous permissions=40777 on queue directory /var/spool/clientmqueue/

      ABC.com sendmail[10336]: [ID 801593 mail.info] qBB3xCRp010336: from=root, size=95, class=0, nrcpts=1, msgid=<201212110359.qBB3xCRp010336@ABC.com>, relay=root@localhost

      ABC.com sendmail[10336]: [ID 801593 mail.info] qBB3xCRp010336: to=test@DEF.com, ctladdr=root (0/0), delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=30095, relay=DEF.com. [y.y.y.y], dsn=5.7.1, stat=User unknown

      ABC.com sendmail[10336]: [ID 801593 mail.info] qBB3xCRq010336: to=root, delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=31119, relay=DEF.com. [y.y.y.y], dsn=5.7.1, stat=User unknown

      ABC.com sendmail[10336]: [ID 801593 mail.info] qBB3xCRq010336: qBB3xCRr010336: return to sender: User unknown

      ABC.com sendmail[10336]: [ID 801593 mail.info] qBB3xCRr010336: to=postmaster, delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=32143, relay=DEF.com. [y.y.y.y], dsn=5.7.1, stat=User unknown
      =============================================================================================================

      Any help will be appreciate :)

      Regards,
      Fahrul

      Edited by: 971924 on Dec 10, 2012 8:50 PM
        • 1. Re: [sendmail] unable to relay
          muvvas
          hi change the permissions like this on /clientmqueue

          bash-3.2# ls -ld /var/spool/clientmqueue/
          drwxrwx--- 2 smmsp smmsp 95 Dec 11 10:31 /var/spool/clientmqueue/

          add the relay server ip adn host name in /etc/hosts

          is ur soalris box was added to exchange relay?
          • 2. Re: [sendmail] unable to relay
            974927
            Hi muvvas,

            I've try your way, but it appears the same:
            ABC.com sendmail[27281]: [ID 702911 mail.error] dangerous permissions=40777 on queue directory /var/spool/clientmqueue/
            And I already add relay ip address on /etc/hosts

            However, what do you mean about add my solaris box into exchange server?

            Pardon me if I'm wrong, noob :)

            regards,
            fahrul
            • 3. Re: [sendmail] unable to relay
              muvvas
              will you please give the o/p


              ls -ld /var/spool/clientmqueue/

              please ask ur mail team,whetehr ur soalris box is allowd to send mails (they have to add ur soalris box as relay)