cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX

btiller
Occasional Visitor

HP-UX

All, I am new to HPUX and have a requirement to have sendmail receive emails relayed from our local Exchange server. The previous admin set this up but a new requirement has been given and I have to set up 2 new recipients. I followed the steps the previous administrator documented but am still having an issue. I have modified the "genericstable" and "virtusertable" under /etc/mail to include the 2 new recipients (and remapped the "genericstable.db"). 

The 2 new recipients are named:
apinvoiceric@fd1.fareva.com and apinvoice@dthsapdvm01.fareva.priv

When I attempt to test using telnet, I get the following errors (the errors are different for each user)
RCPT TO: apinvoiceric@fd1.fareva.com
550 5.1.1 apinvoiceric@fd1.fareva.com... User unknown
RCPT TO: apinvoice@dthsapdvm01.fareva.priv
550 5.7.1 apinvoice@dthsapdvm01.fareva.priv... Relaying denied. Proper authentic
ation required.

Any help would be greatly appreicated.

Thanks!

 

1 REPLY
Bill Hassell
Honored Contributor

Re: HP-UX

The HP-UX machine that you are on has not been given permission to use the Exchange server for relaying. Rather than using telnet, use sendmail like this:

# sendmail -v bill.hpux@gmail.com </etc/issue
bill.hpux@gmail.com... Connecting to [10.11.10.200] via relay...
220 *********************************************************************************************
>>> EHLO mail.servicedirect.com
250-atl1.corp.ad Hello ftp [10.10.100.41], pleased to meet you
250-ENHANCEDSTATUSCODES
250-XXXA
250-XXXB
250-8BITMIME
250-SIZE
250-DSN
250-XXXC
250-ETRN
250-XXXD
250 XXXE
>>> MAIL From:<root@serviceitdirect.com> SIZE=149
250 2.1.0 <root@serviceitdirect.com>... Sender ok
>>> RCPT To:<bill.hpux@gmail.com>
250 2.1.5 <bill.hpux@gmail.com>... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 w3UHSF015028 Message accepted for delivery
bill.hpux@gmail.com... Sent (2.0.0 w3UHSF015028 Message accepted for delivery)
Closing connection to [10.11.10.200]
>>> QUIT
221 2.0.0 atl1.corp.ad closing connection

The relay machine is 10.11.10.200 (aka, atl1.corp.ad) and it has confirmed that ftp.servicedirect.com (10.10.100.41) is allowed to relay messages.

Test your system like this:

# sendmail -v apinvoiceric@fd1.fareva.com < /etc/issue

The message "Relaying denied" means that you must contact your Exchange server admin and have them setup relaying for your HP-UX machine.  

 

 



Bill Hassell, sysadmin