Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 12th, 2004, 09:22 PM
Sillysoft Sillysoft is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 59 Sillysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 6
Sendmail multi domain host question

Say you are hosting multiple domains on one system running linux with sendmail 8.x. Now what if one domain has support@domain1.com and the other support@domain2.com

Normally you would create a local account support but since the name is needed for both you have to create different local names correct? So locally you create support1 and support2. Incoming you use virtualtable so for example support@domain1.com goes to support1 locally and then support@domain2.com goes to support2 locally.

That part works... I think. The part I need help with is outgoing email. When I send from support1 it needs to say support@domain1.com, and for support2 it needs to say support@domain2.com in the from address as well.

I cant seem to get that to work. I thought this was done using genericstable. But I cant seem to get it to work. I looked at the virtual hosting document on sendmail.org and did what was instructed but no matter what I did, when I sent from support1 mailbox, the receipient always sees support1@domain1.com instead of support@domain1.com.

Please Help!

Thanks
Silly

Reply With Quote
  #2  
Old May 12th, 2004, 10:09 PM
dumorian dumorian is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 9 dumorian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, your username and virtusertable settings are correct. However, we need to know what mail client you are using? Sending directly from the command line? Mozilla? Outlook?

If the latter, it just a matter of setting the from address with the client. You can also alias the domains to mail.domain.com and let them be their own mailservers, which makes the headers look pretty darned official.

Reply With Quote
  #3  
Old May 12th, 2004, 11:14 PM
Sillysoft Sillysoft is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 59 Sillysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 6
Well Outlook is easy as you just sent the from address. But I also have webmail, squirrelmail, that I can never get working with outgoing. I mean I can setup the from address under folder options but that is a client side setting and I dont want to rely on my customers to manual set their from address in webmail.

Silly

Reply With Quote
  #4  
Old May 13th, 2004, 10:47 AM
dumorian dumorian is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 9 dumorian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah, OK with you. Yes, Webmail does require that setting, which can be forgotten. I think what you want to look into is domain masquerading. Here's a good link to start with.

http://www.brandonhutchinson.com/Se...squerading.html

I've not done any of this yet so can't be any more help. Perhaps you can tell us how after you get it?

Reply With Quote
  #5  
Old May 13th, 2004, 10:57 AM
Sillysoft Sillysoft is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 59 Sillysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 6
Great! Thanks for the link. Another question though, am I doing this right? Meaning is this the right solution for hosting multiple domains for email?

If not do you have a suggestion on how to do it? Perhaps sendmail isnt the answer? Is there a better/easier email service out there to use for this type of setup like qmail?

Thanks
Silly

Reply With Quote
  #6  
Old May 14th, 2004, 10:54 AM
dumorian dumorian is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 9 dumorian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You're going in the right direction. And as far as better/easier solutions? That is all just a matter of opinion. Mostly you will get that "this one is the best" from a person running that particular flavor.

Me, I'm running Sendmail. Many argue it is not the best.

I've messed around a bit with qmail, it has some nice features, but to tell you the truth I never worked with it enough to even get a complete install. That was a bear.

Postfix.. seems to be coming on strong and is getting lots of good reviews lately. Many are running it.

Me, I'm staying with sendmail for at least a while longer. It does get fixed quickly if there is an issue. It does get pounded on a lot because it it likely the most widely used. There are lots of scripts and such which are designed for sendmail. I figure for now, particularly with a hosting server, that staying with what is sort of the norm, will help me in the long run with support. For instance... someone running a cgi script which looks for sendmail and perhaps some special feature in sendmail.

Now... if you have the time and a spare machine to work with. Get yourself a Linux box going and install Webmin and Virtualmin on it. Then study what is done in the config files as you do things in Webmin. It will teach you volumes!

After you get used to it and get it configured to do things the way you want them done, you may decide to make it your standard interface. Virtualmin is very good.

Reply With Quote
  #7  
Old May 14th, 2004, 05:57 PM
Sillysoft Sillysoft is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 59 Sillysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 6
Thanks for the info. The main thing still though is outgoing email. If the local account is named different than the email address how do you get the outgoing to work? I looked at the link you gave and still no luck. Just frustrated right now to the point of trying qmail. But dunno how it would be different in that avenue.

Silly

Reply With Quote
  #8  
Old May 17th, 2004, 07:45 AM
dumorian dumorian is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 9 dumorian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm... looks like the genericstable might be your answer. See

http://www.sendmail.org/virtual-hosting.html

I've never used the generics features, but it appears that they are created pretty much in reverse order from virtusertable.. mapping a localuser to a domain address, instead of mapping a domain address to a user.

Reply With Quote
  #9  
Old May 17th, 2004, 05:19 PM
Sillysoft Sillysoft is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 59 Sillysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 28 sec
Reputation Power: 6
Yes that is what we been trying to get resolved is using genericstable. But here is an update. We got it working, but the weird part.

If we send as the user from pine, local to the box, it does the renaming like it should, IE when sending from pine as support1 and having it set to support@domain1.com it works. It comes up as support@domain1.com instead of support1@domain.com

So we tried sending same email to the same place from webmail, squirrelmail, and it still shows up as support1@domain1.com, so original issue is happening. Very weird.

So I check the headers and if you look at the received from it says from pine support1@localhost and from squirrelmail it shows nobody@localhost so perhaps that is the root of the issue? Squirrelmail is php base so I dunno if it actually does the proper rewriting or perhaps it isnt setup correctly.

Any ideas were I go from here to try and resolve this issue?

Thanks
Silly

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Sendmail multi domain host question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway