System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending email in a closed network

KarloChacon
Honored Contributor

Sending email in a closed network

hi guys

my customer has multiple server but they do not use DNS so there is nothing on resolv.conf

but they opened some communication to a server that is a SMTP server now my questions is these are red hat server 5.0 and I need to send emails. Sendmail is up and running but it fails
with

WARNING: local host name (SRVAMD01) is not qualified; see cf/README: WHO AM I?
lghgbm.net: Name server timeout
l.chacon@lghgbm.net... Transient parse error -- message queued for future delivery
cchacon@gbm.net... queued
You have new mail in /var/spool/mail/root

any idea hot send emails o what I need to change add to my sendmail configuration?

thanks a lot
Didn't your momma teach you to say thanks!
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Sending email in a closed network

Shalom,

You can use /etc/hosts networking to resolve the name of the mail server and use DS smart relay in sendmail.cf

You will still need a mail server that accepts mail for relay or storage.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
KarloChacon
Honored Contributor

Re: Sending email in a closed network

yeah I already included the relay SMTP server in my hosts file


now I need to check this
use DS smart relay in sendmail.cf
you mentioned

would you mind where is exactly or how it has to be added since I am new to sendmail and their options to configure

thanks a lot
Didn't your momma teach you to say thanks!
KarloChacon
Honored Contributor

Re: Sending email in a closed network

I added this to my sendmail.cf

# "Smart" relay host (may be null)
DSservername.bibmail.net
still not working

WARNING: local host name (localserverNAME) is not qualified; see cf/README: WHO AM I?
gmail.com: Name server timeout
karlochacon@gmail.com... Transient parse error -- message queued for future delivery
karlochacon@gmail.com... queued
Didn't your momma teach you to say thanks!
Matti_Kurkela
Honored Contributor

Re: Sending email in a closed network

The exact configuration method may depend on which Linux distribution you're using.

On RedHat Enterprise Linux 5, you should edit /etc/mail/sendmail.mc to un-comment and edit the SMART_HOST option line to point to your mail server, then run "make -C /etc/mail" to regenerate your /etc/mail/sendmail.cf, then restart sendmail.

Please see:
http://kbase.redhat.com/faq/docs/DOC-10659

To have /etc/mail/sendmail.mc in RHEL 5, you must install the "sendmail-cf" RPM package from the standard RHEL package collection.

Also make sure that your /etc/hosts lists a fully-qualified hostname for your server: sendmail will keep complaining if it cannot find out the domain part of the host name.

If you don't use DNS, make sure "dns" is not mentioned in /etc/nsswitch.conf: otherwise sendmail may waste time in attempting to use DNS and failing.

MK
MK
KarloChacon
Honored Contributor

Re: Sending email in a closed network

thanks Matti is not that simple

I just edited SMART_HOST and did not work as soon as I got some time I will check and assign points
Didn't your momma teach you to say thanks!