- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 01:46 AM
07-21-2004 01:46 AM
Operating System : HP-UX B.11.23 U on an RX5670
No using DNS and all entries in the "etc/hosts" file are FQDN. Ex.
172.16.1.xxx jhb-misp.bankserv.co.za jhb-misp
172.16.1.xxx mailserver.bankserv.co.za mailserver
Kind regards
Klaus
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 01:56 AM
07-21-2004 01:56 AM
Re: Sendmail
If your unix host has to use a mail relay to get out, the simplest, usually enough, method is to define the DS (smart relay) macro in sendmail.cf. You should have a line with
DS
change it in
DSmailrelay.domain
where mailrelay.domain is the FQDN of your mail relay as seen from your side.
The stop/start sendmail to let it reread the config file.
This mail relay must accept SMTP connection from your host and must accept relaying. To check if the mail relay is working try
telnet mailrelay.domain 25
.... answer from mail relay .....
helo
mail from: root@
rcpt to:
data
mail test from unix
.
mail server should answer something like mail sent. If this work you can try with a normal mail client like
mailx -s "subject"
mail test from unix
.
To check if this has work look at /var/adm/syslog/mail.log
you should see a couple of lines stating the mail has been accepted locally and sent to the relay and accepted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2004 04:13 AM
07-21-2004 04:13 AM
Re: Sendmail
sendmail -v -d8.99 -d38.99 someone@your.net
type some text
.
Any config errors will be apparent.
mailq
Shows you any outbound mail that has not made it off your box.
sendmail -v -q
Verbose attempt to push the sendmail queue off the box. This will help you find issues.
I can't emphasize enough if the box you point your DS directive to does not accept relay, you will have a very frustrating time. That should be done and if possible verified prior to playing with the HP box.
The good news is most smtp software lets you allow relay by IP address so no matter what the admin says, its not a spam relay risk.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 12:14 AM
07-22-2004 12:14 AM
Re: Sendmail
The DS parameter has been changed in the "sendmail.cf" file. Also, telnetting works until u key the command "mail from..". It generates a "Syntax error".
Hello Steven,
Tried your suggestion of sendmail -v -d...etc. See the attached 'sendmail -v" file.
Thanks so far.
Klaus
NB. Telnetting and sendmail -v from a SCO Unixware platform works 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 12:26 AM
07-22-2004 12:26 AM
Re: Sendmail
See the attached portion of the "mail.log" file. I am getting "transient parse" errors.
Regards,
Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2004 06:26 AM
07-22-2004 06:26 AM
SolutionFirst check you have the right resolution for mailserv.bankserv.... in /et/host.
Next edit /etc/nsswitch.conf (if you don't have it copy /etc/nsswitch.files or one example there) and change the line
host: files
(check the other lines if you copied it from a template)
also check the nsswitch.conf in /etc/mail (i'm not sure but in HP it could be that sendmail uses this one for resolving order)
There is also a ultimate test you can do, set DS macro to the IP address, instead hostname. To use IP you must surround it with [] like
DS[192.168.2.1]
Anyway connecting directly on port 25 must work, what kind of message do u have exactly from mailserver? Can u capture input and output from telnet host 25 and post it?
hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2004 08:57 PM
07-25-2004 08:57 PM
Re: Sendmail
That did the trick. Copying the "nsswitch.file" as "nsswitch.conf" resolved the mail relay issue.
Thanks a million.
The problem I had with telnetting is related to the terminal emulator that i am using. It does not accept the "@" ie. klausp@...........when key-ing it in. Initially i used the "!" and "%" and when i got a succesful response i used a script, and it works fine.
Kind regards
Klaus