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

SENDMAIL configuration (urgent)

tandra
Frequent Advisor

SENDMAIL configuration (urgent)

hey all

im a newbe on HP_UX systems
the hp_ux 11iv3 is installed on a server

can someone help me in the sendmail configuration to be activated in order to sendmail to XXX.com

in other words i need to enable mails to be forwarded to an address xxx.com

what is the configuration needed for doing this task.

i have the hostname and ip address of the mail server,if there any needed information that are missing plz let me know

your help is urgently needed

thx and best regards
17 REPLIES
Hathairath Duanglaykha
Occasional Advisor

Re: SENDMAIL configuration (urgent)

1) edit /etc/hosts
- add ip and hostname of mail server
2) edit /etc/sendmail.cf:

Dj$.yourdomain.com
DSmailserver

3)testing by "sendmail -v user@hotmail.com test"
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

i tried the below steps and it didnt work

when executing the following commond
sendmail -v tandra@cis.com.lb test

i have the following output:

WARNING: local host name (Training) is not qualified; see cf/README: WHO AM I?
test... Warning: alias database /etc/mail/aliases.db out of date
test... User unknown

thx
Hathairath Duanglaykha
Occasional Advisor

Re: SENDMAIL configuration (urgent)

This error is caused by the fact that the file /etc/mail/aliases is newer than the appendant database /etc/mail/aliases.db. The command 'newaliases' has to be executed each time you make a change to the file /etc/mail/aliases for aliases.db to be updated. Execute now the command 'newaliases' or 'sendmail -bi'. This updates the file /etc/mail/aliases.db.
Steven E. Protter
Exalted Contributor

Re: SENDMAIL configuration (urgent)

Shalom,

Some configuration is required on the receiving smtp relay server.

Not qualified probably means that the receiving host is expecting mail from a fully qualified domain name that can be confirmed on a DNS server.

Having this server in the access file with OK or RELAY defined should get around this issue.

http://www.hpux.ws/?p=5

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
VK2COT
Honored Contributor

Re: SENDMAIL configuration (urgent)

Hello,

You have three common errors in your setup:

QUOTE
sendmail -v tandra@cis.com.lb test

WARNING: local host name (Training) is not qualified; see cf/README: WHO AM I?
test... Warning: alias database /etc/mail/aliases.db out of date
test... User unknown
END QUOTE

a) /etc/mail/aliases database is old.
Recreata by running command newaliases(M).

b) "Local host name not qualified" means you
do not have Fully Qualified Doman Name (FQDN)
for your host in /etc/hosts. Most probably,
you have something like:

X.Y.Z.Q myhost

You should have something like

X.Y.Z.Q myhost.mydom.dom myhost

c) Finally, you used sendmail
with wrong syntax. To dry-run check
email delivery, simply run

/usr/lib/sendmail -bv tandra@cis.com.lb

I think you wanted to pass Subject:
header to sendmail, and this is not the way
to do it.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

Hey all,

plz check my steps and let me know if there something wrong,

1)
The hostname of the mail server: cis-mail.cismail.com.lb
The ip of the email server is 192.168.244.18
The hostname of the hp_ux server: Training

The ip and hostname of the mail server are edited in the hosts file


2)
Domain name:cisw2kdf.com.lb
Hostname of the mail server:cis-mail.cismail.com.lb

In the sendmail.cf file the following information are edited
#DJ$.cisw2kdf.com.lb
#DScis-mail.cismail.com.lb

3)
in the aliases file I added

#Unix Administration
Root :unix_admin
Unix_admin :tandra@cis.com.lb

Then save and exit

4)
When I try to run newaliases command
The following error appear:

# newaliases
/etc/mail/sendmail.cf: WARNING: dangerous write permissions
WARNING: local host name (Training) is not qualified; see cf/README: WHO AM I?
/etc/mail/aliases: 9 aliases, longest 22 bytes, 134 bytes total

5)
When the command sendmail â v tandra@cis.com.lb test is executed,
I have the following output:
WARNING: local host name (Training) is not qualified; see cf/README: WHO AM I?

When the command sendmail â bv tandra@cis.com.lb test is executed
I have the following output:
tandra@cis.com.lb... deliverable: mailer esmtp, host cis.com.lb., user tandra@cis.com.lb

am Waiting for your replies. Itâ s an urgent case.
thx

best regards,

tandra

prasadb
Super Advisor

Re: SENDMAIL configuration (urgent)

what means are you using to route your mail ? i mean, is it some exchange server or dns ?
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

yes its an exchange server
T G Manikandan
Honored Contributor

Re: SENDMAIL configuration (urgent)

It should be Dj$w., is yours missing it?

Restart sendmail after changes.

Also, make sure you have your /etc/hosts entry something like



tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

hey

the same errors still exist!

are there any steps that could be taken?

thx
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

hey again

is there any update concerning this issue!

its realy an urgent case..and i need some help!

thx and regards
T G Manikandan
Honored Contributor

Re: SENDMAIL configuration (urgent)

can you attach your sendmail.cf file.

Also paste the contents of /etc/hosts file.
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

kindly find attached the sendmail.cf file

the hosts file contain the following information:

#

192.168.244.198 Training
192.168.250.14 cis-mail.cismail.com.lb cis-mail
192.168.250.6 cis2ks2.cisw2kd2.cis.com cis2ks2
127.0.0.1 localhost loopback



thxx
T G Manikandan
Honored Contributor

Re: SENDMAIL configuration (urgent)

Make these changes with the sendmail.cf file

Dj$w.cisw2kdf.com.lb
DScis-mail.cismail.com.lb


in the above explanation you have pointed the domain to be cisw2kdf.com.lb and with the sendmail.cf it is cisw2kd.com.lb, please check and fix

Also, with your /etc/hosts make entry like

192.168.244.198 Training.cisw2kd.com.lb Training

Restart sendmail and test.

Let me know how it goes.
tandra
Frequent Advisor

Re: SENDMAIL configuration (urgent)

after modifiying the sendmail.cf and the hosts file then stop and start the sendmail

i have always the same errors..

# sendmail -bv tania@cis.com.lb
tanios_trad@cis.com.lb... deliverable: mailer esmtp, host cis.com.lb., user t
anios_trad@cis.com.lb

# sendmail -v tania@cis.com.lb
WARNING: local host name (Training) is not qualified; see cf/README: WHO AM I
?

is there any additional steps to be performed ?

thxx
VK2COT
Honored Contributor

Re: SENDMAIL configuration (urgent)

Hello,

Have you carefully read my previous post:

QUOTE
b) "Local host name not qualified" means you
do not have Fully Qualified Doman Name (FQDN)
for your host in /etc/hosts. Most probably,
you have something like:

X.Y.Z.Q Training

You should have something like

X.Y.Z.Q Training.mydom.dom Training
END QUOTE

By the way, why are you using upper-case
characters for hostname? Stick to
lower-case.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
leonardop
Occasional Contributor

Re: SENDMAIL configuration (urgent)

Hi.

Steps..

1. Change /etc/mail/sendmail.cf
#Dj$w.Foo.COM
Dj$mi.dominio.com
# "Smart" relay host (may be null)
DS
DSserver_mail

2. copy nsswitch.file to nsswitch.conf in /etc

3. Test
mailx -s "TEST" user_name@domain.com