Find the answer to your Linux question:
Results 1 to 3 of 3
Hi there. I have my own mail server running on a Debian Machine. I currently have about 200 eMail aliases (one for every website I've ever been asked to provide ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    7

    updating /etc/aliases remotely?


    Hi there.

    I have my own mail server running on a Debian Machine.

    I currently have about 200 eMail aliases (one for every website I've ever been asked to provide an eMail address for - and surprisingly, I've only caught one of them as having given my address away). I'm continually adding more...

    I'm currently at work and found something I'd like to subscribe to. Catch is, they send out the confirmation eMail which I need to respond to before it all happens. I can't get into my machine from anywhere other than the console (yeah, I'm a little nervous and have just about all ports closed off) so can't do this until I get home but would like to complete the sign up now. This is not the first time I've had this small dilema.

    After all that, my question is, is there a way I can update my /etc/aliases (and of course running newaliases too) file without logging into the machine? My imagination tells me that I could eMail a special account within the server and it would scan the message, pull out the new alias(es), add it(them) to /etc/aliases, run newaliases, eMail me back to tell me it's done.

    Am I dreaming? If not, my question then switches to asking for help on writing this script.

    So, any thoughts?
    Of course, ignore me if I'm way out of the realms of reality...

    Stay JOLLY!
    H

  2. #2
    Linux Enthusiast Opnosforatou's Avatar
    Join Date
    Dec 2003
    Location
    Vleuten, The Netherlands
    Posts
    552
    No, your not dreaming, that's called the power of scripting.

    You'll need some knowlegde of Perl.

    A scheduled script that checks the /var/mail dir for a specific mail account,
    read the info, edit's the aliases file, removes the email and triggers your mailserver to reload it's aliases.

    Start reading here:

    http://www.freeos.com/guides/lsst/

    http://mercury.chem.pitt.edu/~sasha/...ticle216.shtml

    http://rute.2038bug.com/node10.html.gz

    http://www.magnux.org/doc/howto/en/A...OWTO/index.php

    http://linux.ittoolbox.com/nav/t.asp?t=428&p=428&h1=428


    Take you time and start coding.
    Don't expect that we'll code it for you, we want to be sure that you are serious.
    We've had to many requests for help with coding by people who had a school assignment and didn't want to code and thought we fixed their assignments for them.

    Hope you understand and good luck.


    ---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
    Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    7

    Thanks!

    I wish I had these resources when I was doing my school assignments...

    It is a lot of reading!

    But, it looks like the start I need.

    I guess I'll be back if (when?) I get stuck...

    I appreciate your thoughts!
    Stay JOLLY!
    H

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •