1833870 Members
1533 Online
110063 Solutions
New Discussion

sendmail tweak again

 
SOLVED
Go to solution
Vijaya Kumar_3
Respected Contributor

sendmail tweak again

I am facing a problem in sendmail.

My machine is configured as web.mydomain.com. And i am sending mails on behalf of mydomain.com. But i am not receiving mails for mydomain.com. It is another host called mx.mydomain.com.

It is just fine with MASQUERADE_AS command with sendmail.mc. Now the problem is i am unable to send mails to mx.mydomain.com

I did a
/usr/sbin/sendmail -v -d8.99 -d38.99 someuser@mydomain.com
It is saying

user@mydomain.com... Connecting to mx.mydomain.com. via esmtp...
user@mydomain.com... Deferred: Connection reset by mx.mydomain.com.

Can u pls help me

Tia
Vijay


Deferred: Connection reset by mx.mysite.com
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: sendmail tweak again

Easy one I think.

You need an entry in the /etc/mail/access file

hostname RELAY

or

IP_adderss RELAY

Once again tab delimited.

save the file.

Then run a script to build the hash databaases. I attached a copy to your prior thread.

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
Steven E. Protter
Exalted Contributor

Re: sendmail tweak again

That change I posted needs to be done on the server thats resetting the connection, not the sending server.

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
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak again

Thanks steven for your help

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: sendmail tweak again

hey steven,

you mean my IP is blocked on ther other server? I dont have access to the MX server. it is maintained by others. I am able to connect from other hosts, from my laptop, i am able to do "telnet mx.mydomain.com 25" and it is connecting.
but not from my linux machine? why?
thanks
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Kasper Haitsma
Trusted Contributor

Re: sendmail tweak again

Vijay,

There is a workaround, not clean, but it will do. In another threat, you mentioned, that outgoing mail now works fine. Find out which system is relaying these succesful message from the maillog file. Add this as your Relay server in sendmail.cf (I'm not familiar with mc building). This way all your outgoing mail will travel through this relay server.

HTH

Kasper
It depends
U.SivaKumar_2
Honored Contributor

Re: sendmail tweak again

Hi,

"connection reset by mx.mysite.com" error has nothing to do with relaying access control in /etc/mail/access. Morever Relaying does not happen in this case.

Have you got any firewall or IP filtering between these web.mydomain.com and mx.mydomain.com ?.

Please call the service provider of mx.mydomain.com and confirm that there is no IP blocking done for your network using firewalls etc.

Also ask them that whether that SMTP host mx.mydomain.com strictly checks Reverse PTR records of the connecting hosts thru SMTP. If yes , you may request to add PTR record for web.mydomain.com to your network's in-addr.arpa zone registrar.

you cannot receive mail for mydomain.com in web.mydomain.com since the MX record for mydomain.com is configured as mx.mydomain.com in your DNS server.

regards,

U.SivaKumar





Innovations are made when conventions are broken