1834041 Members
2342 Online
110063 Solutions
New Discussion

Sendmail configutation

 
Jorge Prado_1
Advisor

Sendmail configutation

How I configure Sendmail for delibery e-mail in local domain?

Thank
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Sendmail configutation

Quickie way.

vi /etc/mail/sendmail.cf

change directive

# Dj$wfoo.com

to

Djdomainname.com

save the file

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Now test it.

sendmail -v -d8.99 -d38.99 someone@domainname.com

Type in some text



.



This will get you good diagnostics.

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
Fragon
Trusted Contributor

Re: Sendmail configutation

Hi,
You must install POP3 software to receive the mail in Sendmail.
An alternate way(more easy),you can setup another mail server in Windows2000(for example Exchange/Lotus/Imail). You can send the mail to this mail server by Sendmail.
For example, if your email address like "@hp.com" , you can setup as following:
1. vi /etc/passwd
...
192.168.100.1 rlhost hp.com
..
2. vi /etc/mail/sendmail.cf
Change "Dj$w.Foo.COM" to "Dj$w.xyz.com".
Change "DS" to "DSrlhost".
Save.
3. Restart the sendmail server.

Now you can make a test:
#mailx -s "TEST" username@hp.com
-ux
Fragon
Trusted Contributor

Re: Sendmail configutation

Hi,Jorge
In Step3 I mean "Restart sendmail service" not "Restart sendmail server"!
This is serious!
Very sorry for my mistake!

-ux
Juan Manuel Naranjo A.
Frequent Advisor

Re: Sendmail configutation

Befor begining to configure the /etc/mail/sendmail.cf file You must check if your HP-UX system does "see" the Relay server and visceversa, this must be checked with nfslookup.

If your HP-UX system doesn't have configured DNS you must configure your nsswitch
You can copy the file /etc/nsswitch.files
to /etc/nsswitch.conf.

The next thing to check is doing a telnet in port 25 in between UNIX Server and the relay server ( Both ways ) by ussiong the command :
# telnet 25
and try to check if they resolve ech others mail adresses with the SMPT tool vrfy.

Example : from the Relay Server you did a telnet to the unix server and you are already in the prompt:

vrfy root@.company.com

Once you have all this structure working you can begin to configure the sendmail.cf file