- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail without DNS lookup
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
Discussions
Discussions
Forums
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
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-06-2009 12:02 PM
тАО02-06-2009 12:02 PM
We have a SMTP relay server. I have configured DS
When I am trying to send email, it is not able to resolve hp.com
# sendmail -v abcd@hp.com
This is a Test Email
.
hp.com: Name server timeout
abcd@hp.com... Transient parse error -- message queued for future delivery
abcd@hp.com... Queued
The DNS is not able to resolve hp.com
I have added an entry in /etc/hosts for hp.com and we are able to send emails properly.
My question is, can we send email to the relay server, without resolving hp.com
Ravi.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 12:14 PM
тАО02-06-2009 12:14 PM
Re: Sendmail without DNS lookup
DM
in your case
DM hp.com
Regards
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 12:23 PM
тАО02-06-2009 12:23 PM
Re: Sendmail without DNS lookup
# who I masquerade as (null for no masquerading) (see also $=M)
DMhp.com
Still, it doesn't work.
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2009 12:29 PM
тАО02-06-2009 12:29 PM
SolutionI can think of several possibilities.
Depending on which version of sendmail you
run, they will work.
a) Set /etc/nsswitch.conf to use "files"
for:
hosts: files
aliases: files
... and of course, your entry in /etc/mail/sendmail.cf for DS:
DS[myrelayhost.mydom.dom]
Putting square brackets around hostname
bypasses DNS query for smarthost.
Ensure that your smarthost is
listed in /etc/hosts too.
b) Create file /etc/mail/service.switch
hosts files
c) Change /etc/mail/sendmail.cf directly.
Look for the following lines and comment them out:
# pass to name server to make hostname canonical
R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4
d) More complex way.
Change sendmail.mc file as per
http://www.sendmail.org/faq/section3#3.22
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
FEATURE(nocanonify)define(`confSERVICE_SWITCH_FILE',`/etc/mail/service.switch')dnl
FEATURE(nocanonify)
define(`SMART_HOST',`myrelayhost.mydom.dom')
Edit the submit.mc file and add the
following line:
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
Rebuild your sendmail.cf and submit.cf.
That should do it.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2009 03:54 AM
тАО02-07-2009 03:54 AM
Re: Sendmail without DNS lookup
I have already configured step a and b. It didn't help me, because my server is unable to resolve hp.com The relay server belongs to some other domain, it is not hp.com
# sendmail -v abcd@hp.com
This is a Test Email
.
hp.com: Name server timeout
abcd@hp.com... Transient parse error -- message queued for future delivery
abcd@hp.com... Queued
After trying step c, I have started getting emails, without having hp.com in /etc/hosts file.
I didn't try step D, as it is complex ;) I like things to be simple.
Could you please explain more about step c.
# pass to name server to make hostname canonical
R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2009 03:04 AM
тАО02-08-2009 03:04 AM
Re: Sendmail without DNS lookup
Step c) - comment out these
two lines in /etc/mail/sendmail.cf
and restart sendmail. In other words,
these two lines will look like:
# pass to name server to make hostname canonical
# R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4
To restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
These two lines try to resolve hostname
via DNS server, an dthat is what you want to
disable...
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2009 04:35 AM
тАО02-09-2009 04:35 AM
Re: Sendmail without DNS lookup
Thank You for the reply.
I am bit confused about your statement.
"These two lines try to resolve hostname
via DNS server, an dthat is what you want to
disable..."
Are you speaking about local hostname or the hp.com which is present in the email address.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 01:26 AM
тАО02-11-2009 01:26 AM
Re: Sendmail without DNS lookup
These two lines simple try to use DNS
resolution for anything that is not defined
in /etc/hosts or other databases that
/etc/nsswitch.conf might be pointing to
(NIS, NIS+, LDAP...).
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2009 03:00 AM
тАО02-11-2009 03:00 AM
Re: Sendmail without DNS lookup
DS is the best option, but it requires the administrator of the smtp relay server to configure the server to accept mail from your specific host.
A better solution might be to do this:
dig mx hp.com
That will list the mail exchange servers on your domain, use your domain not hp.com unless you are at hp.
Set up this name resolution at /etc/hosts file and your mail may flow.
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-12-2009 12:00 AM
тАО02-12-2009 12:00 AM
Re: Sendmail without DNS lookup
Thank You Very Much for takling time to help me resolve the case and clarifying my doubts.
Thanks Again.
Cheers,
Ravi.