1826061 Members
4086 Online
109690 Solutions
New Discussion

As Configuring Sendmail?

 

As Configuring Sendmail?

Hello,

Which are the steps to continue to configure the sendmail in my servant HPUX 10.20. The configuration is to send mail to suppliers of outside of my domain.

Thank you,

Orlando
Orlando Oliveira
1 REPLY 1
Animesh Chakraborty
Honored Contributor

Re: As Configuring Sendmail?

This is for configuring sendmail without DNS

you need to know the SMTP server(exchage server) name and IP address that you put in DS setting.

1. Add following entries in /etc/mail/sendmail.cf file:

# to qualify local host name
Dj$w.hp.com
# smtp mail gateway ip address
DS 10.204.2.23



2. Add following to /etc/mail/sendmail.cw

hostname
hostname.com
hostname.hp.com


3. Add aliase to /etc/hosts file:

xyz.xx.xx.xx hostsname hostname.

note: the period (.) after hp00004 is required

4. Verify that /etc/mail/service.switch contains following:

hosts files
aliases files

Note: its 'hosts files' and not 'hosts dns files'


5. create /etc/nsswitch.conf to contain following information:

hosts: files
aliases: files
services: files
protocols: files
networks: files
netgroup: files
rpc: files

Note: sendmail 8.8.6 uses nsswitch, not service.switch
6. Verify macros :

# grep '^D' /etc/mail/sendmail.cf
Dj$w.hp.com
DS xx.xx.xx.xx
DH
DM
DnMAILER-DAEMON
DZ8.7.1
7. Verify /etc/rc.config.d/mailservs contain following:

export SENDMAIL_SERVER=1


8. Stop sendmail

/sbin/init.d/sendmail stop


9. Start sendmail

/sbin/init.d/sendmail.start


10. Test sendmail:

# sendmail -v abcS@xyz.com < /etc/hosts
Did you take a backup?