Helpful Information
 
 
Category: Resellers & Affiliates
Multiple Domains, 1 VPS & Webmail

Okay. Here is my situation. It has to do with setting up a sub-domain on one of my VPSs and how it effects webmail...

I have a client that needs to host a very simple website. Instead of using one of my VPSs to host their site. I pointed their domain (clientdomain.com) to a subfolder of my primary domain (mydomain.com). Which is an IP-based account. This works fine for hosting.

Now my client also requires email. So I added a user account (joe) to my primary VPS (mydomain.com). So right now email sent to either joe@clientdomain.com or joe@mydomain.com go to the same mailbox. I reviewed these two posts and understand the mail forwarding options using virtusertable.

http://forums.westhost.com/phpBB2/viewtopic.php?t=1407
http://forums.westhost.com/phpBB2/viewtopic.php?t=1136&highlight=webmail

My problem is with webmail (NeoMail). To access NeoMail, my client goes to: http://mydomain.com/cgi-bin/plugins/neomail/neomail.pl and logs in using the username 'joe' and the given password. BUT the FROM ADDRESS is not @clientdomain.com. It is @mydomain.com. I understand that I can edit /var/neomail/neomail.conf to include additional domains in the dropdown, but I don't want a choice of domains. I want my client to use webmail for only his domain.

So my questions is... How can I give my client webmail access under this situation?

Any help is much appreciated!

can't you edit /var/neomail/user/joe/config and put the values that you want in there?

Thanks jalal. That sounds like such a simple solutions, BUT unfortunately I couldn't get it to work. Here is the user's NeoMail original and modified config file:

ORIGINAL
realname=Real Name
domainname=mydomain.com
replyto=
sort=date
headers=simple
style=Default
numberofmessages=10
language=en
fromname=joe

MODIFIED
realname=Joe Blow
domainname=clientdomain.com
replyto=
sort=date
headers=simple
style=Default
numberofmessages=10
language=en
fromname=joe

So, I changed the config file and logged into NeoMail using the above user's account. I know NeoMail read the config file becuase the realname was updated. Unfortunatley the domainname did not. When sending a message, the from address was 'joe@mydomain.com'. I wanted it to be 'joe@clientdomain.com'.

Any other ideas? Maybe something I can do with IMP instead?

Thanks!!

Strange. I thought Neomail just joined together fromname and domainname.
Are you sure that it was the From: address you checked??? Not the Reply-To:?

Sorry to leave you hanging. You are right. Neo mail did finally end up pulling the configuration that I edited manually. The only problem is that if the user click on the setup link in Neomail, the configuration changes back to default values.

I ended up using one of my VPSs because I was under time pressure to get the site/email launched.

If anyone has any suggestions on how to handle webmail for sub-domains, I would appreciate it.

Thanks!

Should be possible to hack Neomail for that. Maybe one of the mods on the Neomail home page would do the trick?

http://neomail.sourceforge.net

just had a quick peek, M. Smiths mods might do what you need.

Jalal. I never got to thank you. The mod looks perfect. I haven't tried it yet, but it looks promising. I'll let you know as soon as I get a chance to give it a go. Thanks again.










privacy (GDPR)