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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

catchall alias needed but also am using vurtualuser

Status
Not open for further replies.

csross

MIS
Dec 21, 2003
92
US
I use sendmail and have a virtualuser table set up and don't want to put a catchall alias for my domain in that file because all my users are not referenced in that file. Since virtualuser is checked before alias, the catchall would cover everyone in the domain.

Has anyone set up a catchall alias for their domain so all mail doesn't get sent to the catchall.

Thanks
 
I think what may work here is the LUSER_RELAY mc macro.
define(`LUSER_RELAY', `relay_host')dnl
Any username not found in the /etc/passwd file will be forwarded to relay_host and I believe you can sub the following for relay_host ---> local:me@mydomain.com. This check is run after aliases but before any ./forward files.
So add the following to your sendmail.mc
define(`LUSER_RELAY', `local:me@mydomain.com')dnl
Recompile sendmail with the m4 preprocessor yada yada yada !!

Cogito Ergo Sum - Non Compos Mentis
 
Thanks. I have multiple virtual domains and may want a different catchall for each one. Can I have multiple instances of this, one for each domain? Probabably not.

 
I am not sure if you can do this .... I'll check when I get time but my gut feeling is the same as yours, probably not.

Cogito Ergo Sum - Non Compos Mentis
 
csross, I think you can define LUSER_RELAY for multiple domains see in a single mc file.
define(`LUSER_RELAY', `local:me@mydomain.com')dnl
define(`LUSER_RELAY', `local:me1@mydomain1.com')dnl
define(`LUSER_RELAY', `local:me2@mydomain2.com')dnl





Cogito Ergo Sum - Non Compos Mentis
 
Follow Up:
All domains must be local.

Cogito Ergo Sum - Non Compos Mentis
 

> All domains must be local.

huh?!

/etc/mail/virtusertable

@domain1.com user1
@domain2.com user2
@domain3.net some-email@hotmail.com

Works fine for me, note the forward pointing to hotmail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top