#16 (permalink)  
Old 06-14-2005, 11:10 AM
chican0's Avatar
Registered User
 
Join Date: Mar 2003
Location: Los Angeles
Posts: 58
chican0
I would love to use this script but I have been finding that accounts with multiple email accounts (pop3 accounts), start having problems.

The primary problem is that the Main Account, the primary email address which is automaticaly created when the account is created (account username) will no longer accept emails. The system instead returns the following error:

Quote:
Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 10): 550 "The recipient cannot be verified. no such address here"
The only work around I have found is to create a second pop3 mail account and add a forwarder to route mails from the Main Account(username) to the new pop3 account.

This can be unacceptable for a few customers as some of their preferred email address is that of the Main Account which is automatically created by the system during initial account setup.

Does anyone know of a way to fix this problem? To set the Default address to :fail: and still receive emails to the Main email Account?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 06-14-2005, 11:12 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 06-14-2005, 11:29 AM
chican0's Avatar
Registered User
 
Join Date: Mar 2003
Location: Los Angeles
Posts: 58
chican0
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 06-14-2005, 04:03 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 06-23-2005, 07:17 AM
Registered User
 
Join Date: Aug 2004
Posts: 10
RegisterHosting is on a distinguished road
Sometimes need convert :blackhole: to :fail:
Use this command in ssh

replace :blackhole: :fail: -- /etc/valiases/*
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #21 (permalink)  
Old 07-21-2005, 04:33 PM
jester.ro's Avatar
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Feb 2004
Location: Bucharest, Romania
Posts: 304
jester.ro is an unknown quantity at this point
hey, chirpy, have you been contacted by mr wonderfull, about the flaws in you script?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 07-21-2005, 04:33 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 07-21-2005, 04:36 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 07-21-2005, 04:36 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 07-21-2005, 04:36 PM
jester.ro's Avatar
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Feb 2004
Location: Bucharest, Romania
Posts: 304
jester.ro is an unknown quantity at this point
ok, how did you reply BEFORE i posted? )


hmmm, funny

a moment ago your post was above my post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 07-21-2005, 04:37 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 07-21-2005, 04:41 PM
jester.ro's Avatar
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Feb 2004
Location: Bucharest, Romania
Posts: 304
jester.ro is an unknown quantity at this point
i'll stop posting, i don;t wanna break the forum )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 11-10-2005, 11:53 AM
Registered User
 
Join Date: Jan 2004
Posts: 672
Lyttek is on a distinguished road
Quote:
Originally Posted by chican0
The primary problem is that the Main Account, the primary email address which is automaticaly created when the account is created (account username) will no longer accept emails.

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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 10-15-2006, 06:25 AM
Registered User
 
Join Date: Nov 2004
Posts: 112
panayot is on a distinguished road
Quote:
Originally Posted by Roy@ENHOST
I think you have to add extra detection to the script.

From what I know, this script will also switch the pipings that are required by helpdesk softwares to :fail:
You have to use pregmatch regex to check that the destination is not a php,cgi or a binary.
Hope that helps.
Chirpy, thanks for the script!

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 02-13-2007, 11:25 AM
Registered User
 
Join Date: Nov 2006
Posts: 46
clbrack1 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc