1837238 Members
2046 Online
110115 Solutions
New Discussion

Re: Sendmail w/out DNS

 
Chuck Hammontree Jr
New Member

Sendmail w/out DNS

Good day,

I have some HPUX systems in a DMZ environment and would like to be
able to use monitoring scripts for Oracle etc. I placed a Postfix
relay server in the DMZ and it seems to be working OK. The problem I
am having is with the HP systems.

When I send an email to "username" sendmail forwards it to my postfix
system which delivers it. When I send to user@domain.com sendmail
errors with "Transient parse error". I know this is a DNS issue and I
am trying to find a way around. The HP systems need to forward all
mail to the postfix server without checking DNS.

The HP systems are in a DMZ using Hosts files for resolution. They do
not have a fqdn. They are production-controlled systems so I cannot
recompile sendmail or install postfix. This also prevents me from
using DNS.

Thanks in advance for any help.

Snip from sendmail.cf:
##################
# local info #
##################

Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/mail/sendmail.cw


# class U: known direct UUCP connections
FU-o /etc/mail/uucp-hosts


# class S defines hosts to which you connect directly for SMTP mail
FS/etc/hosts.smtp


# UUCP relay for unresolved ! addresses (via UUCP)
DX

# UUCP relay for unresolved ! addresses (via SMTP)
DWserver1

# my official domain name
# ... define this only if sendmail cannot automatically determine
your domain
Djdomain.com


# Class P contains only a dot
CP.

# "Smart" relay host (may be null)
DSserver1.domain.com

# LUSER-RELAY
# The site to which mails to unknown users should be forwarded.
# To use this feature please uncomment the rules in the third
# section of ruleset 5.
# place to which unknown users should be forwarded
#Kuser user -m -a<>
DLserver1

# operators that cannot be in local usernames (i.e., network
indicators)
CO @ % !

# a class with just dot (for identifying canonical names)
C..

# a class with just a left bracket (for identifying domain literals)
C[[


# Mailer table (overriding domains)
Kmailertable dbm -o /etc/mail/mailertable

# Domain table (adding domains)
#Kdomaintable dbm -o /etc/mail/domaintable

# Generics table (mapping outgoing addresses)
#Kgenerics dbm -o /etc/mail/genericstable



# Virtual user table (maps incoming users)
#Kvirtuser dbm -o /etc/mail/virtusertable



# Resolve map (to check if a host exists in check_mail)
#Kresolve host -a -T

#If you need to use LDAP, uncomment the following line, change the
#ldap_server_name and search base in the line below and uncomment
#the two rules imediately following comment line
# "LDAP support" in ruleset S5.

#Kldap ldapx -k"uid=%s" -v"mail" -h"ldap_server_name" -
b"o=organization, c=US"

# Hosts that will permit relaying ($=R)
FR-o /etc/mail/relay-domains

# who I send unqualified names to (null means deliver locally)
DRserver1.domain.com

# who gets all local email traffic ($R has precedence for unqualified
names)
DHserver1.domain.com

# dequoting map
Kdequote dequote

# class E: names that should be exposed as from this host, even if we
masquerade
# class L: names that should be delivered locally, even if we have a
relay
# class M: domains that should be converted to $M
#CL root
CE root
CMdomain.com

# who I masquerade as (null for no masquerading) (see also $=M)
DMdomain.com

# my name for error messages
DnMAILER-DAEMON


CPREDIRECT

# Configuration version number
DZ8.9.3


# X.400 relay if X.400 delivery agent is not local
DP

# OpenMail relay if OpenMail delivery agent is not local
DQ
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: Sendmail w/out DNS

Is this section in your particular sendmail.cf file

# "Smart" relay host (may be null)
DSserver1.domain.com

actually pointing to your postfix server or what is above is a straight copy of what you have ?

I think you can specify your postfix server as a smart relay and achieve what you wish to do, something like:

DSpostfix_server.mycompany.com
________________________________
UNIX because I majored in cryptology...
Geoff Wild
Honored Contributor

Re: Sendmail w/out DNS

Can you add the FQDN to /etc/hosts? for each host as well as server1.domain.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Chuck Hammontree Jr
New Member

Re: Sendmail w/out DNS

server1.domain.com is my postfix server.

The following email message will works:

sendmail -v -s "test" user1

This does not

sendmail -v -s "test" user1@domain.com

Domain.com is our internal domain which can be seen from the DMZ servers except for the Postfix server.

sendmail output:
# sendmail -v unixadmins
test
.
unixadmins... Connecting to server1.domain.com via relay...
220 server1.domain.com ESMTP Postfix
>>> EHLO domain.com
250-server1.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
>>> MAIL From: SIZE=5
250 Ok
>>> RCPT To:
250 Ok
>>> DATA
354 End data with .
>>> .
250 Ok: queued as 3A47564CE
unixadmins... Sent (Ok: queued as 3A47564CE)
Closing connection to server1.domain.com
- - - - - - - - - - - - - - - - - - -

# sendmail -v unixadmins@domain.com
domain.com: Name server timeout
unixadmins@domain.com... Transient parse error -- message queued for future delivery
.
unixadmins@domain.com... queued