On Wednesday 28 April 2004 1:58 pm, Manny Amador wrote: > On Wed, 28 Apr 2004, ian sison (mailing list) wrote: > > What you can do to solve your problem is to configure your local postfix > > to relay directly to your ISPs SMTP relay. The config parameter is > > > > relayhost = [nn.nn.nn.nn:25] > > > > This way you can have the best of both worlds. Your pine will > > immediately return (as its just a localhost connection between pine and > > postfix) and you can let your local postfix worry about delivering your > > mail to the ISP's mail relay. > > Thanks a million! I'll try this out. > > Hmmm... so does that mean I havwe to worry about mail sent through our > Cebu Mozcom account being blocked? Oh well, we still have our > inter-office dialup. They allow direct SMTP ( I think).
relayhost is a good solution. it can, however, be a problem if you connect through different ISPs. because then, your default relayhost setting won't necessarily work with all those ISPs (it *can*, if you have POP3 auth before SMTP, or if you have some sort of authenticated SMTP, but for generic unauthenticated SMTP, it's going to work with one ISP, and fail with all the others. SMTP forwarding over ssh is one way around this. i did that when i was travelling overseas a while ago. when i'd go online, /etc/ppp/ip-up.local would automatically setup the ssh forwarding of SMTP to my server in the philippines, and then i'd just send to local SMTP (which would be forwarded over ssh to the SMTP server overseas). if you don't want to do that (e.g., if you don't have an SMTP and ssh server that you can control enough to do this) then you can modify the relayhost in /etc/postfix/main.cf everytime you dialup, to the correct one (or just have a different main.cf for each ISP you connect to, with the correct relayhost setting and copy that main.cf.<isp> file to /etc/postfix/main.cf and kick postfix from /etc/ppp/ip-up.local). there are other ways around that too. i used to have a setup that would run a sed replacement on config files depending on which ISP i was connected to, so that things would work (DNS, squid proxy forwarding, SMTP, etc). tiger -- Gerald Timothy Quimpo gquimpo*hotmail.com tiger*sni*ph http://bopolissimus.sni.ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Using the Back button in IE is dangerous. http://online.securityfocus.com/archive/1/267561 Pressing CTRL in IE is dangerous. http://online.securityfocus.com/archive/1/283866 -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
