- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to suppress hostname in "telnet <IP> 25"?
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
Forums
Discussions
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
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
02-09-2004 03:06 AM
02-09-2004 03:06 AM
I would like to know how to configure sendmail to suppress hostname in the situation below. The command is run in Windows env.
C:\ telnet hp-uxServerIP 25
220 ESMTP
221 hostname.domain closing connection
Connection to host lost.
C:\
How can you suppress "221 hostname.domain closing connection"? Thanks.
Hai
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:10 AM
02-09-2004 03:10 AM
Re: How to suppress hostname in "telnet <IP> 25"?
Edit /etc/mail/sendmail.cf file and search for "Greeting". Make the line to appear like
O SmtpGreetingMessage=""
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:11 AM
02-09-2004 03:11 AM
Re: How to suppress hostname in "telnet <IP> 25"?
You can quick fix it by changing the Dj parameter in sendmail.cf on the server.
It picks up the hostname if its not set.
You can set it but be careful.
the Dj parameter when set is picked up on outbound mail. If its not fully qualified and can not be resolved aol and other major mail systems will reject the mail.
After making the change:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Done.
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
02-09-2004 03:12 AM
02-09-2004 03:12 AM
Re: How to suppress hostname in "telnet <IP> 25"?
Hmmm.. you asked for "closing connection". I don't think you can do it because I believe it isn't really coming from the server side but it's the IP that is getting resolved at the localhost.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:14 AM
02-09-2004 03:14 AM
Re: How to suppress hostname in "telnet <IP> 25"?
It will default to hostname under certain circumstances.
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
02-09-2004 03:14 AM
02-09-2004 03:14 AM
Re: How to suppress hostname in "telnet <IP> 25"?
Thanks for your quick reply. I already have the greeting configured your way which suppresses the hostname info in the initial connection. My question applies to the "closing connection".
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:25 AM
02-09-2004 03:25 AM
Re: How to suppress hostname in "telnet <IP> 25"?
I know for sure the hostname.domain was not resolved at the localhost (client site).
Steve,
Dj is not being used in my sendmail.cf. And I do not need to use it.
All,
Let me try to rephrase my question:
All I need is to suppress hostname.domain in the "221..." line if possible. Thanks again for all your help.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:29 AM
02-09-2004 03:29 AM
SolutionThe Dj directive lets you overwrite it.
As far as the 221 message goes, thats how sendmail was written. You can take it change the source and recompile it, or use another MTA to change the behavior.
sendmail tells people when it disconnects them. I don't know how to surpress that behavior.
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
02-09-2004 03:43 AM
02-09-2004 03:43 AM
Re: How to suppress hostname in "telnet <IP> 25"?
I am not sure but does vrfy off stop this happening or is it just username.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:49 AM
02-09-2004 03:49 AM
Re: How to suppress hostname in "telnet <IP> 25"?
goaway,noexpn,novrfy have been applied. It is hostname.domain which I like to suppress, not username? By the way, I think Steve is right. There is no way to suppress hostname.domain in "221 hostname.domain closing connection" unless I try another MTA or compile the source code myself. I saw this string "221 %s closing connection" in HP-compiled sendmail.
I close this thread here. Thank you all for your help.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 03:59 AM
02-09-2004 03:59 AM
Re: How to suppress hostname in "telnet <IP> 25"?
You are right. It does come from the server side. I just ran a tusc on the telnet
socket(AF_INET, SOCK_STREAM, 0) ............................ = 3
send(3, "q u i t \r\n", 6, 0) .............................. = 6
select(2048, 0x40005860, 0x40005760, 0x40005660, 0x40004b48) = 1
recv(3, "2 2 1 hostname.domain ".., 1024, 0) ..... = 48
As indicated by Steven, you can suppress it by manipulating "Dj" macro. But that may open up other problems as you are overwriting the servers' domain.
-Sri