1834831 Members
2449 Online
110070 Solutions
New Discussion

SENDMAIL

 
Daniel Duarte
Frequent Advisor

SENDMAIL

I have a server where use the sendmail to send external email, initiated an error of smtp Carried through the following procedures
a) Recriei the archive sendmail.cf
b) Alterei aliases for 644
c) sendmail - bi (to inicializar sendmail.db) d) sendmail stop
e) sendmail start
the command that usto to order a external email:
# mailx -s "UNIX_diversey" -r UNIX_Diversey duarte_d@ig.com.br < /dev/null
null message body; hope that´s ok

when I apply the command
# sendmail -bv -v -oL10 duarte_d@ig.com.br
it returns
duarte_d@ig.com.br...ig.com.br: name server timeout
duarte_d@ig.com.br...transient parse error - message queued for future delivery
duarte_d@ig.com.br...deliverable:mailer smtp, host ig.com.br, user duarte_d@ig.com.br

I am finding that it is two causes, error of TCP or error in the binario of the sendmail. In case that they can guide me where I can configure or what I can make. Detail: the error started apos one reboot in scheme
6 REPLIES 6
Elmar P. Kolkman
Honored Contributor

Re: SENDMAIL

sendmail needs to be able to resolve the host where the mail is sent to. The address that comes back is not important when you have a smart relay, as long the host is resolvable. This is a security related issue.

So, if you want to send mail to users at ig.com.br, you need to be able to resolv that. What we have done here for this, is add ig.com.br to /etc/hosts with a dummy IP address. Try adding it with IP address 1.1.1.1 and see if this solves your problem.

If you don't have a smart relay (DS entry in sendmail.cf), you will have to verify the address and if it is correct, check the DNS setup. You should be able to lookup the address.
Every problem has at least one solution. Only some solutions are harder to find.
Daniel Duarte
Frequent Advisor

Re: SENDMAIL

I had configured etc/hosts as the DNS of the email server and inserted line DS of the archive inside sendmail.cf
Elmar P. Kolkman
Honored Contributor

Re: SENDMAIL

What did you put after the DS in the sendmail.cf ??? If nothing, you won't use a smart relay, meaning the nslookup of ig.com.br has to be the real address, not the false one.

Please send us the output of the following:
grep '^DS' /etc/mail/sendmail.cf
Every problem has at least one solution. Only some solutions are harder to find.
Daniel Duarte
Frequent Advisor

Re: SENDMAIL

I have one I scheme that he has same configuracao of the sendmail, I copied the archive sendmail.cf for I scheme that this giving the error, the error continued. The email server is one schemes with system NT, will count a DNS, this DNS this configuring inside of etc/hosts the message one of the command that he requested was:

DS

It schemes it that this functioning has the same message

Elmar P. Kolkman
Honored Contributor

Re: SENDMAIL

In that case what you need to do is make sure the following command works:
nslookup -type=mx ig.com.br

If not, first make sure DNS is working correctly.

Every problem has at least one solution. Only some solutions are harder to find.
Berlene Herren
Honored Contributor

Re: SENDMAIL

A transient parse error usually involves your nameserver switch/resolv.conf. If you are NOT using DNS, then ensure /etc/nsswitch.conf does exist and does not contain DNS in the host line. At the same time, again, if not using DNS, ensure that /etc/resolv.conf does NOT exist.

If you are using DNS, then try taking it out of the picture, using the DSmailhost.com (whatever the name of your smart host is), ensuring your can resolve that name.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm