[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Mail for httpd
- Subject: RE: [cobalt-users] Mail for httpd
- From: spamcatcher <spamcatcher@xxxxxxxxx>
- Date: Mon Jan 3 16:27:20 2000
If you just want to get the email, you can just rename the file to an
existing one (rename to another account, in other words) and use your
email program to get the email under the other account.
Example:
mv someuser temp
<note the owner and group of the file>
mv httpd someuser
chown someuser <whatever owner (someuser in this case) the original
someuser file is>
chgrp someuser <whatever group the original someuser file is>
<get the email using your email program>
<change everything back the to way they were>
Quick and dirty.
-kar-
>At 01:35 PM 12/25/99 Dan wrote:
>
>>Thanks. I have moved and deleted those files, but I was hoping to figure out
>>how they got there. I guess some forms that were owned by httpd sent mail
>>with the reply address of httpd@xxxxxxxxxxxxx so it ended up there.
>>I hoped there was a way to POP3 httpd but no password I tried for it worked.
>
> From user admin, you can do the following:
> $ su
> <type in password>
> # passwd httpd
> <then type new password for user httpd>
> <type it again>.
> #
>
>Now user httpd will have a password and you can use your email client to
>retrieve email via pop3 by setting up an account for it.
>
>Or, instead of the above, you can set up an alias in your /etc/aliases file:
>
> httpd: admin
>
>and any email to httpd will go to the same place you read your admin email.
>
>Since I'm not sure if the RaQ's web-based administration program will
>rewrite the aliases file, eliminating my changes, I choose to make my own
>additions in a separate aliases file.
>
>You can use a file something like /etc/aliases.local for this. If you do,
>you'll have to add a line to /etc/sendmail.cf so sendmail will understand
>the addtional file.
>
>Look for the line that says:
>
> O AliasFile=/etc/aliases.majordomo
>
>and add a line right under it that says
>
> O AliasFile=/etc/aliases.local
>
>Then you'll have to stop and restart sendmail. Although there's probably
>more than one way to do this, I do it as root:
>
> # ps ax | grep sendmail
>
>and then look for the line that says something about sendmail accepting
>connections on line 25.
>
>Look at the pid (the first number on this line); it might be something like
>3648 (it can be any number).
>
>Then, again as root:
>
> # kill -HUP <pid>
>
>where <pid> is that number you found when the you did the first command.
>
>This will restart the copy of sendmail that's listening for new messages,
>and in so doing read in the changed sendmail.cf file. It will not hurt
>sendmail or your system in any way, nor will it keep you from getting or
>sending any email.
>
>There may very well be a script on the RaQ that does this; I haven't
>looked; I've been using generic unix commands for a long time <smile>.
>
>Don't forget that any time you make changes to any "aliases" file, you need
>to run (also as root):
>
> # newaliases
>
>To tell sendmail to convert the aliases files into databases and to reread
>them into sendmail's memory.
>
>I hope this helped <smile>.
>
>Jeff
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>