Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup any user account?

Status
Not open for further replies.

needahandlebad

Technical User
Joined
May 20, 2004
Messages
6
Location
GB
Hi. I would like sendmail to catch mail that are for any user. ie: sales@myserver.com or group@myserver.com. At the moment it is only accepting mail for myusername@myserver.com. Any help would be appreciated guys. TIA
 
Hi, I'm not proficient in sendmail, so I'm just guessing...

You could try an entry in the virtualusertable (mine is in /etc/mail), something like:

@myserver.com myusername@myserver.com

According to Webmin, "Address mappings are similar to aliases, but are more suited to a system that handles multiple email domains."

HTH, Max Hugen
Sydney Australia
 
You need to define a LUSER_RELAY in the sendmail.mc, if you're not sure of the syntax I'll post it for you. This will catch mail for any "unknown" account on your mail system. If you want to re-direct mail from known accounts use your aliases file:
sales: catchall
group: catchall
Run sendmail -bi to hash to db


Cogito Ergo Sum - Non Compos Mentis
 
hey rhino. if u could post the code, would be very grateful. TIA
 
Here is the syntax:

define(`LUSER_RELAY', `local:someone@yourserver.com')dnl

Run the sendmail.mc thru the m4 preprocessor to generate a new sendmail.cf and then restart sendmail.

Cogito Ergo Sum - Non Compos Mentis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top