Web Hosting Talk







View Full Version : How to create a "catch all" email account


thewitt
12-07-2001, 09:22 AM
Can anyone tell me the mechanics used by CPANEL to create a default email account?

This is the account where email goes if it's not addressed to a valid account on the system, or it's not already forwarded to another account.

The behavior appears to be:

Mail is delivered to an actual account on the system unless this account is forwarded, or there is no such account. If there is no such account, the mail is delivered to the "default account", which can also be forwarded. If there is no default account, the mail bounces.

Is this really how it works?

Is this done with sendmail rewrite rules or what?

Thanks,

-t

jahsh
12-12-2001, 05:17 PM
for cobalt raqs just add the following to the email alias section. open up the control panel. click blue envelope next to user, then add the following to the email alias:
@www.domainname.com

thewitt
12-12-2001, 06:14 PM
Originally posted by jahsh
for cobalt raqs just add the following to the email alias section. open up the control panel. click blue envelope next to user, then add the following to the email alias:
@www.domainname.com
Thank you, but I am not interested in the control panel method for any server, but the technical method for editing of server config files.

It turns out that for sendmail it's the LUSER_RELAY directive. CPANEL hosts don't use sendmail however, so it's different for them (Exim I think - and a config file change for them).

-t

elsmore1
12-12-2001, 08:02 PM
I would suspect that most hosts using sendmail use the "virtual user table" and not LUSER_RELAY to create catch-all accounts. Don't know for sure as I have never taken a poll though.


Originally posted by thewitt

Thank you, but I am not interested in the control panel method for any server, but the technical method for editing of server config files.

It turns out that for sendmail it's the LUSER_RELAY directive. CPANEL hosts don't use sendmail however, so it's different for them (Exim I think - and a config file change for them).

-t

thewitt
12-12-2001, 08:14 PM
Originally posted by elsmore1
I would suspect that most hosts using sendmail use the "virtual user table" and not LUSER_RELAY to create catch-all accounts. Don't know for sure as I have never taken a poll though.

The problem with this is that every real account on the server needs to have an entry in virtusertable as well. This is not practical if you are running a mailing list like majordomo, which creates 4-8 "real" aliases that need to accept mail for the list to work correctly.

That's why I'm asking - to find out from people who actually do this, exactly what they do.

-t

elsmore1
12-12-2001, 08:33 PM
This link may help you configure MajorDomo with sendmail.

http://o2.towery.com/~ernestm/admin/majordomo/majorvirt.html

I would still argue for the virtusertable. And yes, I have thousands of entires in virtusertable databases.