Operating System - HP-UX
1833687 Members
4253 Online
110062 Solutions
New Discussion

Configuring sendmail.................

 
boomer_2
Super Advisor

Configuring sendmail.................

Hi guys,
I have to configure sendmail to send mails from my HPrx4640 11i v2 server to my outlook box..

root #/etc/mail >ps -ef|grep send
root 6796 1 0 13:56:44 ? 0:12 sendmail: accepting connections


root #/etc/rc.config.d >cat mailservs
#########################################
# Mail configuration. See sendmail(1m) #
# @(#)B11.23_LR mailservs version 8.11
#########################################
#
# BSD's popular message handling system
#
# SENDMAIL_SERVER: Set to 1 if this is a mail server and should
# run the sendmail deamon.
# SENDMAIL_SERVER_NAME: If this is not a mail server, but a client being
# served by another system, then set this variable
# to the name of the mail server system name so that
# site hiding can be performed.
# SENDMAIL_RECVONLY: If set to 1, then sendmail perform "receive only"
# function. In other words, users are not allowed
# to send mail from this domain or process the mail
# queue.
# SENDMAIL_SENDONLY: If set to 1, then sendmail perform "send only"
# function. In other words, users are not allowed
# to receive mails in this domain.
#
#
# The priority(from high to low) set for the above mentioned flags
# are in the order SENDMAIL_SERVER, SENDMAIL_SERVER_NAME,
# SENDMAIL_RECVONLY, SENDMAIL_SENDONLY.
#
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

i have tried the DS & DR macro settings also but m getting this error when i start and stop sendmail...


root #/etc/mail >/sbin/init.d/sendmail start
newaliases: cannot open /etc/mail/aliases: Executable files not allowed
sendmail


domain=cedge.in
Name=smtp.cedge.in

root #/etc/mail >sendmail -v tejas.chaudhari@cedge.in
cedge.in: Name server timeout
tejas.chaudhari@cedge.in... Transient parse error -- message queued for future delivery
hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii......tas.xyz@cedge.in... queued

nslookup smtp.cedge.in

root #/etc/rc.config.d >nslookup smtp.cedge.in
Using /etc/hosts on: cedge2

looking up FILES
Name: smtp.cedge.in
Address: 64.xx.xx.xxx


what do i do...?????


root #/etc/mail >ll
total 336
-rwxr-xr-x 1 root root 909 Sep 10 13:01 aliases
-rw-r----- 1 root mail 24576 Aug 18 2006 aliases.db
-r--r--r-- 1 bin bin 10221 Sep 3 2003 mailcap
-r--r--r-- 1 bin bin 100845 Sep 10 13:54 sendmail.cf
-r--r--r-- 1 bin bin 702 Jul 19 2006 sendmail.cw
-rw------- 1 root sys 34 Sep 10 13:56 sendmail.pid



sendmail.cf attached herewith...........
7 REPLIES 7
boomer_2
Super Advisor

Re: Configuring sendmail.................

sendmail.cf attached herewith........
Keith Johnson
Valued Contributor

Re: Configuring sendmail.................

One problem is that your /etc/mail/aliases file has execute permissions which Sendmail does not like. In our environment (pure development) we set the perms to 640.

Also, check your /etc/nsswitch.conf file to ensure that you're using the DNS method (dns or files) you require and in the correct order.

Finally, it looks like these entries:

domain=cedge.in
Name=smtp.cedge.in

are from your /etc/resolv.conf file. The domain entry looks OK assuming your domain is sedge.in. It looks like you need to add a nameserver entry like:

nameserver xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the IP address of your DNS server.
No matter where you go...there you are.
Steven E. Protter
Exalted Contributor

Re: Configuring sendmail.................

Shalom,

For simply relay just use the DS directive in sendmail.cf

DSrelayhostname

or

DS
[192.168.0.10]

There the ip address is the ip address of the relay box.

Note: you will need to explicitly permit relay as it is denied by default on "outlook" boxes. I'll assume you mean exchange server.

root 6796 1 0 13:56:44 ? 0:12 sendmail: accepting connections

That permits inbound mail, does nothing about getting mail off the box without further configuration.

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
Geoff Wild
Honored Contributor

Re: Configuring sendmail.................

As Steven says, set the DS macro in sendmail.cf.

Also, I would set the DM macro as well to your company domain name:

DSyourexchangeserver

DMyourdomain.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.
boomer_2
Super Advisor

Re: Configuring sendmail.................

Hi Keith,Geoff,Steven,
I have finally started my sendmail working....but some user issue is there...i will sort it out with the mail server guy and let u know ...asap...
boomer_2
Super Advisor

Re: Configuring sendmail.................

Hi guys,
When i am trying to test sendmail by giving m getting;
root #/etc/mail >sendmail -v tejas.chaudhari@cedge.in
hiiiiiiiiiiiiiiiiiiiitejas.chaudhari@cedge.in... Connecting to [64.xx.xx.xx] via relay...
220 t6.t.net
>>> EHLO smtp.cedge.in
250-t6 Hello [203.xx.xx.xx]
250-SIZE 10485760
250-AUTH LOGIN CRAM-MD5
250 OK
>>> MAIL From: SIZE=21 AUTH=root@smtp.cedge.in
250 OK Sender ok
>>> RCPT To:
550 No such user here
>>> RSET
250 OK
root... aliased to tejas
/dead.letter... Saved message in /dead.letter
Closing connection to [64.xx.xx.xx]
>>> QUIT
221 Service closing transmission channel



Why i m getting this that no such user exist..whereas i do have my mail id and wrkng in cedge.in domain............plzzz suggest what should i do????

Also its not taking my username as tejas ..why its taking ejas ???????
boomer_2
Super Advisor

Re: Configuring sendmail.................

Hi guys,
I have got my sendmail working ,but m not able to send mails from my server to yahoo.gmail accounts....