I run FC2 on a laptop and I'm playing with sendmail for various reasons. Currently I send through one of two ISPs' SMTP servers: either my web/email hosting provider's, mail.haligonian.com, when I'm at school or my local ISP's, smtp1.ns.sympatico.ca, when I'm at home.Okay, Let's see, you have two e-mail accounts (home & school) residing on 2 e-mail servers which apparently only allow you to send e-mails when your on their network. Correct? Sounds familiar & there are at least a couple of ways to solve the problem, neither of which use "sendmail" on your laptop. This is an e-mail "client" problem, not neccessarily a sendmail (server) problem.
I can not use the home server when I'm at school (and not on sympatico's network), nor can I use my haligonian.com server when I'm at home (don't know why, it just fails). This is a pain in the butt, naturally, that I have to manually switch SMTP servers every time I move the laptop between locations.
I finally figured out how to get sendmail to send mail -- at home -- usingThe use of SSL should allow you to use the mail servers from outside the network (assuming the mail servers are set up to handle it). Most ISPs block port 25 and/or unauthenticated access from outside their network.
define(`SMART_HOST',`smtp1.ns.sympatico.ca')dnl and MASQUERADE_AS(ns.sympatico.ca)dnl
I haven't tried this at school yet, when I have traditionially had to use mail.haligonian.com but I'm guessing that when I'm there, sympatico will deny me use to their servers.
Does anyone have any advice on a simple, no manual intervention way to send email from a laptop regardless of network that I'm attached to?Hope the above helps!