1827880 Members
1623 Online
109969 Solutions
New Discussion

Sendmail

 

Sendmail

Hi, I am trying to send mail to external SMTP addresses. I am able to send mail within my own domain. When I try and sendmail outside I cannot reach the smtp server. ALthough I can look them up as I am able to use DNS to resolve name issues.
Which does not kill you only makes you stronger
9 REPLIES 9
Mark Grant
Honored Contributor

Re: Sendmail

Are you sure this is not being blocked by the smtp server. The errors you get sometimes look like it is actually you that can't resolve the server.

I really hate sendmail configuration and someone here will probably prove me wrong but I think you need

DMyour domain
DSyour smtp server

And it is supposed to work.
Never preceed any demonstration with anything more predictive than "watch this"

Re: Sendmail

Hi

try sending a test e-mail with sendmail -v and tell us what the reported error / problem is

Rgrds

Christos
Together we stand divided we fall
Jeff Schussele
Honored Contributor

Re: Sendmail

Hi Robert,

One of the most common sendmail problems is name resolution. All players involved in a sendmail transaction *must* be resolvable in both directions - i.e. by name & IP.
1)Make sure your host is resolvable - BOTH ways.
2)Make sure the SMTP server has an MX (Mail eXchanger) DNS record AND proper name/IP records.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bruno Ganino
Honored Contributor

Re: Sendmail

Testing sendmail in attchment.
HTH
Bruno
Torino (Turin) +2H
Bruno Ganino
Honored Contributor

Re: Sendmail

Also go to http://www.sendmail.org/

Regards
Bruno
Torino (Turin) +2H
Pratyush Paul_1
Valued Contributor

Re: Sendmail

Hi,

This is the problem with your DS macro, your smart relay host had not been defined in the sendmail.cf file. Here is what you have to do.

# vi /etc/mail/sendmail.cf

DS SMTP_MAIL_SERVER

# kill -9 (sendmail_PID)

#/usr/sbin/sendmail -q15

See if it works. Please ensure that you have nslookup working with the smtp server.

Thanks

Pratyush
Die Hard
Geoff Wild
Honored Contributor

Re: Sendmail

As others have said, add the DS and DM macros....

For restart, DO NOT kill -9

instead:

kill -HUP

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.
Ken Penland_1
Trusted Contributor

Re: Sendmail

you might be able to look up the address, but that doesnt mean sendmail can, try typing in:

echo '/mx $PROBLEM_DOMAIN' | sendmail -bt -d8.8

That should at least give you an error message pointing you in the write direction.
'
Steven E. Protter
Exalted Contributor

Re: Sendmail

A good diagnostic routine:

sendmail -v -d8.99 -d38.99 someone@some.net
type some text

.


You will get diagnostics and see whether your message is in the machine queue or passed.

sendmail -q
tries to push sendmail queue off the box.

mailq
Checks/displays the mail queue.

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