Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External Relay problem

Status
Not open for further replies.

nandak7

Technical User
Sep 24, 2001
52
US
Hi All

Sendmail is not relaying emails from outside the network.
I dialled in to the internet and establised VPN connection to our local area network.How do I tell sendmail server to relay when I connect from remote location.We have bunch of mobile users and they are not able send emails.They can only able to send emails to the users of our own domain but not to external domains.I configured a static pool of ips in my vpn server.so whenever the user connects thru vpn,they get local ips,but each time they get different ips from vpn server.So how can I do this ?

Any help is appreciated.
Thanks in advance
Nanda
 
I get the following error:
The connection to the server has failed.Account 'nanda' server;'mail.mydomain.com',Protocol:SMTP,Port:25,Secure(SSL);No,Socket Error:10051,Error Number 0x800CCC0E

Thanks in Advance
Nanda
 
Any one out there to help me.

Thanks
Nanda
 
Thanks Rouse.After studying the document I came to conclusion my isp is blocking to send emails.This scenario is ok when I send mails without VPN connection.But with vpn connecton I shoud able to send emails from remote.When I send emails from my home with vpn connection ,I am getting the following error

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'nandak7@yahoo.com'. Subject 'test2', Account: 'nanda', Server: '192.168.1.12', Protocol: SMTP, Server Response: '550 5.7.1 <nandak7@yahoo.com>... Relaying denied. IP name possibly forged [192.168.1.17]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79

Any help is appreciated
Thanks
Nanda

 
Nanda,
Ok this is a long shot and may not apply. I think that the vpn connection is not critical to be able to send & receive emails from your remote clients.
Obviously you have an internet pipe to your sendmail server, and the registrar has mail addressed to your domain pointed to your server ip. When you're inside the lan, everything works great.
I'm guessing that your remote users are using various connections (aol, bellsouth, someother internet service) to attach to your lan resources. The remotes should be able to pop mail off your server with their local email client if they've got the account & password set up correctly. Do your users launch a lan based email client from the vpn connection, (like pine), or are they just using the email client on their own desktop? If the latter is true then I believe that unless you have your sendmail server set up as an open relay, mail will bounce. (Don't do that for all of our sakes!)
I tested my outlook client from home & changed my account info & mail server info to be that of my server at the office (different isp's). I was able to retrieve my email from the office, but could not send with that account. The error was similar to yours. That would be because my server's /etc/mail/access folder does not have my home ip address to allow relay. If you were able to plug your remote ip addresses into the /etc/mail/access folder, then you should be able to send as well. But if their ip address is not static, this won't work.
A possible solution would be to use something like mail2web.com. Here the user has to enter the mail server's ip address (like mail.yourdomain.tld), their username & password. Be sure to use advanced option here.
Hope you get this resolved.
Keith
 
Initially sendmail is set to not allow people from out side your network to send mail. This is to prevent an Open Relay. If your mobile users have static IP's you can add them to the access file in sendmail other wise you may have to use POP before SMTP. Here is a link you can check out.
 
In your /etc/access file

Do you have the following lines:
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
xx.yy.zz RELAY
#Where xx.yy.zz is your local subnet 10.10.10 or 192.x.y?
yourdomain.com RELAY
#
#If you connect from a remote location you must know the IP or DOMAIN so you can specify to &quot;allow&quot; it via:
remotedomain.com RELAY
#or if you know the IP
aa.bb.cc.dd RELAY

####Lastly if you don't know the IP the user will be comming in on you are in the same boat as me. You can allow POP access, but not SMTP access. I am looking into a webmail as better option then client/server approach.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top