SMTP is short name for Simple Mail Transfer Protocol. SMTP is an Internet standard for electronic mail (e-mail) transmission. . In this post we will be seeing SMTP in HPUX.SMTP is short name for Simple Mail Transfer Protocol. SMTP is an Internet standard for electronic mail (e-mail) transmission. In this post we will be seeing SMTP in HPUX.
Pre-requisite :
- hostname and IP address of SMTP server should be known (e.g. we will use mailserver.xyz.com 10.10.2.5)
- Client should be able to reach SMTP server over network
Configurations :
Step 1.
Add SMTP server entry in /etc/hosts file using vi editor or concatenate using echo command below.
Step 2.
Update daemon configuration file /etc/rc.config.d/mailservs to start the SMTP services with server startup. Edit the file with vi editor and update below entry:
SENDMAIL_SERVER=1
Add the SMTP server detail into SMTP configuration file /etc/mail/sendmail.cf. Edit below two entities
DMxyz.com
Dj<hostname>.com <<Add clients hostname
DSmailserver.xyz.com
#C{E}root <<hash this entry
Dj<hostname>.com <<Add clients hostname
DSmailserver.xyz.com
#C{E}root <<hash this entry
Step 3.
Now restart the SMTP daemon to take up this new configuration:
Now check if sendmail is running using below command:
Step 4.
Send a test mail and verify.
If you dont receive email, check logs under /var/adm/syslog/mail.log for troubleshooting.
0 comments:
Post a Comment