Curious Too

Well-Known Member
Aug 31, 2001
434
2
318
cPanel Access Level
Root Administrator
Mail being sent to legitimate usernames is being blackholed or bounced if the user has set their default (catchall) email address to :blackhole: or :fail: -- Has anyone else experienced this? The only way to get around it is to create an email account in CPanel for the primary username. Is this how this feature is supposed to work?
 

Curious Too

Well-Known Member
Aug 31, 2001
434
2
318
cPanel Access Level
Root Administrator
This is what is happening -- say an account's primary username is &janedoe& --

instead of having the default address set to:

*: janedoe it's set to *: :fail:

What's happening is ALL email sent to the account is failing, including email sent to [email protected] -- my understanding is that email sent to [email protected] should fail, but email sent to [email protected] should be delivered. Is my assumption correct?
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
Can you post the entire contents of the valias file here? Well, in ambiguously secretive anonymity, of course...

It might be of some help to see the entire thing.

:p
 

Curious Too

Well-Known Member
Aug 31, 2001
434
2
318
cPanel Access Level
Root Administrator
[quote:e31340ad78][i:e31340ad78]Originally posted by feanor[/i:e31340ad78]

Can you post the entire contents of the valias file here? Well, in ambiguously secretive anonymity, of course...

It might be of some help to see the entire thing.

:p [/quote:e31340ad78]

here's the entire contents of the valias file:

*: :blackhole:

Now here's the routing of an email sent to the domain -- the username for the domain is &cenlinks&

2002-05-12 01:15:29 176lhh-0004NJ-00 &= [email protected] H=h000.c003.snv.cp.net (c003.snv.cp.net) [209.228.32.214] P=smtp S=894 [email protected]

2002-05-12 01:15:29 176lhh-0004NJ-00 =& :blackhole: [email protected] D=virtual_aliases

2002-05-12 01:15:29 176lhh-0004NJ-00 Completed

2002-05-12 01:15:29 176lhh-0004NK-00 &= [email protected] H=h000.c003.snv.cp.net (c003.snv.cp.net)
[209.228.32.214] P=smtp S=895 [email protected]

2002-05-12 01:15:29 176lhh-0004NK-00 =& :blackhole: [email protected] D=virtual_aliases

2002-05-12 01:15:29 176lhh-0004NK-00 Completed

Shouldn't the mail sent to [email protected] have been delivered ok?
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
Ah, ok, I misunderstood.

It happens exactly as you describe.

Actually, if you create [email protected], then janedoe and [email protected] are two different accounts, each with its own inbox file, login and password. janedoe is really [email protected] It's a user, like root, with a username, a password and a homedir (where mail goes) as defined in /etc/passwd.

I think that the best to understand it is testing Exim like this:

/usr/sbin/exim -bt -d2 [email protected]

with different variations (main account, existing account, non-existing account, and with different catch-all accounts). For greater detail use -d9 instead of -d2. You'll see the steps Exim follows to determine where the inbox of each account is.

From the above you'll see that another possibility would be to define an alias like this:

[email protected]: [email protected]

(only &[email protected]: janedoe& won't work from within Cpanel, but it will if you add it yourself to /etc/valiases/herdomain.com).
 

Curious Too

Well-Known Member
Aug 31, 2001
434
2
318
cPanel Access Level
Root Administrator
So users who want to turn off the &catchall& feature of their account must first create an email account for the primary username?

On my boxes that use sendmail I have this in the virtusertable for people who want the catchall feature disabled:

@domain.com /dev/null

The mail still gets delivered to the primary username but all other mail gets bounced. I thought Exim would work this way also, but apparently not.
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
[quote:75c4679f4c][i:75c4679f4c]Originally posted by Curious Too[/i:75c4679f4c]
So users who want to turn off the &catchall& feature of their account must first create an email account for the primary username?[/quote:75c4679f4c]

Either that or create an alias as I explained. Probably there are other ways but I don't know.