1828859 Members
2398 Online
109985 Solutions
New Discussion

Re: senmail problem

 
mohan_19
Occasional Advisor

senmail problem

Hello,

mails are not reaching to destination, getting quied up.
trying the following command get some error.

sendmail -v rauthanms.external@infineon.com rauthanms.external@infineon.com... Connecting to
appmail.mkz.infineon.com via relay...
rauthanms.external@infineon.com... Deferred: Connection reset by
appmail.mkz.infineon.com Closing connection to appmail.mkz.infineon.com

Then I tried to going my relay server I get the below message.

[root]mscim12:/>telnet appmail.mkz.infineon.com 25
Trying...
Connected to appmail.mkz.infineon.com.
Escape character is '^]'.
Connection closed by foreign host.


Can any body help to resolve this problem.

Regards

Mohan
4 REPLIES 4
Ivajlo Yanakiev
Respected Contributor

Re: senmail problem

send us /var/log/mail.log

Steven E. Protter
Exalted Contributor

Re: senmail problem

Don't even need a mail log:

Try this:

sendmail -v -d8 -d38 rauthanms.external@infineon.com

type
.


The relay server needs to permit relay from your server.

This is defined in the file /etc/mail/access

ip_address_of this machine RELAY
#example
192.168.0.30 RELAY

This is done on the machine you are trying to relay through.

You would then need to build the access.db file using one of the methods given on http://www.sendmail.org

I'm assuming relay is set up in the sendmail.cf file.

Its possible to set up these options in sendmail.mc, making it easier to understand and manage options. The same database building script from sendmail.org (my enhanced anti-spam version attached) will handle things for you.

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
mohan_19
Occasional Advisor

Re: senmail problem

Hello,

Attaching mail.log for your further investigation.

Mohan
Steven E. Protter
Exalted Contributor

Re: senmail problem

I was wrong btw,the log does help.

Nov 25 10:44:00 mscim12 sendmail[8477]: gethostbyaddr(10.10.10.12) failed

Shows a possible DNS lookup problem. Maybe the user made a mistake, maybe the /etc/resolv.conf servers aren't getting good data.

I still think the relay setup is at fault here.

relay=appmail.mkz.infineon.com, stat=Deferred: Connection reset by appmail.mkz.infineon.com

This server is rejecting relays. That is what needs to be done.

You can follow the guides at sendmail.org or what I've posted but I believe the relay server is not set up properly. DNS may be a contributing factor.

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