[webmin-devel] Re: [webmin-l] Generics Table / Wild Card?

"last first" <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
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 server

with these Virtualmin settings:
Include domain name in usernames = always
Format for usernames that include domain = domain.username
Also update outgoing addresses for mailboxes = NO


this appears to be fine for incoming e-mails where
[email protected] all arrive in the domain.tld.user.name mailbox
there is also no problem with aliases being forwarded into the correct 
mailbox

however if i try to send an e-mail from within SendMail or SquirrelMail
the outgoing e-mail appears to be sent from
[email protected] instead of [email protected]

but if i log into each users SquirrelMail account and change their Options - 
Personal Information
to use their correct [email protected] e-Mail address it works OK

the Usermin Vacation module also sets up the outgoing replies from
[email protected]
(plus i have to manually edit the .forward file to add -a aliasname to get 
it to work)

i am using SendMail with Virtualmin and i also have MailScanner(.info) 
set-up & working correctly


So i thought maybe i'd try to change Virtualmin so that
Also update outgoing addresses for mailboxes = YES

but i then got an error message when retesting the Virtualmin settings which 
said that i need to set-up 
https://IP-Number:10000/sendmail/list_generics.cgi
which also says "Your sendmail configuration does not have the outgoing 
address mapping (generics) feature enabled. Click here to setup sendmail 
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 & 
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 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 to 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 Mail
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! 
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=5047&alloc_id=10808&op=click
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.