1752727 Members
5636 Online
108789 Solutions
New Discussion юеВ

Re: email setup

 
ng_7
Regular Advisor

email setup

hi, experts

I tried to send mail from my unix to my email account, but I received nothing. below are my step

app:/# mail alson.ng@tamco.com.my
testing mail
testing mail

ctrl-D

what are the setting that I need to set to make this work ?

thank you

regards
ng
12 REPLIES 12
Mel Burslan
Honored Contributor

Re: email setup

Edit your sendmail configuration file

vi /etc/mail/sendmail.cf

find the line starting with letters

DS

get the name of your organization's email relay server. Lets say it is exchange.tamco.com.my. Then change this line as follows:

DSexchange.tamco.com.my

if there is no such line, create one like this one above

save the file and exit

talk to the email server administrators and tell them to allow your machine (give them the server name and ip address) to relay mail to outside.

That should do it
________________________________
UNIX because I majored in cryptology...
Andrey Chipalyuk
Frequent Advisor

Re: email setup

You must see mail.log file to determine what what do happen when you send mail.

/var/adm/syslog/mail.log

mail.log give you some information.
For example, you can see:

Jul 9 12:06:16...from=...
Jul 9 12:06:16...to=...relay=...stat=Sent...Queued mail for delivery

mail.log have error messages as well.
ng_7
Regular Advisor

Re: email setup

I got this :

Jul 9 09:03:41 tamcoapp sendmail[3449]: JAA03449: to=alson.ng@tamco.com.my, delay=00:00:00, mailer=esmtp, stat=queued
Jul 9 12:54:58 tamcoapp sendmail[18979]: IAA02587: MAA18979: return to sender: Warning: could not send message for past 4 ho
urs
Jul 9 12:54:58 tamcoapp sendmail[18979]: MAA18979: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Jul 9 13:15:00 tamcoapp sendmail[20050]: NAA20050: from=root, size=260, class=0, pri=30260, nrcpts=1, msgid=<200907090515.NA
A20050@tamcoapp.tamco.com.my>, relay=root@localhost
Jul 9 13:15:00 tamcoapp sendmail[20053]: NAA20050: to=root, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=loca
l, stat=Sent
Jul 9 13:25:58 tamcoapp sendmail[20579]: JAA03449: NAA20579: return to sender: Warning: could not send message for past 4 ho
urs
Jul 9 13:25:58 tamcoapp sendmail[20579]: NAA20579: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Jul 9 13:25:58 tamcoapp sendmail[20579]: JAA03335: NAB20579: return to sender: Warning: could not send message for past 4 ho
urs
Jul 9 13:25:58 tamcoapp sendmail[20579]: NAB20579: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Jul 9 13:25:59 tamcoapp sendmail[20579]: JAA03438: NAC20579: return to sender: Warning: could not send message for past 4 ho
urs
Jul 9 13:25:59 tamcoapp sendmail[20579]: NAC20579: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Jul 9 14:07:55 tamcoapp sendmail[23328]: OAA23328: from=root, size=11, class=0, pri=30011, nrcpts=1, msgid=<200907090607.OAA
23328@tamcoapp.tamco.com.my>, relay=root@localhost
Jul 9 14:07:55 tamcoapp sendmail[23328]: OAA23328: to=alson.ng@tamco.com.my, delay=00:00:00, mailer=esmtp, stat=queued
Basheer_2
Trusted Contributor

Re: email setup

Follow Mel's steps

then stop and start the sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Andrey Chipalyuk
Frequent Advisor

Re: email setup

Check your DNS and network settings, available of your mail exchanger server.
For example, you can get address of your mail exchanger server for the next way:

nslookup -type=MX your.domain.name

P.S. Don't forget to set points for reply of your questions.

http://forums13.itrc.hp.com/service/forums/helptips.do?#28
ng_7
Regular Advisor

Re: email setup

I still not able to send mail from my unix box after add my mail relay server to the DS.

DS

but still not able to send.

thanks
Mel Burslan
Honored Contributor

Re: email setup

please post the output from this command

echo test | sendmail -v alson.ng@tamco.com.my

________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: email setup

Shalom,

Your server is not being permitted to relay mail to the server specified with the DS parameter.

You can test this:

telnet servername 25

If you denied access the relay server must be configured to permit relay.

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
ng_7
Regular Advisor

Re: email setup

I have tried the below commnand in Unix

1. nslookup -type=MX your.domain.name

Using /etc/hosts on: tamcoapp

looking up FILES
*** No address information is available for "mail.tamco.com.my"

then I add in mail.tamco.com.my into /etc/hosts. it give the server and ip result


2. echo test | sendmail -v alson.ng@tamco.com.my
alson.ng@tamco.com.my... tamco.com.my: Name server timeout
alson.ng@tamco.com.my... Transient parse error -- message queued for future delivery
alson.ng@tamco.com.my... queued


3. telnet 25

I am able to telnet