|
||||
|
Create a Forwarder for name@domain.com to point to name@hostname.server.com
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
That is just freekin awsome!
Thanks Chirpy. Your a definite help. I do have a couple questions.... I have been searching thie board for that answer for the past hour. Was that little bit of info mentioned in other threads that you know of or is it hardly mentioned at all. I would feel quite helpless if it is in other threads and I just could not manage to find it. Also, After running your small script... what would be the easiest way to add the required forwarder for the Default Account email address to work on all domains? Or do I need to go into each cPanel and manually add them? And finally, is this a cPanel or Exim bug? If so, any word or information about it being fixed/patched? I do know it has been an issue for a while as I remember running into this issue sometime back but only used the workaround mentioned in my previous post. Thanks again for your assistance! |
|
||||
|
1. It's only something that has come to light recently and was posted by rs-freddo hidden in some other threads, so it's easily missed.
2. You will need to add it manually without more scripting. You could also do it directly in the /etc/valiases/* 3. It's a feature Basically, it's an artefact of the way that cPanel has created virtual POP3 accounts together with the exim delivery system works.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
Funnily enough - no
Though I wouldn't be surprised if he were back under a different guise (in fact I know he is).
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
It's a neat trick, huh? Posting the answer before you ask the question
![]() Forum bug I think. I removed the pre-post and reposted after your post - I think.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
Arrrgh! It just happened again
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
This is just silly now.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
Quote:
Out of curiosity, why do so many people create accounts with the same name used as the primary email address? On all of my accounts, the account name is never used as an email address. This adds a bit of "security through obscurity" as well as avoid the problems in having to work around :fail:
|
|
|||
|
Quote:
Roy, I modified the regex so that the perl script does not change any piped redirects (mailman seems to use such), and also script will leave default redirects to mail adresses but will still remove redirects to the unix username. This is to not mess with users who actually want to catch all mail of a domain and redirect it an existing mailbox. Code:
#!/usr/bin/perl
print "Converting all domain Default Accounts to :fail: ...\n\n";
opendir (DIR, "/etc/valiases/") or die;
while (my $file = readdir (DIR)) {
if ($file =~ /^\./) {next}
open (IN, "</etc/valiases/$file") or die;
my @data = <IN>;
close (IN);
open (OUT, ">/etc/valiases/$file") or die;
foreach my $line (@data)
{
if ($line =~ /^((\*\:\s+[a-zA-Z0-9]+\s*)|(\*\:\s*))$/)
{
print OUT "*: :fail:\n";
print "Converted: [$file] $line";
}
else
{
print OUT $line;
if ($line =~ !/^\*\:\s+\:fail\:/)
{
print "Kept: [$file] $line";
}
}
}
close (OUT);
}
print "\n\nDone!\n";
Last edited by panayot; 10-15-2006 at 06:29 AM. |
|
|||
|
script dies at line 9
I am running Chirpy's script and I am getting output stating it dies at line 9.
Line 9 is: open (OUT, ">/etc/valiases/$file") or die; It appears the first few domains might be getting changed to fail. I also tried the modified version of the script that is at the end of this thread and receive the same error message. Appreciate any thoughts. Chris |
![]() |
| Thread Tools | |
| Display Modes | |
|
|