From: Dave V. A. <da...@va...> - 2004-09-17 15:24:12
|
Yep, another person w/like issue here. Simply have forgotten all this in sendmail over the years. I tried to follow the below example, and add a new feature to the Sendmail M4 Configuration, but it did not work. Can someone who as done this, please put in the exact line added from: Sendmail M4 Configuration -> Add new entyr of type -> select Feature Next add parameter: `genericstable', `hash -o /etc/mail/genericstable.db' When saved it looked like this: FEATURE(`domaintable',``genericstable', `hash -o /etc/mail/genericstable.db'') And it did not work. Any help appreciated. Thanks, Dave On Thu, 2004-09-16 at 16:23, last first wrote: > i finally got around to altering the M4 file to add this line to try an= d get=20 > the generics table to work > FEATURE(`genericstable', `hash -o /etc/mail/genericstable.db')dnl >=20 > now Virtualmin adds a new record to the > https://IP-Number:10000/sendmail/list_generics.cgi file >=20 > and e-mails that are sent from squirrelmail appear to come From:=20 > use...@cu...d which is just what i wanted >=20 > however, there is this note at the bottom of the Webmin genericstable p= age > >>>you must have an entry in the outgoing domains table for each domain= =20 > >>>which there are addresses you want outgoing mapping done for<<< >=20 > but Virtualmin doesn't add any entries to=20 > https://IP-Number:10000/sendmail/list_cgs.cgi and i'm not sure what for= mat=20 > any entries should be in >=20 > do i need to manually edit this file or is it something Virtuamin will = do if=20 > its needed later >=20 > Regards >=20 > Martyn----- Original Message ----- > From: "last first" <xx_...@ms...> > To: <web...@li...> > Sent: Tuesday, September 07, 2004 10:29 PM > Subject: [webmin-devel] Re: [webmin-l] Generics Table / Wild Card? >=20 >=20 > >Hi - i have a similar problem to Simon's with outgoing e-Mails > > > >i have lots of domains set-up using Virtualmin v2.10 on a RHEL ES3 ser= ver > > > >with these Virtualmin settings: > >Include domain name in usernames =3D always > >Format for usernames that include domain =3D domain.username > >Also update outgoing addresses for mailboxes =3D NO > > > > > >this appears to be fine for incoming e-mails where > >use...@do...d all arrive in the domain.tld.user.name mailbox > >there is also no problem with aliases being forwarded into the correct= =20 > >mailbox > > > >however if i try to send an e-mail from within SendMail or SquirrelMai= l > >the outgoing e-mail appears to be sent from > >dom...@ns...d instead of use...@do...d > > > >but if i log into each users SquirrelMail account and change their Opt= ions=20 > >- Personal Information > >to use their correct use...@do...d e-Mail address it works OK > > > >the Usermin Vacation module also sets up the outgoing replies from > >dom...@ns...d > >(plus i have to manually edit the .forward file to add -a aliasname to= get=20 > >it to work) > > > >i am using SendMail with Virtualmin and i also have MailScanner(.info)= =20 > >set-up & working correctly > > > > > >So i thought maybe i'd try to change Virtualmin so that > >Also update outgoing addresses for mailboxes =3D YES > > > >but i then got an error message when retesting the Virtualmin settings= =20 > >which said that i need to set-up=20 > >https://IP-Number:10000/sendmail/list_generics.cgi > >which also says "Your sendmail configuration does not have the outgoin= g=20 > >address mapping (generics) feature enabled. Click here to setup sendma= il=20 > >features" > >and then points me to the Sendmail M4 Configuration page > >https://IP-Number:10000/sendmail/list_features.cgi > > > >and now i hit a brick wall with my lack of Linux experience (Webmin &=20 > >Virtualmin normally make life so easy) > >i don't know what to edit in there to make the genericstable file work > > > >i was hoping somebody could tell me the required settings to change / = add=20 > >to the M4 set-up > > > >looking at http://www.sendmail.org/m4/features.html#genericstable > >i'd guess that i should add a line saying > >FEATURE(`genericstable',`hash -o /etc/mail/genericstable')dnl > > > >but where i put it and what i do if it gets screwed up are a mystery t= o me > > > >any help gratefully appreciated > > > >Regards > > > >Martyn > >>>> > >I am sure someone has an answer or solution, but I have been unable to > >find it online. As I host multiple domains, I have multiple emails > >addresses, and I use Virtualmin to add multiple domains. What my > >problem is that all email addresses from a particular domain are > >'user.domain' and other domains for example are 'user.domain2.' > >However, when the user goes into Usermin and click on compose mail, > >the from field has 'user.domain@computername' or ip address. I am > >seeing up the generics table and that solves the problem, but I was > >wondering if you could use wild cards to that instead of having a > >different line for every user email, I could do something like this. > > > >*.domain *@domain.com > >*.domain2 *@domain2.com > >So that every user with a user id that ends in .domain has the email > >address changed to the domain name instead of the computer address. > > > >Any suggestions on possible wild cards or other ways to solve this > >problem would greatly be appreciated. > >Best regards, > > > > > >Virtualmin has an option on the Module Config page to maintain the > >genericstable file for users, and you can configure Usermin's Read Mai= l > >module to get a mapping of usernames to addresses from that same > >genericstable. That is probably the easiest solution .. > > > >- Jamie > ><<< > > > >_________________________________________________________________ > >It's fast, it's easy and it's free. Get MSN Messenger today!=20 > >http://www.msn.co.uk/messenger > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by BEA Weblogic Workshop > >FREE Java Enterprise J2EE developer tools! > >Get your free copy of BEA WebLogic Workshop 8.1 today. > >http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >- > >Forwarded by the Webmin development list at web...@we... > >To remove yourself from this list, go to > >http://lists.sourceforge.net/lists/listinfo/webadmin-devel >=20 > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar =96 get it now!=20 > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel Dave Van Abel http://vanabel.com http://perlsources.com 303-249-3855 415-462-1573 |