- 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
05-12-2011 05:20 AM
05-12-2011 05:20 AM
We have a small network here, (kind of a staging area.) We have a couple of servers in the network, (1 X rx7640 & 1 X bladeserver.) Both are running 11.31. We'd like to get sendmail relaying to us, but DNS is not setup on the servers. We have a workstation setup as a mailserver. Is there a way to 'fool' sendmail in this case?
Curiously yours,
Ron
Solved! Go to Solution.
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 06:14 AM
05-12-2011 06:14 AM
Re: Sendmail
You don't necessarily need DNS. Set up the hostnames in /etc/hosts so that they can get resolved locally.
Your /etc/nsswitch.conf may need:
hosts: files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 06:22 AM
05-12-2011 06:22 AM
Re: Sendmail
grep DS /etc/mail/sendmail.cf?
This is your mail server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 06:40 AM
05-12-2011 06:40 AM
Re: Sendmail
syntax correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 06:57 AM
05-12-2011 06:57 AM
Re: Sendmail
Is mailserver.usfi.com defined in your /etc/hosts file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 07:02 AM
05-12-2011 07:02 AM
Re: Sendmail
I just tried, # date | mailx -s "test mail" xxx@yyy.com
nothing yet. ran mailq -v, and it's in the queue. Is there something else I'm (likely) missing?
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 07:21 AM
05-12-2011 07:21 AM
Re: Sendmail
What does the mailq output show?
What happens if you do a 'sendmail -q' to try to clear out the queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 07:22 AM
05-12-2011 07:22 AM
Re: Sendmail
ps -ef | grep -i sendmail
If it is then restart it.
If still problems then debug:
sendmail -bv alias@domain.com < /dev/null
Post messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 07:55 AM
05-12-2011 07:55 AM
Re: Sendmail
root 14873 1257 0 18:47:20 pts/1 0:00 grep sendmail
root@fobdb / =#/sbin/init.d/sendmail start
mailserver.usfi.com
root@fobdb / =#ps -ef | grep sendmail
root 14925 1257 1 18:47:46 pts/1 0:00 grep sendmail
root@fobdb / =#sendmail -bv dmmcnish@yahoo.com < /dev/null
dmmcnish@yahoo.com... deliverable: mailer esmtp, host yahoo.com, user dmmcnish@yahoo.com
It looks like sendmail doesn't even start. Perplexing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 08:25 AM
05-12-2011 08:25 AM
Re: Sendmail
Are there any messages in /var/adm/syslog/mail.log indicating any failures?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 09:05 AM
05-12-2011 09:05 AM
Re: Sendmail
Stay tuned!! (Points are coming...no worries.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2011 01:17 PM
05-12-2011 01:17 PM
Re: Sendmail
Second, have you tried telnet to port 25 of the mail server from the client?
telnet mailserver.usfi.com 25
1) at the prompt, type 'helo'
2) type 'mail from: your email'
3) type 'rcpt to: your email'
4) type 'data', then enter something and when you are done, begin a new line and type '.' to end the message
5) type ctrl-] then ctrl-D to exit out of telnet
if the telnet method works, try replace the name with the IP address of the DS record in sendmail.cf. Then try again. This is to eliminate the DNS out of the equation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2011 11:05 PM
05-13-2011 11:05 PM
Re: Sendmail
Ok...the telnet test passed, so I replaced the mailserver name with the ip address in the sendmail.cf file. I ran another test: date | mailx -s "test" rirving@mythics.com. I've pasted the last few lines of the mail.log file. Parse error? Has that been the problem?
May 14 09:58:07 fobdb sendmail[15150]: p4E6tHvV015038: to=dmmcnish@yahoo.com, delay=00:02:50, mailer=relay, pri=120170, relay=10.128.11.63, dsn=4.4.3, stat=Transient pa
rse error -- message queued for future delivery
May 14 09:58:07 fobdb sendmail[15150]: p4CEdcww012786: to=dmmcnish@yahoo.com, delay=1+16:18:29, mailer=relay, pri=300165, relay=10.128.11.63, dsn=4.4.3, stat=Transient
parse error -- message queued for future delivery
May 14 09:58:08 fobdb sendmail[15150]: p4CEdcww012786: p4E6w7E1015150: sender notify: Warning: could not send message for past 4 hours
May 14 09:58:08 fobdb sendmail[15150]: p4E6w7E1015150: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31531, dsn=2.0.0, stat=Sent
May 14 09:58:08 fobdb sendmail[15150]: p4CEduU8012791: to=rirving@mythics.com, delay=1+16:18:12, mailer=relay, pri=300166, relay=10.128.11.63, dsn=4.4.3, stat=Transient
parse error -- message queued for future delivery
May 14 09:58:08 fobdb sendmail[15150]: p4CEduU8012791: p4E6w7E2015150: sender notify: Warning: could not send message for past 4 hours
May 14 09:58:08 fobdb sendmail[15150]: p4E6w7E2015150: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31533, dsn=2.0.0, stat=Sent
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 05:48 AM
05-14-2011 05:48 AM
Re: Sendmail
Is there anything else I can check on this? I've sent a few mails, but no luck.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 06:03 AM
05-14-2011 06:03 AM
Re: Sendmail
May 14 16:56:26 fobdb sendmail[2075]: p4EDuQsS002075: to=dmmcnish@yahoo.com, delay=00:00:00, mailer=relay, pri=0, relay=10.128.11.63, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
May 14 16:56:26 fobdb sendmail[2075]: p4EDuQsS002075: from=root, size=161, class=0, nrcpts=1, msgid=<201105141356.p4EDuQsS002075@fobdb.usfi.com>, relay=root@localhost
May 14 16:56:26 fobdb sendmail[2075]: p4EDuQsS002075: to=dmmcnish@yahoo.com, delay=00:00:00, mailer=relay, pri=30161, dsn=4.4.3, stat=queued
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 06:14 AM
05-14-2011 06:14 AM
SolutionDS[10....]
Also, try putting files before DNS in
## cat /etc/nsswitch.conf
...
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=continue UNAVAIL=continue] dns
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 07:00 AM
05-14-2011 07:00 AM
Re: Sendmail
I'll let you know how I do!!
Thanks alot guys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 07:08 AM
05-14-2011 07:08 AM
Re: Sendmail
bv