Operating System - HP-UX
1747984 Members
4209 Online
108756 Solutions
New Discussion юеВ

Re: 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 17
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