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!

Gateway problems and sendmail

Status
Not open for further replies.

Cirvam

Programmer
Nov 23, 1999
58
US
I have a network of 2 Win95 boxes and 1 Linux box. The Linux box is running Slackware 7.0, I have it set up so that ip-masking works. the thing is my family uses 3 diffrent service providers. Netzero, free and a local one. Free is used for 99% of all the connections. However in order to send mail for the local service or for netzero, I have to be logined to their service. I was wondering if it was possable to set sendmail up to forge the mail when ever it is send. Then when I send mail from the netzero address it automatically creates a forged e-mail saying that is is from netzero even though it was sent while connected to free I would like to do the same for the local isp's mailbox.<br>Also I am having trouble getting demand dialing to work. I have tried ppp-go -d but that only works for one 'demand' then it sits there. I have heard of diald but can't find a copy and have no idea how to get it up and running.<br> <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
For a robust demand dialer, check out WvDial.&nbsp;&nbsp;SuSE includes it in their distributions, and the WvDial documentation says it is available as a Debian package.&nbsp;&nbsp;The SuSE package has some SuSE enhancements.&nbsp;&nbsp;I love it - when my ISP disconnects, WvDial redials immediately.&nbsp;&nbsp;WvDial can handle 'phone connects in a wide range of ISP variations, just about anywhere in the world, according to the documentation.<br><br>WvDial is LGPL'd (Library GPL) and is available from Worldvisions, Inc. as source code and as a Debian package:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF=" TARGET="_new"> is supposed to be available from Debian also, though I haven't checked.&nbsp;&nbsp;YaST handles setup for SuSE systems, so I haven't even read the documentation fully.&nbsp;&nbsp;It looks straightforward enough, though.<br><br>Hope this helps.<br><br>
 
Thanks, that helps fix that problem. :) <br>No how can I confiure sendmail for forge my mail. I know it can be confiured to allow for the forging of e-mail by hand how ever I would like to automate the process for my server. So if a message is sent, sendmail rewrites it to appear as if it was sent from the netzero address evern though it uses free e-mail to send it to the recipant.<br><br>Can anyone tell me how to do this? <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
It's possible to do what you want, however...<br><br>It's very likely that the free mail server would just bounce your mail back to you if you set the envelope header to be from netzero.&nbsp;&nbsp;In effect, fre would be acting as a relay for netzero e-mail.&nbsp;&nbsp;In these days of spam, that's usually frowned upon by the majority of ISPs.<br><br>What you could do is set the &quot;Reply-To&quot; field in your e-mail client to your netzero address.&nbsp;&nbsp;Then, anyone replying to&nbsp;&nbsp;your e-mail would send ot to the netzero account.&nbsp;&nbsp;There is also usually an option to set the &quot;From:&quot; header in your e-mail client.&nbsp;&nbsp;You could try setting that to the netzero address as well.&nbsp;&nbsp;However, there's a good chance that free mail server will be checking the &quot;From:&quot; lines to check if somebody is trying to use them as a relay.<br><br>Hope this helps, and good luck!
 
I uderstand the relaying problem, however my other account, with a loacl isp, if you are not connected to their service you can't send e-mail, even if the reply address is good and on thier system. To do that did they just check the ip address the connection is coming from and if they don't own it they didn't allow it to send mail? <br><br>Thanks for the tips on the addressing I will probably just do that, however I would like to know more about configureing sendmail, do you know of any links?<br><br> <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
I just tried telneting to the mail server, smtp.free and I was able to send mail with any from address easily. however this only works if I am connected to thier service. I think I have figured out how to confiure sendmail to make the mail appear from netzero, but still want to learn how to configure sendmail<br> <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
Glad things are beginning to work for you :)<br><br>IMHO, <b>the</b> reference for sendmail has to be the &quot;bat&quot; book from O'Reilly.&nbsp;&nbsp;If you want some on-line info, you won't go far wrong if you start off at <A HREF=" TARGET="_new"> is the official home page of open source sendmail.<br><br>Hope this helps.
 
Thanks that helps. If I were to get relayed smtp from my service provider how would I set up my server to deliver pop mail, so that my users could connect and recive their mail?<br><br> <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
Check your <FONT FACE=monospace>/etc/inetd.conf</font> and do a search for &quot;pop-3&quot; or &quot;pop3&quot;.&nbsp;&nbsp;You'll see an entry that looks similar to:<br><FONT FACE=monospace><br>pop-3&nbsp;&nbsp;&nbsp;stream&nbsp;&nbsp;tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nowait&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;/usr/sbin/tcpd&nbsp;&nbsp;ipop3d<br></font><br>The last entry is the name of the program that is handling POP3 on your box.&nbsp;&nbsp;From there you can do a <FONT FACE=monospace>man</font> or <FONT FACE=monospace>info</font> on the program name to see what you can find, or take a look in <FONT FACE=monospace>/usr/doc</font>.<br><br>There's a good chance that even though the entry is a default entry, and that the program it refers to isn't installed on your box.&nbsp;&nbsp;If that's the case, stick your distro CD in the drive and list &quot;*pop*&quot; to see what you can find.<br><br>If you still can't find a specific POP package, you might want to head over to <A HREF=" TARGET="_new"> and do a search on POP, see what turns up.&nbsp;&nbsp;<FONT FACE=monospace>qpopper</font> seems to be quite popular, although I can't vouch for how easy/hard it is to setup and run.&nbsp;&nbsp;(I'm moving over to using <FONT FACE=monospace>qmail</font> at the moment, and this includes it's own POP3 server, but it also means replacing sendmail.&nbsp;&nbsp;Might be a little bit overkill for you seeing as how you're just beginning to get your sendmail settled down...)<br><br>Good luck! :)
 
By the way, I forgot to say, the example line I included from the &quot;inetd.conf&quot; was from a server I picked at random here that doesn't actually run any mail services.&nbsp;&nbsp;(And our POP is currently NT based, though that's changing soon :)<br><br>The &quot;ipop3d&quot; program is, I think, part of the Cyrus IMAP suite, and it's been stuck in as a default POP3 service in Mandrake 7.0.
 
Thanks, I will be sure to try that...<br><br>Now to see about getting that $20/month ISDN line... <p> Erik<br><a href=mailto:cirvam@netzero.net>cirvam@netzero.net</a><br><a href= > </a><br>Looking to learn more about Linux, Apache, PHP and others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top