Graham Lillico +44 1785 248131 <[EMAIL PROTECTED]> writes: > Hello, > > I was wondering if the following is possible using either Smail or Sendmail, > > What I want to do is to use smail or sendmail mail to deliver my internet > email, The problem I have is that I need one of these packages to deliver any > local mail or network mail to the appropriate user/server, but to queue all > internet email until my dialup connection is established using ppp, I also > need > smail or sendmail to change the "from" address of the email to the address of > my internet email account, (i.e. email bound for the internet needs the "From" > address changed from "[EMAIL PROTECTED]" which is my Linux box to > "[EMAIL PROTECTED]" my internet email account). > > Is this possible? if so how.
Well... Sort of; that is, I've got an smail system on my machine that does this (it's described in http://www.math.jhu.edu/~martind/mybox.html) - however, I don't know how well that setup fares under the smail from hamm. (I've put smail on hold until I have time to deal with it potentially breaking when I go full hamm - I still use the smail from bo). The smail setup I use can easily be modified so that mail to a certain collection of destination addresses doesn't result in rewritten headers - all you need to do is copy the "smtp" transport from the default /etc/smail/transports, and then set up routes in /etc/smail/routers to handle it; for example, an /etc/smail/routers file of: # Your comment here # Deliver my own network directly - don't rewrite localmail: driver=gethostbyname, transport=smtp; required=mynetwork.foo.com # Outside world - rewrite and send it to myisp.com for delivery smart_host: driver=smarthost, transport=smtprewriter; path=smtp.myisp.com You don't need to use a smarthost, but it's probably a good idea for an intermittently-connected site. Now I should point out that there are still some things I don't completely like about this system, and anti-spam stuff on your ISP's smtp server could screw things up - specifically, if your ISP rejects mail based on the envelope from address (the address given in the smtp MAIL FROM: command), as that can't be rewritten. Assuming that usernames are synchronized across your LAN, you may want to set up the smail on machines that are not the gateway using the "satellite" option of smailconfig; I don't really have much experience with that option. In any case, what you probably want to end up with on these non-gateway machines is a smartuser directive in /etc/smail/directors and a smarthost router in /etc/smail/routers sending everything on to your gateway machine, and the local_xform option on the smtp transport in /etc/smail/transports. -- E-mail the word "unsubscribe" to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .