Results 1 to 3 of 3
Thread: updating /etc/aliases remotely?
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2004
updating /etc/aliases remotely?
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...
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:
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.
- Join Date
- Dec 2004
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!