MLUG: Re: [UUG/MLUG] Hacking sendmail for home system over dial-up
Re: [UUG/MLUG] Hacking sendmail for home system over dial-up
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Fri, 8 Jan 1999, Bryan Venable wrote:

> On Fri, 8 Jan 1999, Jason McIntosh wrote:
> [...]
> > 1) Set this machine up for using mail services of that machine alone.
> > I.E. being able to run pine on that machine and send and recieve email.
> 
> You need to run a mail transfer agent such as sendmail or qmail.  Most
> (all?) distributions come with sendmail installed, with a basic
> configuration.  If you're using Red Hat 4.2 or 5.x it should almost
> certainly be installed and running (unless you specifically disabled it
> during the installation).  You can see if sendmail is running by typing
> 
> ps auxfw | fgrep sendmail

Ok, I've had sendmail from the first.  The problem though is that I get an
error message when sending an email to the account....I've got the
resulting email that I tried to send to my linux box here included.

> If a sendmail process shows up, you should be able to send and receive mail
> with Pine, assuming you have a static IP and hostname and the basic
> configuration is adequate.  If sendmail isn't running, you should at least
> have it installed, along with a basic configuration file.  Check for
> /etc/sendmail.cf and /usr/lib/sendmail.  If they exist, try starting
> sendmail with the command
> 
> /usr/lib/sendmail -bd -q15m
> 
> entered as root.  If the process shows up in the 'ps' output after you enter
> that command, try sending mail.  It should work, but if it doesn't you'll
> probably need to modify the sendmail configuration.  There are a number of
> resources on the web, Usenet, e-mail lists and even books that could be
> useful - http://www.sendmail.org/ is one starting point.  But if it comes to
> it, and you can wait till the next MLUG meeting, I'm sure there'll be at
> least one person willing to sit down with you before or after and help you
> get it working.

Ok, like I said, sendmail is running.  For some odd reason I can send
email, but I can't recieve email.  I have a DNS name and a static IP
address, so as far as I know, it should work....
 
> > 2) Enable use of the webserver for any and all users of the machine.  I.E.
> > if I added 5 users, how would I set up a mail account for each, home
> > directory information, and web accounts for each?  Do I need a link in the
> > /home/httpd/html directory where it seems such files are stored?  I.E.
> > link a directory there to one in my home directory, such as /root/www
> 
> I'm assuming you have the shadow-utils package installed (if you're using
> Red Hat 4.2 or 5.x, you do), in which case you can use the command
> 
> /usr/sbin/useradd username
> 
> to add a user with the login name 'username' to the system.  This creates
> the home directory for that user (should be /home/username) and enables the
> use of e-mail if you have sendmail running as described above. 
> Assuming you're using Apache as your web server, then
> /home/username/public_html should map to
> http://yourhostname.yourdomain.edu/~username/ and that URL should be
> accessible as long as the permissions on the user's home directory and
> public_html directory are right (chmod 711 ~ ~/public_html).
...
>       Bryan Venable | Technical Coordinator | Virtual Online University
>                 http://www.spif.com/ | http://www.vousi.com/
> 

I had this working, but when I tried to change in the
/etc/httpd/conf/srm.conf file the UserDir (or whatever it is) to www, it
didn't work.  It only worked when I had UserDir set to public_html.  The
permissions were identical on both directories, and also on the index.html
file I had in the directories.  *shrug*  So, currently am just using
public_html as UserDir (of course, I didn't try the public_html first.  I
just tried the www, and after switching it back found that public_html did
work for some odd reason...)

BTW, I am using RedHat 4.0 or 5.0.  The logon says 5.0, but the
distribution, I am fairly sure, is 4.0.  Also, I have kernal version
2.1.24 for PowerPC's (Macintosh).

Thanks for the help!!!
Jason

***********************************************************************
*Jason McIntosh   http://www.missouri.edu/~c717990                    *
*      University of Missouri, Columbia                               *
*Vice President - UMACM(Association for Computing Machinery)          *
*                                                                     *
*     "Love endures all things"                                       *
*     May God guide your hand in all that you do.                     *
***********************************************************************

Reporting-MTA: dns; sp2n17.missouri.edu

Received-From-MTA: DNS; sp2n23.missouri.edu

Arrival-Date: Thu, 7 Jan 1999 11:42:33 -0600



Final-Recipient: RFC822; EMAIL:PROTECTED

Action: failed

Status: 5.1.1

Remote-MTA: DNS; thinker.missouri.edu

Diagnostic-Code: SMTP; 550 <EMAIL:PROTECTED>... we do not relay EMAIL:PROTECTED

Last-Attempt-Date: Thu, 7 Jan 1999 11:42:42 -0600

The original message was received at Thu, 7 Jan 1999 11:42:33 -0600
from sp2n23.missouri.edu [128.206.2.84]

   ----- The following addresses had permanent fatal errors -----
<EMAIL:PROTECTED>

   ----- Transcript of session follows -----
... while talking to thinker.missouri.edu.:
>>> RCPT To:<EMAIL:PROTECTED>
<<< 550 <EMAIL:PROTECTED>... we do not relay EMAIL:PROTECTED
550 <EMAIL:PROTECTED>... User unknown