|
|
|
01-02-2008, 11:29 AM
|
Postid: 163965
|
|
Developer
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,121
|
[FQuest Announce] New Tools for Modifying Email Aliases
When: Available Now!
What: Command Line Tool for Email Alias Modification
Who: All Site Owners Comfortable with Command Line
There have been a number of requests over time for the ability to by-pass the CNC when working with email forwarding aliases. For example:
http://www.aota.net/forums/showthread.php?t=23350
http://www.aota.net/forums/showthread.php?t=23479
We are therefore very pleased to announce the availability of a set of tools to enable Site Owners to manipulate forwarding aliases from the shell command line.
It is now possible to create new forwarding aliases, change or remove the forwarding address(es), and to remove the alias completely.
To use these new tools, establish a Telnet or SSH session and then at the command line issue the commands as follows:
1. vaddalias ACCOUNT [ADDRESS ...]
vaddalias creates a new alias named "ACCOUNT" that forwards to the named ADDRESSes. If no addresses are specified on the command line, a black hole address is created.
2. vchalias ACCOUNT [ADDRESS ...]
vchalias modifies an existing alias named "ACCOUNT" similar to vaddalias above.
3. vdelalias ACCOUNT
vdelalias deletes the named forwarding alias named "ACCOUNT".
In all cases, if the forwarding alias manipulation succeeds, the commands return a zero exit code; otherwise they output a brief error and return a non-zero exit code.
These programs are already installed and available to all site owners. No additional setup is required to start using the programs. You may begin using them immediately!
|
|
|
01-02-2008, 12:18 PM
|
Postid: 163970
|
|
Site Owner
Forum Notability:
165 pts: Ambassador of Goodwill
[ Post Feedback]
Join Date: Mar 1999
Location: northeastern Illinois
Posts: 985
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Now THAT'S a Christmas present--thanks!
Quote:
Originally Posted by Bruce
1. vaddalias ACCOUNT [ADDRESS ...]
vaddalias creates a new alias named "ACCOUNT" that forwards to the named ADDRESSes. If no addresses are specified on the command line, a black hole address is created.
|
Are addresses on separate lines or separated by commas/colons/semicolons? I have ::hundreds::.
Quote:
Originally Posted by Bruce
2. vchalias ACCOUNT [ADDRESS ...]
vchalias modifies an existing alias named "ACCOUNT" similar to vaddalias above.
|
I assume you have to relist the entire list?
Not to be greedy, but being able to point to a simple alias.txt file of aliases and then just mod that file would be handy. But I'm thankful for this, regardless! 
__________________
Frank
:: There is more to life than increasing its speed. (Gandhi) ::
:: Be careful of your thoughts, they may become words at any moment. (Iara Gassen) ::
:: "Perfectionism is self abuse of the highest order." (Anne Wilson Schaef) ::
:: "Life is change; how it differs from the rocks." (Jefferson Airplane) ::
:: "Everyone thinks of changing the world, but no one thinks of changing himself." (Leo Tolstoy, 1828-1910) ::
|
|
|
01-02-2008, 12:28 PM
|
Postid: 163971
|
|
Developer
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,121
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Quote:
Originally Posted by frankc
Are addresses on separate lines or separated by commas/colons/semicolons?
|
All the addresses are specified on the command line as separate parameters. Quoting the email addresses is encouraged to prevent the shell from interpreting control characters.
Quote:
|
I assume you have to relist the entire list?
|
Yes. The vchalias command replaces the current forwarding address list with the specified list.
Quote:
|
Not to be greedy, but being able to point to a simple alias.txt file of aliases and then just mod that file would be handy.
|
The forwarding lists are set up and used on the POP toasters. The community servers on which the proposed aliases list files reside are not contacted when forwarding decisions are made. As such maintaining the list on the community server would not be possible.
|
|
|
01-02-2008, 12:36 PM
|
Postid: 163972
|
|
Have you hugged a tiger today?
Forum Notability:
1238 pts: A True Crowd-pleaser!
[ Post Feedback]
Join Date: Mar 2000
Location: Third Sol Planet Posts: Far too many. Oh ok -
Posts: 2,647
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Thanks, a useful feature.
Quote:
|
The forwarding lists are set up and used on the POP toasters. The community servers on which the proposed aliases list files reside are not contacted when forwarding decisions are made. As such maintaining the list on the community server would not be possible.
|
Having the input parsed from a text file may be useful.
Frank - an interim option would be to store the whole command in a shell (text) file, and/or use a script to process the text file of aliases and call the command.
-- now, how about cmd-line control of POP mailboxes? yeah, yeah, I won't hold my breath... --
|
|
|
01-02-2008, 01:07 PM
|
Postid: 163973
|
|
Site Owner
Forum Notability:
165 pts: Ambassador of Goodwill
[ Post Feedback]
Join Date: Mar 1999
Location: northeastern Illinois
Posts: 985
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Quote:
Originally Posted by Bruce
All the addresses are specified on the command line as separate parameters. Quoting the email addresses is encouraged to prevent the shell from interpreting control characters.
|
So the statement(s) would be
vaddalias new_alias1 valid_account_or_new_alias
vaddalias new_alias2 valid_account_or_new_alias
etc
and if I have hundreds of existing aliases, each is a separate command line statement?
|
|
|
01-02-2008, 01:10 PM
|
Postid: 163974
|
|
Site Owner
Forum Notability:
165 pts: Ambassador of Goodwill
[ Post Feedback]
Join Date: Mar 1999
Location: northeastern Illinois
Posts: 985
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Quote:
Originally Posted by hobbes
Frank - an interim option would be to store the whole command in a shell (text) file, and/or use a script to process the text file of aliases and call the command.
|
That sounds really handy, but it's beyond my skills at the mo'. 
|
|
|
01-02-2008, 01:15 PM
|
Postid: 163975
|
|
Have you hugged a tiger today?
Forum Notability:
1238 pts: A True Crowd-pleaser!
[ Post Feedback]
Join Date: Mar 2000
Location: Third Sol Planet Posts: Far too many. Oh ok -
Posts: 2,647
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Here is a simple way of doing it:
Create a plain text file with the commands you want (per your 2nd post up). Upload the file to the server (outside the web directory). Login to your account using ssh, and "execute" the file with
Replace FILE_NAME with the file name. If you get vaddalias not found, you may need to use the full path: /usr/bin/vaddalias .
|
|
|
01-02-2008, 01:17 PM
|
Postid: 163976
|
|
Developer
Join Date: Apr 2001
Location: Saskatoon, SK, Canada
Posts: 1,121
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Quote:
Originally Posted by frankc
vaddalias new_alias1 valid_account_or_new_alias
vaddalias new_alias2 valid_account_or_new_alias
|
I think so, though I am unclear what you mean by "new_alias" above. Some examples would be:
Code:
vaddalias new_alias1 existing_mailbox
vaddalias new_alias2 existing_mailbox mailbox@another.domain.com
Quote:
|
and if I have hundreds of existing aliases, each is a separate command line statement?
|
The new tools are not dependent on how many aliases already exist. That is, if you want to create or modify one forwarding alias, you need to issue a single command. You would need to issue one command for each one you want to create or modify, though.
|
|
|
01-02-2008, 01:40 PM
|
Postid: 163977
|
|
Site Owner
Forum Notability:
165 pts: Ambassador of Goodwill
[ Post Feedback]
Join Date: Mar 1999
Location: northeastern Illinois
Posts: 985
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Back in the days of yore when I set up my first account on FQ, the catchall was touted as a neat feature because you could create email aliases on the fly that'd all resolve to the catchall. "Things changed"  and now I've maybe 500+ of the buggers, popsci.com@mydomain, cnet.com@mydomain, etc.
Quote:
Originally Posted by Bruce
I think so, though I am unclear what you mean by "new_alias" above. Some examples would be:[code]vaddalias new_alias1 existing_mailbox
....You would need to issue one command for each one you want to create or modify, though.
|
 I just wanted to be sure I know how to do the one statement literally hundreds of times but with a different alias I'd created for each line. My goal was to find a quick way to do that.
Thanks, hobbes--that'll help a lot! Cut and paste is our friend, eh? 
|
|
|
01-04-2008, 01:08 PM
|
Postid: 164027
|
|
Site Owner
Join Date: Dec 2001
Location: Downtown LA
Posts: 1,305
|
Re: [FQuest Announce] New Tools for Modifying Email Aliases
Cool beans!
Some questions:
Is there a command to list all aliases for an account?
And/or a command to list the aliases and their destination addresses?
Same for alias stacks...?
Is there an AOTA page where I can find the other mail account-related commands? Couldn't find it in the Knowledge Base.
I don't provide CNC access to my clients, so it'd be great to be able to create an interface for them to futz with aliases themselves, along with POPpass.
Thanks!
__________________
...Bob
Bob West
Thought Nozzle™ Concepts, design and copy for film, television, Web, identity and more.
teeblurbs!™ Inspiring and funny political, social and just plain goofy stuff on tees, mugs, posters and more.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 02:18 PM.
|
| |
|
|
|